Multi-booting, installing more than one operating system on a computer’s hard drive(s), has become very popular over the years, fueled, of course, by the popularity of Linux as an alternate system for desktop and servers. Dual-booting, installing two operating systems on a computer is a subset of that, and in this article, basic guidelines to follow when attempting to dual-boot a Linux distribution and Windows are presented.

The most common practice is to dual-boot on a computer with one hard drive. That, however, gives the system a single point of failure. If you can afford to, the best option, especially on server installations, is to install each operating system on a separate hard drive. That ensures that if something goes wrong with one OS or one hard drive, you can always boot from the other drive, and troubleshoot the other one whenever you are ready. That is tip number one for dual-booting your favorite Linux distribution and Windows.

When attempting to dual-boot on a computer with one hard drive, always install Windows first, followed by your Linux distribution. Why? Because Windows is intentionally designed to destroy everything in its path. So, if it finds another operating system on the same hard drive it is being installed on, it has no built-in mechanism that allows it to play nice. The foregoing, by the way, is tip number two.

If you are going to dual-boot on a computer with an existing installation of Windows, and you do not want to re-install Windows, it means you will have to shrink the Windows partition to create room for your choice of Linux distribution. You can do this from inside Windows or from the Linux installer, and be sure that your data will be left intact. But that does not mean that you should ignore tip number three which is, back up our data. There is a saying in the stock and commodities trading business, which goes like this: “You can never go broke by taking profits.” In the same vein, you can never lose your data by backing it up. Back up your data before messing with your C drive.

By default, the boot loaders of operating systems are installed in the Master Boot Record (MBR) of a hard drive. That is the best location for it. However, when attempting to dual-boot Windows and a Linux distribution, you have another option, and this should count as tip number four: When attempting to dual-boot on a single hard drive, it is better to install the Linux boot loader on a separate boot partition, and have the Windows boot loader be responsible for dual-booting both operating systems. Whether you choose to follow this tip or not depends on your tolerance for pain, because the alternative is to follow the default, that is, install the Linux boot loader in the MBR.

The problem with the default location is that if you ever have to reinstall Windows or upgrade it, it will wipe the Linux boot loader and install its own (boot loader). Also, some anti-virus programs have been known to install small files in the MBR, so that could be another source of pain, if you have to install an anti-virus program on Windows.

This screenshot shows how the installation program of Fedora, a popular Linux distribution, gives you a choice of locations for installing its boot loader.
fedwinDl10

With the Linux boot loader installed some place other than the MBR, an entry must be added to Windows boot menu, so that whenever the computer boots, Windows’ boot menu will look just like the one shown in the image below.
BCD4

And the good part of that is, when you select the Linux entry, you will also find an entry for Windows in the Linux boot loader’s menu.
burg6

Tip number five: If you plan to install the Linux boot loader on a boot partition, be aware that on larger hard drives, there is a limit on how far the boot partition can be located from the start of the disk. On a 1TB hard drive, it is somewhere around the 500GB mark. The solution in such a case is to create the boot partition close to Windows’ System partition.

Tip number six: Even when attempting to dual-boot on separate hard drives, it is best to install the respective boot loaders on their operating system’s hard drive. Keeping them completely apart in that fashion makes troubleshooting and management a bit less of a hassle.

Notes:

  • Installing a Linux distribution on an external hard drive attached to a Windows machine is not considered dual-booting, even though the distribution’s installer automatically adds an entry for Windows in GRUB’s menu.
  • It is not possible to dual-boot Windows and Linux on an external hard drive. Why? Windows will not allow itself to be installed on an external hard drive. I am sure there are ways around this, but it is generally not possible.