Installing Windows 10 alongside Arch Linux requires installing Windows first to ensure the bootloader is correctly configured, followed by a careful reinstallation of GRUB on the Linux side. This approach prevents Windows from overwriting the Linux bootloader and ensures both operating systems remain accessible. Proper partitioning and disabling Windows Fast Startup are critical steps to avoid data corruption and boot failures in this dual-boot configuration.
Preparation and Partitioning Strategy
Before beginning the installation process, it is essential to plan your disk layout carefully. The most common pitfall in dual-boot setups involves incorrect partition ordering or insufficient space allocation for the Windows system partitions. You should identify your target drive using lsblk or fdisk -l in the Arch environment to avoid accidental data loss on existing partitions.
Create at least two primary partitions for Windows: one for the EFI System Partition (ESP) if it does not already exist, and another for the Windows OS itself. The ESP must be formatted as FAT32 and marked with the boot and esp flags. It is crucial to leave enough unallocated space for the Arch Linux installation after Windows is installed. Do not format any existing Linux partitions during the Windows setup phase, as this will destroy your current installation.
Installing Windows 10 First
Contrary to intuition, you must install Windows 10 before Arch Linux when setting up a dual-boot system. This is because the Windows installer often assumes it is the sole operating system and may overwrite the bootloader or fail to detect an existing Linux installation if done second. Boot from the Windows 10 USB media and proceed with the standard installation steps.
During the partition selection step, choose the custom installation option. Select the unallocated space designated for Windows and allow the installer to create the necessary system reserved partitions. If an EFI partition already exists, select it but do not format it unless you are certain it is empty and compatible. After the installation completes, do not reboot immediately into Windows yet; instead, shut down the machine to prepare for the Arch Linux installation.
Disabling Windows Fast Startup
One of the most critical steps often overlooked is disabling Windows Fast Startup. This feature, enabled by default in Windows 10, puts the system into a hibernation-like state rather than fully shutting down. This can cause issues with accessing Linux partitions and may lead to filesystem corruption if both operating systems attempt to write to shared drives simultaneously.
To disable this feature, boot into Windows 10, open the Control Panel, and navigate to Power Options. Click on "Choose what the power buttons do" and then select "Change settings that are currently unavailable." Uncheck the box next to "Turn on fast startup (recommended)" and save the changes. Additionally, ensure that Hibernation is disabled via the command line using powercfg /h off to prevent residual states from interfering with the Linux kernel's ability to mount NTFS partitions safely.
Installing Arch Linux
With Windows installed and Fast Startup disabled, you can now proceed with the Arch Linux installation. Boot from the Arch ISO and partition the remaining unallocated space. Create separate partitions for /, swap, and potentially /home. Ensure that the EFI partition created for Windows is mounted at /boot/efi during the Arch installation.
Use pacstrap to install the base system and necessary packages, including linux, linux-firmware, and grub. Generate the fstab file and set the root password. When chrooting into the new system, install GRUB targeting the EFI directory. Run grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB to install the bootloader correctly. Finally, generate the GRUB configuration file using grub-mkconfig -o /boot/grub/grub.cfg.
Post-Installation Configuration
After rebooting, GRUB should automatically detect both Windows 10 and Arch Linux. If Windows does not appear in the boot menu, you may need to update the GRUB configuration or check the EFI variables. Verify that the Windows entry points to the correct EFI file, typically located at \EFI\Microsoft\Boot\bootmgfw.efi.
If you encounter issues accessing Windows, refer to our guide on troubleshooting secondary OS access to resolve common UEFI and GRUB conflicts. For users moving between different hardware configurations, consider checking our advice on adjusting display settings in mixed OS environments to ensure consistent performance across both platforms.
Frequently Asked Questions
Can I install Arch Linux before Windows?
While technically possible, it is highly discouraged because the Windows installer may overwrite the GRUB bootloader, making Arch unbootable. Installing Windows first ensures that its bootloader is established, allowing GRUB to later chain-load Windows safely.
Why does my Windows partition show as read-only in Arch?
This is usually caused by Windows Fast Startup or hibernation being active. When Windows is in a hibernated state, it locks the filesystem to preserve its session. Disabling Fast Startup and fully shutting down Windows resolves this issue.
How do I fix a missing Windows entry in GRUB?
Ensure that the EFI partition is correctly mounted and that the Windows bootloader files are present in /boot/efi/EFI/Microsoft/Boot/. Running grub-mkconfig again after verifying these paths often restores the missing entry.
Is it safe to share data between Windows and Arch?
Sharing data is safe if you use exFAT or NTFS partitions mounted in Linux with appropriate permissions. However, avoid writing to Windows system partitions from Linux, and always ensure Fast Startup is disabled to prevent filesystem corruption.
What happens if I accidentally format the wrong partition?
If you format the Windows partition, you will lose all Windows data and will need to reinstall Windows. If you format the Linux partition, you will lose your Arch installation but can reinstall it without affecting Windows, provided the EFI partition remains intact.