Running both Linux and Windows on one computer gives you access to applications from both ecosystems. If you’ve ever wondered how to dual boot linux and windows, this guide walks you through every step in plain language.
Dual booting lets you choose which operating system to start when you turn on your PC. You get the best of both worlds without needing two separate machines. Let’s get started.
What Is Dual Booting And Why Do It
Dual booting means installing two operating systems on the same computer. Each one lives on its own partition. When you boot up, a menu appears asking which OS you want to use.
Why would you want this? Maybe you need Windows for gaming or specific software. But you also want Linux for programming, privacy, or a faster workflow. Dual booting gives you that flexibility.
It’s different from running a virtual machine. With a VM, both OSes run at the same time, but performance can suffer. Dual booting gives full hardware access to whichever OS you choose.
Prerequisites For Dual Booting
Before you start, make sure you have everything ready. Here’s what you need:
- A computer with at least 50 GB of free disk space
- A Windows installation (already installed or a fresh copy)
- A Linux distribution ISO file (Ubuntu is beginner-friendly)
- A USB flash drive (8 GB or larger)
- Backup of your important files
Backup is not optional. Partitioning can go wrong. Use an external drive or cloud storage to save your data.
Check Your System Type
Most modern computers use UEFI firmware with GPT disks. Older ones use BIOS with MBR. You need to know which one you have. To check in Windows, open System Information. Look for “BIOS Mode.” If it says UEFI, you’re good.
Disable Fast Startup And Secure Boot
Windows Fast Startup can cause issues during dual boot. Turn it off in Power Options. Also, Secure Boot might block Linux from booting. You can disable it in your BIOS settings. Some Linux distros work with Secure Boot, but it’s safer to turn it off.
How To Dual Boot Linux And Windows: Step-By-Step
Now for the main event. Follow these steps carefully. Take your time.
Step 1: Shrink Your Windows Partition
You need free space for Linux. Windows usually takes up the whole drive. You’ll shrink it to make room.
- Press Windows + X and select Disk Management.
- Right-click your main drive (usually C:) and choose Shrink Volume.
- Enter the amount to shrink in MB. For a basic install, 30,000 MB (30 GB) is enough. For more apps, use 50,000 MB or more.
- Click Shrink. You’ll see unallocated space appear.
Don’t create a new partition in Windows. Leave the space unallocated. Linux will use it during installation.
Step 2: Create A Bootable USB Drive
You need to put the Linux ISO onto a USB drive. Use a tool like Rufus (Windows) or Etcher (cross-platform).
- Download your chosen Linux ISO.
- Open Rufus. Select your USB drive.
- Under Boot selection, choose the ISO file.
- Keep the default settings. Click Start.
- Wait for the process to finish. It takes a few minutes.
Make sure you backup any data on the USB. It will be erased.
Step 3: Boot From The USB Drive
Restart your computer. Enter the boot menu. The key varies by manufacturer: F12, F2, Esc, or Del. Look for the option to boot from USB.
If your computer boots straight to Windows, you need to change the boot order in BIOS. Disable Fast Boot in BIOS if it’s on. Save and exit.
You should see the Linux boot menu. Select “Try Ubuntu” or “Install Linux.”
Step 4: Install Linux Alongside Windows
Once the live environment loads, double-click the Install icon. Follow the prompts:
- Choose your language and keyboard layout.
- Select “Normal installation” or “Minimal installation.”
- For updates, check “Download updates while installing.”
When you reach the “Installation type” screen, you have options. Look for “Install Linux alongside Windows Boot Manager.” This is the easiest choice. The installer will automatically use the unallocated space.
If you want manual control, choose “Something else.” Then create partitions in the unallocated space:
- Swap partition: 4-8 GB (optional for hibernation)
- Root partition (/): 20-30 GB
- Home partition (/home): rest of the space
Set the root partition’s mount point to “/”. For home, use “/home”.
Step 5: Complete The Installation
Select your time zone. Create a username and password. The installer will copy files and set up the bootloader. When done, restart your computer.
Remove the USB drive when prompted. You should see the GRUB boot menu. It lists both Ubuntu and Windows. Use arrow keys to choose.
Post-Installation Setup
After dual booting works, you need to do a few things to keep things smooth.
Set Default Boot OS
GRUB usually boots the last OS you used. You can change the default. In Linux, edit the GRUB configuration file:
- Open terminal. Type
sudo nano /etc/default/grub. - Find
GRUB_DEFAULT=0. Change 0 to the menu entry number. Windows is often 4 or 5. - Save and exit. Run
sudo update-grub.
Share Files Between OSes
Linux can read Windows NTFS drives. But Windows cannot read Linux ext4 drives by default. To share files, create a common partition formatted as exFAT or FAT32. Or use a cloud service like Dropbox.
Update Both Systems Regularly
Keep Windows and Linux updated. In Linux, use the Software Updater or terminal commands. In Windows, run Windows Update. Updates fix bugs and security issues.
Common Dual Boot Issues And Fixes
Things can go wrong. Here are common problems and solutions.
Windows Not Showing In GRUB
If Windows is missing from the boot menu, run this in Linux terminal:
sudo update-grub
This scans for other OSes. If Windows still doesn’t appear, you may need to mount the Windows partition first.
Boot Directly To Windows
If your computer skips GRUB and boots Windows, the boot order might be wrong. Enter BIOS and set the Linux bootloader (often “Ubuntu” or “GRUB”) as the first boot device.
GRUB Rescue Prompt
If you see “grub rescue” on a black screen, the bootloader is broken. Boot from the Linux USB. Choose “Try Linux.” Then reinstall GRUB:
- Open terminal. Find your Linux partition:
sudo fdisk -l - Mount it:
sudo mount /dev/sdXY /mnt(replace sdXY with your root partition) - Reinstall GRUB:
sudo grub-install --root-directory=/mnt /dev/sdX - Update GRUB:
sudo update-grub
Time Sync Issues
Windows and Linux handle system time differently. Windows uses local time, Linux uses UTC. This can cause time to be wrong when switching OSes. Fix it in Linux:
sudo timedatectl set-local-rtc 1
Or in Windows, enable UTC by editing the registry. Search online for the exact steps.
Advanced Dual Boot Configurations
Once you’re comfortable, you can try more advanced setups.
Dual Boot With Separate Drives
Using two physical drives is simpler. Install Windows on one drive, Linux on the other. Use BIOS boot menu to choose which drive to boot from. No GRUB needed.
Using A Boot Manager Like REFInd
rEFInd is a graphical boot manager. It detects all OSes automatically. Install it in Linux. It gives a nicer boot screen than GRUB.
Encrypted Dual Boot
You can encrypt your Linux partition with LUKS. During installation, choose “Encrypt the new Linux installation.” Windows BitLocker can encrypt the Windows partition. Each OS has its own encryption.
FAQ: How To Dual Boot Linux And Windows
Can I Dual Boot Linux And Windows On The Same Hard Drive?
Yes. You shrink the Windows partition and install Linux in the free space. The bootloader manages both.
Will Dual Booting Slow Down My Computer?
No. Only one OS runs at a time. Performance is the same as running a single OS. Just make sure you have enough disk space.
Can I Remove Linux Later Without Losing Windows?
Yes. Delete the Linux partitions from Windows Disk Management. Then repair the Windows bootloader using a recovery USB.
What Is The Best Linux Distro For Dual Booting?
Ubuntu is the most beginner-friendly. Linux Mint and Pop!_OS are also good choices. They all have easy dual boot options.
Do I Need To Disable Secure Boot For Dual Booting?
Not always. Ubuntu and Fedora support Secure Boot. But if you have issues, disable it in BIOS. It’s safe to turn off.
Final Thoughts On Dual Booting
Dual booting gives you the power to choose your environment. You can use Windows for gaming and Linux for coding. The setup takes about an hour, but it’s worth it.
Remember to backup your data before starting. Follow the steps slowly. If something goes wrong, you can always start over. Most issues are fixable with a live USB.
Now you know how to dual boot linux and windows. Go ahead and give it a try. You’ll have both systems running smoothly in no time.