Installing Arch and Windows on two separate hard drives?
So I'm just about ready to start setting up a new PC and while I'd like to also dual boot Arch and Windows I'm not too keen on partitioning them on the same hard drive. (I've done it before but it's a minor headache I'm too lazy for) One idea I had was just install them on different hard drives and use the motherboard BIOs to switch between them. In my head this should be a very straightforward option, but is there anything I should look out for with this setup in particular? (One I can think of off the top of my head is how the EFI System Partition will work; in my head I figured the Arch and Windows drive would have their own separate partitions but I've heard some source say they should still share the same partition even if they're going to be on separate drives)
(I should note that the ArchWiki is mostly dedicated to dual boots on the same hard disk so I wasn't able to find anything too established on this topic, but if there is a relevant page let me know)
About this post
- Posted
- Archived
- Score
- 39 · 88% up
- Kind
- Text
- ID
- zyebfe
30 comments
I removed the other drive while installing each of the two OS's. I then made sure each of the two drives worked by themselves and could boot their respective OS.
With both drives in the system at the same time, I then use the motherboard's boot menu to choose what to boot. It doesn't seem to have a problem with there being separate EFI partitions on the two drives.
About "removing" a drive: with SATA drives you can disable the SATA port in the UEFI/BIOS menus instead of actually, physically removing the drive. I don't know if something similar is possible with NVMe drives.
I did this same exact thing. Except I was able to get grub to detect the windows partition and can use grub to boot into windows instead of the bios boot
This DEFINITELY does not always happen. Grub gave me such a headache I just removed Windows competely and now I use systemd-boot
I bought an NVMe drive, installed linux on it and never booted from the windows drive again. Though I did mount it in arch to pull some data off.
Deleted before we saved it.
This is how my home desktop is setup. Dual boot. Separate ssds for win10 and arch. Grub allows me to select what to boot from as it reaches across harddrives.
If using grub you should have, or need to make an EFI directory at /boot/EFI on the arch disk. Then mount your boot partition to it.
Install, reinstall grub with 'grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck'
Then configure grub with 'grub-mkconfig -o /boot/grub/grub.cfg'
Adjust as necessary if you encrypt the harddrive.
keeping a live arch iso on a thumb drive is handy for grub failures. For example if u want to update grub, and make an error and the pc goes straight to windows, you can simply boot into the USB, mount the /boot partition and update and reconfigure grub.
install the windows drive first, remove it before doing arch.
then do arch, make sure that works.
then plug them both back in. you'll be able to switch between the two using your motherboard boot manager.
however once you do this, adding windows to the arch/grub bootloader is pretty easy. install os-prober, go to the grub config file and set "GRUB_DISABLE_OS_PROBER=false", then run your grub-mkconfig command again (make sure the windows/efi drives are mounted first) and the os-prober will find the efi data needed and add it to grub.
Windows plays reasonably nice these days when other OSes are around, it's basically the whole point of EFI. It might change the boot priority to to prefer Windows over other OSes, but that's easily reverted and nowhere near as annoying as the days of overwriting boot loaders in the MBR.
timezones are always messed up when i dual boot
When it has changed? Just a year ago I almost pulled my eyes out when I tried to add Windows 11 into my existing Linux containing storage. Once again, I tried to add EFI partition manually inside the Windows installer using Diskpart. It was very happy moment to find yout once again Windows formatted the Efi-partition for Linux and left the one I created with diskpart completely empty.
Definitely remove the other drive if you can when doing Windows. I hate the drive selection section on the windows Installer and accidentally selected and wiped my Linux drive and put Windows on it instead (both are 500GB NVME Samsungs).
Both drives had a similar partition size layout which confused me. So when I went to reinstall both, I made an extra random partition on the Linux drive so I could tell them apart during the Windows install (I removed my SATA drives), that I would then remove during the Linux install. My Linux drive is behind my GPU so removal would have taken way too long.
Even though grub sees my Windows drive, I'll sometimes just take the extra few seconds and rearrange my BIOS boot order depending on which OS I want to primarily use at the time, or if I know that I'm going to have to reboot multiple times for something so I don't have to "babysit" the bootloader, and I don't want to edit my Grub config (I do miss the old grub1 config).
Two separate Drives is definitely the best way to dual Boot. Start with installing Windows while leaving the other Disk unplugged for now.
After that, disconnect the Windows Disk and Connect the Disk you intend to use with Linux.
Install Arch Linux manually, Like you're supposed to, and when it comes to Boot loader installation, don't choose grub. I really Like rEFInd as it dynamically detects EFI loaders and Kernels on bootup.
Then, re-add the Windows Disk, Set rEFInd to be your First Boot File and you're good to go.
I did exactly this for my work machine. Actually it was my personal equipment with a separate encrypted disk for work purposes with Windows installed.
Install Windows on disk 1.
Install Linux on disk 2 with GRUB in EFI mode. GRUB will detect OS on additional disks.
By using UEFI you can also add EFI boot entries to select at boot time, ignoring GRUB.
I did this years ago but haven't actually needed to boot the Windows partition. When you're installing your Windows disk I'd advise disabling the linux drive in your motherboard's BIOS (and vice versa when installing linux).
Installers can sometimes write things in ways you wouldn't expect. Don't need to worry when they can't access your other drive to begin with.
Yes this is easy to do with EFI.
Install windows first then install arch mounting the other hard drive as / and the existing ESP as /boot. It should be big enough to fit both windows’ stuff and arch’s kernel. Use efibootmgr to add a boot entry for the kernel. Then you can use the BIOS as your boot manager.
The only annoying part is managing arch’s boot entry (like if you want to change boot options). For that reason I recommend an EFI-friendly boot manager like systemd-boot or rEfInd.
What I did: made my windows efi partition bigger (500MB) because default size is 100MB, installed Arch on a separate drive, added Arch bootloader to Windows EFI. Selected Arch's bootloader as default in bios and then I can select the os from grub, no need to go to bios. I made Windows a default entry in bios because sadly the tools that I use for my job work only under Windows and I can't make them run under Wine (and I play Valorant (yes, kill me)).
They can be separate, use grub for bootloader and install os-prober, enable os-prober on grub cfg, run grub mk config, it should automatically detect windows boot manager and add it on the os selector screen on reboot. Follow the wiki to install all dependencies including efi-tools.
This is wat have. I just install windows via virtual machine manager. Just give it as disk your second drive. Once windows installer reboots, shutdown VM and reboot to second drive. I love this no USB drives or issues with bootloader
It's definitely worth having separate drives for both, because the Windows bootloader will overwrite any EFI configuration when it updates. When you have both on separate drives, Windows won't touch your Linux configuration (hopefully).
Pull out the other drives while installing windows. You can use separate EFI partitions and then use GRUB as a boot menu.
If you partition yourself, do add an EFI partition (ESP) for each GPT drive.
And don't forget to add a MSR (Microsfot Reserved partition) after the ESP but before the windos partition.
This is the setup I'm using on my desktop PC, with each drive having its own EFI system partition. My mobo also has its own boot loader (separate from the usual boot menu) that I can set to show up on each boot, which then launches the respective Windows and systemd-boot loaders, without having to press a boot menu key each time.
Right now I just got Arch on my M.2 SATA SSD and Windows on my 3.5 SATA SSD and while I can boot into both of them, GRUB seems to not work with Windows. OS-prober did not detect the Windows EFI boot partition and then when I forced the issue through /boot/grub/grub.cfg, I got it to work literally once and never again. The error GRUB is giving me is that there is "No such device: (drive UUID)" and then it obviously can't find /efi/Microsoft/boot/bootmgfw.efi because it can't even find the drive associated. It's weird because it worked once and there's no typo in the drive UUID (I checked 3 times).
Outside of that oddity, both OS's work for me, I did use a September 2022 build of both arch linux and archinstall though but I am pretty sure you can easily install arch manually and have everything partitioned. I just wanted to turn my brain off and get an arch installation working at all. If you do want to do the archinstall route for some reason, you have to RUFUS a September 2022 ISO of arch linux and you must NOT update the archinstall baked into your ISO but you will have to wait like a couple minutes for all of the keyrings to update.
I personally tested this about 10 months ago. What I found out was that:
-With 1 nvme disk:
Installing windows first will automatically create an EFI partition of 100mb, after you can
install linux and as long as I used efibootmgr and just added an entry to the motherboards
nvram all was good.
Vice Versa works as well, as long as there was at least 23-30mb of space in the EFI partition
for the windows bootloader, which I manually created when installing Arch. If not windows
will actually override the EFI partition...
-With 2 nvme disks: (disk 1 will be nvme0, disk 2 will be nvme1)
First Installing windows on nvme0 will create the EFI as usual, then installing linux on
nvme1 I can create another EFI partition and just add the entry to the firmware's nvram.
Firstly installing linux on nvme0 and creating EFI partition as well and then installing
windows on nvme1, windows WILL USE the EFI of nvme0. I did not test if it would still
overwrite the EFI of nvme0 or create a new one in nvme1 if there was not enough space in
the EFI of nvme0.
Installing linux on nvme0, physically removing nvme0, installing windows on nvme1 works
as expected.
NOTE: this is done on UEFI system with 2 nvmes and a hard drive, Legacy Bios on MBR disk
is hell if you want dual booting. Fun fact, linux can run games from ntfs partition, windows
needs 3rd party tools to only read data from an ext4, xfs. Btfs and lvm I did not find any
tools to read data from windows.