Dual-boot Windows/Linux (step by step)

Estimated time (2h-3h)

For this guide, we're assuming you already have Windows installed on your PC since that's the case for most people. We'll go through the necessary steps to create a partition and install Linux on it to dual-boot. So to follow along, you'll need a Windows 11 (though the same steps will work on Windows 10) PC, a USB flash drive (8GB or more) for installation media, and another external storage method to back up your data in case anything goes wrong.

Requirements:

  • Windows 11/10

  • USB flash drive (8GB or more)

  • Another external storage

Creating Linux installation media

If your PC is ready to boot Linux, you'll need to have a USB drive that you can install Linux from. To turn your flash drive into installation media, everything on it will be erased, so make sure you've backed up anything you might need.

 

  1. Find and download the Linux distribution (distro) you want to use. There are a lot of them out there, but for this guide, we'll be using Ubuntu. Most of the steps should be similar if you use other distros, so there's no need to worry. Once you've completed the download, you should have a file with the ISO file extension.

    1. I my case I chose the Ubuntu 23.04

      Lasted ubuntu version

  2. Next, you'll need a tool that creates bootable USB drives from ISO files. You can download Rufus for this purpose.

  3. Run Rufus and insert the flash drive you want to use as installation media. Then, click Select and choose the ISO file you downloaded. All the options will be filled in automatically.

Creating a partition to dual-boot Linux

Next, you'll need to create a second partition on your drive for Linux. Partitions are like virtual divisions of a hard drive that are marked as different disks. For general use, partitions don't have much of a purpose, but you do need them for dual-booting. Here's how to create one.

  1. Right-click your Start menu icon (or press Windows key + X on your keyboard) and choose Disk Management. You'll see a list of your drives and partitions.

  2. Right-click your primary partition (it should be the one labeled as C:) and choose Shrink Volume...

  3. Specify the amount of space you want to remove from the partition. This will be limited by the files you already have stored on it, and the amount you enter will be the space you have for your Linux installation.

  4. The space you chose will be deducted from your partition, and it will be listed as unallocated space in the Disk Management window. You can leave it as is and close the window.

 

Installing Linux to dual-boot with Windows 11

Input the bootable USB drives with ISO file on device that will be implement Dual-Boot.

Now you have the two main pieces of the puzzle, you're ready to install Linux on your empty partition. If you removed the USB installation media from your PC, insert it again (remove other flash drives), then follow these steps:

  1. Open the Start menu and then click the power button and — while holding Shift on your keyboard — click Restart.

    • Alternatively, open the Settings app and go to System, then choose Recovery, and then Restart Now next to Advanced startup.

Preparing to dual-boot Linux

Before you do anything else, there's something you need to be aware of. Modern Windows computers come with a feature called Secure Boot, which is meant to enhance the security of your device by preventing malicious software from loading with your PC. However, Secure Boot can cause issues with a lot of Linux distributions that don't support this feature. We're using Ubuntu in this guide, which does have Secure Boot support, so you shouldn't have to worry. However, that won't be the case for many distributions. That means you have to disable Secure Boot if you want to use Linux on your PC, and that can be a significant security risk.

This will take you to your PC's BIOS settings, where you can turn off Secure Boot. Every BIOS is a little different, so you may have to look around. In some laptops, you can navigate to the System Configuration tab at the top and you'll find the Secure Boot option. It's set to Enabled by default, and you want to change it to Disabled.

BEFORE you save and restart the computer

You will need change de Boot Initialization.

You'll be given a series of boot options.
In most of the case you only need to move the USB DRIVE to top of Boot Initialization or set as first bootable device.

 

Ubuntu Installation

  1. Restart the computer

  2. You'll now be in the Ubuntu boot menu. Press Enter to boot into Ubuntu.

  3. Ubuntu and other Linux operating systems let you try it out by booting from the USB drive without installing it. To install Linux on your empty partition, click Try or Install Ubuntu.

  4. Follow the setup experience by choosing your keyboard layout and connecting to Wi-Fi (optional). Choose your preferred options until you get to this page.

Here, you'll want to choose the first option that's chosen by default, at least if you want the easiest way to do things. This will install Ubuntu on the unallocated space you created before, leaving your Windows installation intact.

  1. From here, it's mostly trivial stuff. Choose your region and set up your Ubuntu profile and the installation will begin. Once it's done, you'll be able to boot into Ubuntu without your USB flash drive.

 

Switching between Windows 11 and Linux

Once Linux is installed on your PC, you should be given the option to boot into it right away, but that might not happen. If your Windows partition is set as the priority in your BIOS settings, you may constantly boot into Windows instead. The behavior will vary depending on your computer, so you may not need to do anything.

If you do find yourself stuck in Windows 11 though, here's what you can do:

  1. Open the Settings app then click Recovery > Restart now next to Advanced startup.

  2. Click Troubleshoot and then Advanced options.

  3. Here, choose UEFI Firmware settings.

  4. You may need to press one of the function keys to open the BIOS setup. Once you're there, the process will vary depending on what PC you have. We're looking for options related to booting. On some laptop, you can find Boot options in the System Configuration tab.

  5. Find an option related to boot order (UEFI Boot Order, in our example) and make sure the Linux drive is on of the Windows drive. In our example, we have to select the OS Boot Manager option, then use the F5/F6 keys to move Ubuntu to the top. Again, the process may vary by laptop, but the same principle should apply to any device.