The Ultimate Guide to Dual Boot Windows and Linux Without Losing Data

How to dual boot Windows and Linux

Dual-boot allows a user to choose one of two operating systems to start up on the same machine, with one of the most popular choices being Windows and Linux. Wondering how to dual boot Windows and Linux? This guide will show you how to configure a dual boot on your computer and seamlessly switch between the operating systems after installation.

Note

You can avoid dual booting by downloading and installing the Ubuntu Windows Subsystem for Linux (WSL) from the Windows Store if all you need is an Ubuntu Command Line Interface (CLI).

To get started, you will need the following items:

I recommend installing Ubuntu via flash drive since they’re faster than DVDs. Creating bootable media erases everything on the flash drive. Therefore, it is important to back up your data.

2. Linux iso

Download the Ubuntu ISO image.

3. Rufus

Download a tool that converts ISO files to bootable USB drives. For this tutorial we used a tool called Rufus. Here’s how to download it securely and safely step-by-step:

  1. Visit https://rufus.ie, the official Rufus website.
  1. Locate the Download area by scrolling down the webpage.
rufus download

Before setting dual boot

Methods differ per Linux distribution. Ubuntu Linux supports Secure Boot, thus we’re utilizing that here. Not all Linux distributions support Secure Boot.

If your Linux distribution supports Secure Boot, you may skip this step and go straight to Step 1 of dual boot configuration, installing a USB otherwise disable secure boot.

How to Disable Secure Boot

Although it may appear difficult at first, disabling Secure Boot on your computer is simple if you carefully follow these instructions. Here’s how to accomplish it:

  1. Restart your pc.
  1. During computer power up (usually on black screen) immediately start repeatedly pressing the key (usually F2, F10, Esc, or Del) until you see bios.

Note

Different PC manufacturers have different bios menu keys. Check the company’s website for details.

  1. Find the option labeled Secure Boot and disable it.
Secure boot

You may have different UI and settings for the BIOS depending on the company.

For some users, if you have the “OS Type” option available, set it to “Other OS” under the Boot section.

Other OS
  1. Save Changes and Exit
msi bios

Step 1 of dual boot setup: making a USB for Linux installation

Depending on the kind of Linux distribution you want to use, these steps may be slightly different. Again, for these steps, we’re using Ubuntu Linux as an example:

  1. Insert a USB into the computer and run the rufus tool.
rufus menu
  1. Choose your USB drive from the Device selection option.
rufus iso select
  1. Choose the ISO file that was downloaded from the SELECT dropdown menu.
MBR & GPT

From the Partition Scheme dropdown menu, choose MBR (for some Linux distributions, GPT might work).

  1. Select Write in ISO Image mode and click OK. 
rufus iso
  1. Carefully read the pop-up to make sure you back up the data if important for you otherwise you may not be able to recover your data
rufus data erase warning
  1. Close rufus.
exit rufus

Step 2: Create a partition

You must first create a partition in order to effectively dual boot Linux and Windows on your PC. To do this, take these actions:

  1. Select Disk Management from windows search.
Disk partition
  1. Right click on the largest partition. Select Shrink Volume.
shrink volume windows

Alert

You can also install Linux on a separate disk instead of a Windows partition. In my case, I only have one disk.

  1. Assign volume space to partition disk. For example, if the Linux distro needs 62.5GB (assume), you will need 62.5 x 1,024, or 64,000MB. Specify this number as the amount of space you want to be removed from the partition and select Shrink.
create space disk
  1. This will show up as “Unallocated”.
unallocated space

Step 3: how to install Linux for dual boot

The following are the steps to install Linux for dual boot.

  1. Restart your computer.
  2. Enter into the boot menu following steps
    1. During computer power up (usually on black screen) immediately start repeatedly pressing the key (usually F2, F10, F12, or Del) until you see the Boot Menu.
    2. Select USB drive from boot menu
Boot menu

Note

Different PC manufacturers have different boot menu keys. Check the company’s website for details. Also, the name of your USB drive may vary.

Now, the following are the steps you need to follow to install Ubuntu (Linux) for dual boot, with images attached.

ubuntu installation GRUB
ubuntu accessibility
ubuntu keyboard layout
ubuntu language
ubuntu internet wifi
ubuntu installation type
ubuntu selective installation
ubuntu drivers download
ubuntu manual installation
ubuntu partition
ubuntu disk management
ubuntu volume select
ubuntu account
ubuntu region select
ubuntu install process
ubuntu complete installation
ubuntu restart
ubuntu boot logo
ubuntu

How to switch between operating systems

In most cases, you will be able to switch between Windows and Linux after restarting like this

choose operating system

But if you don’t have any option then follow these steps

  1. Open Command Prompt as Administrator

Click the Search icon in the taskbar.

search taskbar

Type cmd, then right-click on the Command Prompt app and select Run as Administrator.

cmd
  1. Enable the Boot Menu

Type the following command and press Enter

boot menu command
bcdedit /set {bootmgr} displaybootmenu yes  
  1. Verify the Operation:

If the command is entered correctly, a message will appear stating that the operation was completed successfully.

  1. Restart Your Computer:

Reboot your system to check if the dual boot option is now visible.

FAQS

Share This Post
Have your say!
10

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>