Kahibaro
Discord Login Register

1.3.3 Dual booting with Windows

Understanding Dual Boot with Windows

Dual booting means installing Linux alongside Windows on the same computer, so you can choose which system to start each time you power on. Instead of replacing Windows, Linux gets its own place on the disk and a boot menu is added so you can select between them.

This setup is very popular for people who want to try Linux, or use Linux for certain tasks, but still keep Windows for specific software or games.

Preparation and Safety

Before changing any partitions or installing a second operating system, you must think about safety. Partitioning and installing an additional system changes how the disk is organized. If something goes wrong, you can lose data.

The most important preparation step is a full backup of your important files in Windows. Use an external drive, a network share, or a cloud service. Do not rely only on “I think it will be fine.”

Always back up your important data in Windows before shrinking partitions or installing Linux in dual boot.

You should also verify that your computer uses either BIOS or UEFI and whether Secure Boot is enabled. The Linux distribution you choose will usually work with UEFI, but Secure Boot may need special handling or might be disabled during installation, depending on the distribution.

Finally, check that you have enough free space on your disk. You need room to create at least a root partition for Linux. How the partitions look in detail is covered in the partitioning chapters, but for dual boot you must have unallocated space available that is not already used by Windows.

Preparing Windows for Dual Boot

The safest way to make room for Linux is to let Windows shrink its own partition. This avoids some problems with Windows filesystems.

In Windows, you can open the disk management tool and reduce the size of the main Windows partition, usually labeled C:. The result will be a region of unallocated space on the disk. This unallocated space is where you will later create Linux partitions during the Linux installation.

It is also a good idea to disable fast startup in Windows. Fast startup can leave Windows in a kind of hibernated state, which can cause filesystem problems when Linux tries to access Windows partitions.

You may also want to note down how your current partitions look. Knowing which partition contains Windows helps during installation, when you must avoid formatting or overwriting the existing Windows installation.

Boot Mode, UEFI, and Bootloaders

Dual booting depends on the firmware mode of your computer and the presence of a bootloader. Modern systems usually use UEFI. Older systems may still use legacy BIOS.

In a dual boot setup, Linux typically installs a bootloader that becomes the primary one. The most common one is GRUB. After installation, GRUB will appear at startup and will list both Linux and Windows. When you select Windows from GRUB, the system chains to the Windows Boot Manager, which then starts Windows.

With UEFI, there is an EFI System Partition that stores bootloader files for multiple systems. In dual boot, both the Windows Boot Manager and the Linux bootloader place entries here. The firmware uses these entries to present boot options, and the Linux installer usually configures GRUB to become the default.

On BIOS systems, the bootloader is installed to the disk’s boot area, and it becomes responsible for offering you the menu with Linux and Windows entries.

When installing Linux in dual boot, do not overwrite the entire disk and do not delete the Windows EFI System Partition or the existing Windows partition.

Installing Linux Alongside Windows

When you start the Linux installer from your bootable USB, it will detect that Windows is already present if it can see the Windows installation.

Many installers offer an option such as “Install alongside Windows” or “Install Linux alongside Windows Boot Manager.” This guided option will usually:

  1. Use the free space you made in Windows.
  2. Create the Linux partitions inside that free space.
  3. Install a bootloader that can start both systems.

If you choose a manual partitioning option, you must be careful to use only the unallocated space, create the required Linux partitions there, and leave the Windows and EFI partitions intact. The detailed structure of /, /home, and swap is explained in the partitioning section, so here the key point is to avoid modifying partitions that belong to Windows.

After you choose the correct option and complete the installation, the Linux installer will install its bootloader and update the list of operating systems. When the process is done and you reboot, you should see a menu with both Linux and Windows as choices.

Choosing the Default System

Once the dual boot system is set up, one operating system will start automatically after a short timeout if you do not select anything. Typically, the Linux distribution you just installed becomes the default entry.

You can usually change the default system from within Linux by editing the bootloader configuration. For GRUB, this involves adjusting its configuration files and regenerating the menu so that Windows becomes the first or default entry, or changing the timeout.

You can also sometimes change boot order at the firmware level. In UEFI, the firmware can choose which boot entry to start by default. From Linux you can influence this by using tools that manage UEFI boot entries, or by entering the firmware setup screen and modifying the boot order there.

Common Dual Boot Issues

In a dual boot environment, some common problems can appear.

One issue is that Windows may perform an update that changes its bootloader or EFI entries. Sometimes this can cause the system to start directly into Windows and skip the Linux bootloader. In that case, you must restore the Linux bootloader or reselect it as the default in the UEFI firmware.

Another issue appears when Windows uses fast startup or hibernation. If Windows has not fully shut down, its partitions may be left in a state that Linux will treat as unsafe. Linux might then refuse to mount the Windows partitions, or mounting them might cause data corruption. This is why disabling fast startup and always doing a clean shutdown in Windows is important.

Also, switching between systems frequently while sharing data on the same disk requires attention. It is safer to avoid working on the same files from both systems at the same time and to always shut down cleanly before booting into the other operating system.

If the bootloader configuration becomes corrupted or Linux fails to list Windows, it is usually possible to rebuild the configuration from Linux, so that Windows appears again as a boot option.

Removing a Dual Boot Setup

If you later decide to keep only one system, you must remove the other one carefully.

If you remove Linux and want to keep Windows, you must restore the Windows bootloader to take control again. On UEFI systems, you can choose the Windows Boot Manager in the firmware. On BIOS systems or if GRUB is still first, you might need to repair Windows boot files using Windows tools.

After the Windows bootloader is working on its own, you can delete the Linux partitions from within Windows disk management and, optionally, grow the Windows partition to reuse the freed space.

If you remove Windows and want to keep Linux, you only need to delete the Windows partition and possibly adjust the bootloader configuration so that it no longer lists Windows. You can then extend your Linux partitions into the freed space if you want.

In any case, you should always plan and back up before changing partitions or bootloaders, just like during the initial dual boot installation.

Views: 7

Comments

Please login to add a comment.

Don't have an account? Register now!