sodcalculator

10 Tech How-To

How to Install Two Operating Systems on One Computer

Guide 10-47333 · Updated · Step by step

Installing two operating systems on one computer, often called dual-booting, lets you choose which OS to start each time you power on. This guide covers the general steps for installing a second OS alongside your current one, focusing on Windows and Linux as the most common combination. Before you begin, back up all important data, as partitioning carries a small risk of data loss.

What You’ll Need

  • A USB drive (8 GB or larger) for the second OS installer, or a DVD if your computer has an optical drive.
  • The installation media for the second OS (downloaded ISO file or DVD).
  • At least 20-30 GB of free disk space for the new OS (more if you plan to install many applications).
  • A Windows PC or Mac with UEFI firmware (most computers from the last decade).
  • Optional: a second internal hard drive or SSD, which simplifies the process.

Step-by-Step

  1. Back up your data. Use an external drive or cloud storage to copy important files. Dual-booting is safe, but partitioning errors or unexpected power loss can corrupt data.
  2. Create installation media. Download the ISO for the OS you want to install (e.g., Ubuntu, Fedora, or Windows 10/11). Use a tool like Rufus (Windows) or balenaEtcher (macOS/Linux) to write the ISO to your USB drive. This will erase the USB, so use an empty one.
  3. Free up disk space. Open Disk Management on Windows (right-click Start → Disk Management) or Disk Utility on macOS. Shrink your existing partition to create unallocated space. Right-click your main partition (usually C:) and select “Shrink Volume.” Enter the amount of space you want to free up (e.g., 50000 MB for ~50 GB). Do not create a new volume in the unallocated space; leave it as is.
  4. Disable Fast Startup (Windows only). If your current OS is Windows, go to Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable, then uncheck “Turn on fast startup.” This prevents Windows from locking the hard drive, which can cause issues for the other OS.
  5. Restart and boot from the USB. Insert the USB drive and restart your computer. During startup, press the boot menu key (often F12, F2, Esc, or Del, depending on your motherboard) to select the USB drive. If you’re not sure, check your motherboard manual or search online for your model.
  6. Start the installation. The installer will load. Choose your language and click “Install.” When prompted, select “Something else” (Ubuntu) or “Custom” (Windows) to manually partition.
  7. Create partitions for the new OS. In the manual partitioning screen, you’ll see your existing partitions and the unallocated space. Select the unallocated space and create:
    • For Linux: a root partition (mount point “/”) with at least 20 GB, and optionally a swap partition (2-4 GB) and a home partition (rest of the space). Use ext4 filesystem.
    • For Windows: simply select the unallocated space and click “New” — Windows will create the necessary partitions automatically.
  8. Install the bootloader. The installer will ask where to install the bootloader (GRUB for Linux, or the Windows Boot Manager). For Linux, choose to install GRUB to the same drive as your existing OS (usually /dev/sda). This will replace the Windows bootloader with GRUB, which can boot both OSes. For Windows, it will automatically set up its own bootloader.
  9. Complete the installation. Follow the on-screen prompts, set your timezone, create a user account, and wait for the installation to finish. Then restart your computer.
  10. Select your OS at boot. After restarting, you should see a boot menu (GRUB for Linux, or Windows Boot Manager). Use the arrow keys to select the OS you want and press Enter. If you don’t see a menu, you may need to press a key (like Shift) during startup or adjust BIOS settings.

Common Mistakes

  • Not backing up data. The most common and dangerous mistake. Always back up before partitioning.
  • Shrinking the partition too much. Leave enough free space for your current OS to function (Windows needs at least 20 GB free for updates).
  • Creating a new volume in unallocated space. If you create a new volume in Windows before installing Linux, the Linux installer may not see the unallocated space correctly. Leave it unallocated.
  • Installing the bootloader to the wrong drive. If you install GRUB to a USB drive or a secondary drive, your computer may not boot. Always install to the drive where your current OS is installed.
  • Forgetting to disable Fast Startup. This can cause the second OS to fail to mount the Windows partition, leading to errors.

Tips

  • Use a separate physical drive if possible. Installing the second OS on a different hard drive or SSD avoids most partitioning risks and makes it easier to remove later.
  • Test with a live USB first. For Linux, boot the USB in “Try” mode to ensure hardware compatibility before installing.
  • Keep your BIOS/UEFI settings in mind. Ensure Secure Boot is disabled (or enabled, depending on the OS) and that your boot mode (UEFI vs Legacy) matches your current OS. Most modern systems use UEFI.
  • Label your partitions. When partitioning, give clear names (e.g., “Windows” and “Linux Root”) to avoid confusion.
  • Update your current OS before installing. This ensures your system is stable and reduces the chance of conflicts.

Troubleshooting

  • Computer boots directly into one OS without a menu. This often happens if the bootloader wasn’t installed correctly. Boot from the installation media again, choose “Repair” or “Rescue mode,” and reinstall the bootloader. For Ubuntu, you can use Boot-Repair from a live USB.
  • Windows doesn’t appear in GRUB. Run sudo update-grub in Linux to detect Windows and add it to the menu.
  • Linux doesn’t appear in Windows Boot Manager. This is less common; you can use EasyBCD (free for personal use) to add a Linux entry, or install GRUB as the primary bootloader.
  • Second OS won’t install due to “partition table” errors. Ensure your disk uses GPT (GUID Partition Table) for UEFI systems. If not, you may need to convert, but that requires wiping the drive.
  • After installing, the computer boots to a black screen. This can be a graphics driver issue. Boot into recovery mode (for Linux) or safe mode (for Windows) and update drivers.

Frequently Asked Questions

Can I dual-boot Windows and macOS?

Yes, but only on compatible hardware. macOS is designed for Apple hardware, and installing it on non-Apple hardware (Hackintosh) requires specific drivers and is not officially supported. On a Mac, you can use Boot Camp to install Windows.

Will dual-booting slow down my computer?

No. Only one OS runs at a time, so performance is the same as with a single OS. The only cost is disk space.

How do I remove one OS later?

Delete its partitions and remove its bootloader entry. For example, to remove Linux, boot into Windows, use Disk Management to delete the Linux partitions, then run bootrec /fixmbr from a command prompt to restore the Windows bootloader.

Can I access files from one OS while in the other?

Yes. Windows can read Linux partitions (with third-party software like Ext2Fsd), and Linux can read Windows NTFS partitions natively. However, it’s safer to keep shared files on a separate data partition formatted as NTFS or exFAT.

Do I need a separate license for the second OS?

Windows requires a valid license. Linux distributions are free. If you already have a Windows license, you can use it for the second OS, but you cannot run both simultaneously on the same license.

What if I only have one hard drive?

That’s fine. You can shrink your existing partition and install the second OS in the freed space. Just follow the steps above carefully.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →