Blog

How to dual-boot Linux and Windows 11, 10 (2025)

UPDATED 1/2/2025: Although Windows 11 (and 10) allows you to install Linux distributions like Ubuntu, Mint, Kali, and Fedora through the Windows Subsystem for Linux (WSL) or a virtual machine, there are scenarios where a full Linux installation is necessary to utilize the hardware’s full capabilities for optimal performance.

If you don’t have a separate device for installing Linux, you can configure your existing system to run both Linux and Windows in a dual-boot setup. This guide focuses on dual-booting Windows 11 and Ubuntu, one of the most popular Linux distributions. However, these steps can be adapted for nearly any Linux distro or Windows 10 setup.

If your system uses BitLocker, you can still configure a dual-boot setup. However, you’ll need to temporarily disable BitLocker encryption before proceeding. Once Linux is installed, you can re-enable BitLocker.

In this guide, I will explain the process of setting up a dual-boot system with Windows and Linux, specifically using Windows 11 (or 10) and Ubuntu. Additionally, you can use similar steps to configure dual-boot with two different Windows versions.

Warning: It’s important to note that even though it’s safe to use this process to install Linux alongside Windows 11, creating a full backup of your computer before proceeding in case you need to roll back is still recommended.

Dual-boot set up using Windows 11 and Linux

Setting up a dual-boot system involves three main steps. First, create a bootable USB drive with the Linux distribution of your choice. Next, shrink the current Windows installation to allocate space for the second operating system. Finally, install the Linux distribution alongside Windows 11 (or 10) on the same computer.

Step 1: Create Linux USB bootable media

You’ll need to download the Linux ISO file for the latest version of your preferred distribution (in this example, Ubuntu) to create a bootable USB drive. Below are the links to download some popular Linux distributions:

On Windows, the easiest way to create a bootable USB drive that works with both BIOS and UEFI systems is by using the Rufus tool. Rufus is user-friendly and widely recommended for this purpose.

To create a bootable Linux USB drive, follow these steps:

  1. Open the Rufus page.

  2. Click the Download option for the latest version.

  3. Save the file onto your computer.

  4. Double-click the Rufus-x.x.exe file to launch the tool.

  5. On “Device,” use the drop-down menu and select the USB flash drive.

  6. Click the Select button.

  7. Choose the Linux ISO file (in this case, Ubuntu).

  8. Click the Open button.

  9. Choose the MBR option in the “Partition scheme” setting.

  10. Choose the BIOS or UEFI option in the “Target system” setting.

  11. On “File System,” select FAT32.

  12. (Optional) Confirm a name for the drive in the “Volume label” setting.

  13. Choose the FAT32 option in the “File system” setting.

  14. Continue with the default settings as they are.

  15. Click the Start button.

  16. Choose the “Write in ISO image mode” option (if applicable).

    Write in ISO image mode

  17. Click the OK button.

  18. Click the Yes button (if applicable).

  19. Click the OK button.

After completing the steps, you can proceed with the steps below to create a dual-boot system with Ubuntu and Windows 11.

Alternatively, you can use the Ventoy utility to make any installation media bootable by dragging and dropping the ISO file into a USB drive.

Step 2: Shrink Windows 11 partition

Although the Ubuntu installer provides an option to install alongside Windows 11 (or 10), this feature may not always function as expected. To ensure a smoother installation process, it’s recommended to manually shrink the Windows partition beforehand to create space for Ubuntu and then use the “Manual” installation option during setup.

Alternatively, you can use a secondary internal drive for the Ubuntu installation. This approach keeps each operating system on a separate physical drive, avoiding the need to modify the existing Windows partition and reducing the risk of accidental data loss.

If your device does not currently have an operating system installed, follow these instructions to perform a clean installation of Windows 11 (or use these steps for Windows 10). Once Windows is installed, proceed with the instructions below to set up a dual-boot configuration.

To shrink a partition on Windows 11 or 10 using Disk Management, follow these steps:

  1. Open Start.

  2. Search for Create and format hard disk partitions and click the top result to open the Disk Management console.

  3. Right-click the drive you want to change its partition size and select the Shrink Volume option.

    Disk Management shrink volume

  4. Confirm the amount of space to shrink the partition (in megabytes). 

    Change partition size

    Quick note: Ubuntu (and most distros) requires at least 25GB of available space.

  5. Click the Shrink button.

