You are not logged in.
hi,
I currently have a windows 7 installed and I want to have a dual boot with Arch. The problem is, I'm not able to go through the installation process.
If I follow the Beginner's guide to the letter (using "mkfs.fat -F32 /dev/sdxY"), this leads to the error, when I run the pacstrap script:
"error: could not open file /mnt/var/cache/pacman/pkg/vi-1:070224-2-x86_64.pkg.tar.xz.part: Invalid argument"
The error is printed a lot of times.
To resolve this issue, I found that using "mkfs.ext4 /dev/sdxY" works... Until I reach the step where I need to install the bootloader. There is a problem with the fact the partition doesn't seem to be EFI/GPT (but it is).
The structure of my drives is as follows:
sdb 223.6G
|-sdb1 100M
|-sdb2 128M
|-sdb3 115.9G
|-sdb4 107.4G
...
sdd 1.4T
|-sdd1 1.4T
There are also sda and sdc, but I don't want to touch these (they are reserved for windows). What I want to do, is install Linux on my SSD (sdb), more precisely sdb4 (I want everything, except "/home" on it) (sdb3 is the C: drive in windows and sdb1 is the 100M partiton created by windows to boot. I don't know what is sdb2; it's not listed in windows' computer management). And I want "/home" on sdd1.
I've looked around and I'm unsure of how to install Linux. Do I have to mount "/boot" on the 100M partition, or will this action erase windows' boot data ? Do I create another 512MB partition to create the "/boot" on it ? I don't want to scrap the windows install, and I'm unfamiliar with EFI.
All the partition are EFI/GPT, thus so is windows 7.
One last thing: why do we have to format a partition created with GPT to FAT32 ? Why not directly ext4 ?
Thanks for any help on the matter !
Last edited by Madsub (2015-11-04 22:42:22)
Offline
Hi,
what I always do, I remove the windows disk from computer (physically), install Arch on your ssd (follow the arch wiki) with a bootloader of choice and install os-prober. Install the disk with Windows you removed (physically), boot from the ssd with Arch after install (make this disk default or first boot in your uefi or bios). Run Arch, run os-prober, restart and choose windows or Arch as OS.
But hey this what I always do when messing with windows.
Last edited by boban_dj (2015-11-04 18:20:49)
Offline
Hi,
what I do, I remove the windows disk from computer (physically), install the ssd, install arch (follow the arch wiki) with a bootloader of choice and install os-prober, boot from the ssd with arch after install. Run arch, run os-prober, restart and choose windows or arch as boot option
This won't work, because OP wants to install Arch on the same disk as Windows (if I understood it right).
Offline
@ayekat, shit you are right, still I would do it my way
Offline
Well, I would not waste SSD space to Windows, and put that one on a different disk entirely - but here we're stuck with OP's constraints.
@Madsub: When you reach the bootloader installation, what's the output of GRUB? From what I see, it should work.
[EDIT] Aah, yes, there was indeed something about UEFI that I forgot, as shown by Head_on_Stick.
Last edited by ayekat (2015-11-04 19:59:17)
Offline
Yes, I want to install Linux on the same physical disk as windows. Unfortunately, I don't have the money for 2 SSDs
On the bootloader installation, if I run "bootctl install", the output is
'File system "/boot" is not FAT EFI System Partition (ESP) file system.'
If I try to install GRUB: I do "pacman -Sy grub efibootmgr os-prober", then
'grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub --recheck'
the output is
"Installing for x86_64-efi platform.
grub-install: error: /boot doesn't look like an EFI partition.
."
Offline
Do I have to mount "/boot" on the 100M partition
^ This.
Share the EFI system partition and *do not* format it.
Jin, Jîyan, Azadî
Offline
Madsub wrote:Do I have to mount "/boot" on the 100M partition
^ This.
Share the EFI system partition and *do not* format it.
Ok, I managed to install Arch doing a "mount /dev/sdb1 /mnt/boot", but as I restart, I cannot boot into Arch, only in windows if I chose it in the BIOS/UEFI.
If I try to boot Arch, I get a
":: performing fsck on '/dev/sdb1'
:: mounting 'dev/sdb1' on real root
mount: unknown filesystem type 'vfat'
You are now being dropped into an emergency shell."
Offline
Please post the output of:
# parted -l
You can use a pastebin client to generate a URL that can be posted here.
https://wiki.archlinux.org/index.php/Li … in_clients
Jin, Jîyan, Azadî
Offline
Hey, I didn't knew about pastebins, it's nice ^^
The output of the command is:
https://ptpb.pw/6IMf
I've booted on the USB stick used to install the OS.
Offline
Why have you created a second EFI system partition on /dev/sdb4 and formatted it ext4?
What is content of your grub.cfg?
Jin, Jîyan, Azadî
Offline
Why have you created a second EFI system partition on /dev/sdb4 and formatted it ext4?
I am not sure to understand:
sdb1: boot partition
sdb2: seems windows needs this
sdb3: windows' C:\ drive
sdb4: Arch
I've formatted it to ext4, because if I format it to FAT32, I get the error "error: could not open file /mnt/var/cache/pacman/pkg/vi-1:070224-2-x86_64.pkg.tar.xz.part: Invalid argument" when executing the 'pacstrap' script and noting is installed.
I want my 2 OSes to be on sdb, because it is a SSD and faster than the three others disks, which are HDDs.
What is content of your grub.cfg?
I've installed systemd-boot/gummiboot, thus I don't have GRUB installed.
Offline
sdb4: Arch
I've formatted it to ext4, because[...]
You have installed your system to the wrong partition type.
A standard GNU/Linux partition should have the "8300" partition code; yours has the "EF00" partition code -- that won't work.
Jin, Jîyan, Azadî
Offline
Is there another way than doing a
"mkfs.fat -F32 /dev/sdb4"
? Or is there a way to fix the
"error: could not open file /mnt/var/cache/pacman/pkg/vi-1:070224-2-x86_64.pkg.tar.xz.part: Invalid argument"
error ?
Offline
Is there another way than doing a
"mkfs.fat -F32 /dev/sdb4"
That command just creates the filesystem.
You need to change the partition code -- use {g}parted or gdisk for this (I think you will have to delete /dev/sdb4 and re-create it).
Jin, Jîyan, Azadî
Offline
Oh my... I'm so stupid. I read this post:
https://bbs.archlinux.org/viewtopic.php?id=202726
and realized that in my "/boot/loader/entries/arch.conf" file had the following line:
"options root=/dev/sdb1 rw"
But, root is not sdb1, but sdb4 ! I was confused between root and boot.
I successfully managed to boot (in console for now) into my new Linux !
Hell's yeah ! Thanks everybody, and thank you very much Head_on_a_Stick for your help !
Offline