Once you complete the steps, you’ll end up with a small partition and some unallocated space to install Ubuntu. You can also use other methods to change the size of the partition on Windows 11.

Step 3: Dual-boot Windows 11 and Linux

After shrinking the Windows 11 (or 10) system partition and creating a bootable Linux drive, you can proceed with the dual-boot installation

To dual-boot Windows 11 and Linux, follow these steps:

  1. Restart your computer with a Linux USB bootable media.

    Quick Tip: If your computer is not starting into the Ubuntu (Fedora, Kali, or Mint) setup, you may need to access the system BIOS to change the boot settings to start from USB. Typically, you can change these settings by pressing one of the functions (for example, F2, F8, F12), Delete, or ESC key. However, check your computer manufacturer’s support website for more details.

  2. Select the “Try or Install Ubuntu” option and press Enter to continue.

    Grub Ubuntu Linux

  3. Choose your language.

    Linux install language settings

  4. Click the Continue button.

  5. Continue selecting your accessibility preferences.

    Linux install accessibility settings

    Quick note: You can configure visual, hearing, typing, and input settings.

  6. Click the Next button.

  7. Choose your keyboard layout.

    Linux install keyboard layout

  8. Click the Next button.

  9. Select your network connection. For example, “Use wired connection.”

    Linux install network connection

  10. Click the Next button.

  11. Select the Install Ubuntu option.

    Linux install option

  12. Click the Next button.

  13. Choose the Interactive installation.

    Linux Interactive installation

  14. Click the Next button.

  15. Choose the Default selection option.

    Linux install default selection

    Quick tip: The “Default selection” option sets up a leaner installation of the operating system with only the essential utilities. You can then use the App Center app to add more apps. The “Extended selection” adds more tools that are typically useful for offline situations.

  16. Check the “Install third-party software for graphics and Wi-Fi hardware” option.

    Linux setup driver installation

  17. Check the “Download and install support for additional media formats” option.

  18. Click the Next button.

  19. Choose the “Install Ubuntu alongside Windows Boot Manager” option.

    Linux setup dual-boot option

  20. Click the Next button.

  21. Create a local Linux account.

    Linux setup create local account

    Quick note: In this section, do not try to use the “root” username and choose the name for your computer.

  22. Click the Next button.

  23. Change your timezone (if applicable).

    Linux setup timezone setting

  24. Click the Next button.

  25. Click the Install button.

    Linux dual-boot install

  26. Click the Restart now button.

Once you complete the steps, Linux will install on your device alongside Windows 11 (or 10).

If you’re unable to start the device after updating to the latest build of Windows 11, it’s likely because Microsoft has fixed a vulnerability with the Secure Boot Advanced Targeting (SBAT) setting that also happened to affect dual-boot systems. This error will produce the “Verifying shim SBAT data failed: Security Policy Violation. Something has gone seriously wrong: SBAT self-check failed: Security Policy Violation” message.

If you haven’t restarted the computer to complete the installation of KB5041585, you can run the reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecureBoot\SBAT /v OptOut /d 1 /t REG_DWORD command through Command Prompt (admin). 

After the August 2024 update has been applied to the computer, you will have to disable Secure Boot in the UEFI/BIOS, boot into Ubuntu, and remove the SBAT policy running the sudo mokutil --set-sbat-policy delete command. Then restart the computer into Linux to update the changes, reboot the computer one more time, and re-enable Secure Boot.

If you plan to test this setup with VMware Workstation Pro, consider that Ubuntu 24.04 is not officially supported and may encounter issues. For instance, I encountered graphics and networking problems while writing this guide. If this is your case, you may be able to mitigate the graphics issues by disabling the 3D graphics and the auto-adjust interface features. If the problem is the network, you must install the drivers manually.

When the time comes, you can use these instructions to safely uninstall Linux from the dual-boot system.

Update January 2, 2025: This guide has been updated to ensure accuracy and reflect changes to the process.


Source link

Related Articles

Back to top button
close