If you’re curious about Linux but not ready to completely let go of Windows, dual booting is the perfect solution. It allows you to install Linux alongside Windows on the same computer, giving you the choice of which operating system to use at startup. This guide walks you through the entire process.
Prerequisites
Before getting started, ensure the following:
- A computer already running Windows 10 or 11
- At least 20–30 GB of free disk space
- A USB drive (minimum 4GB)
- A reliable tool like Rufus or Etcher
- A downloaded Linux ISO file (e.g., Ubuntu, Mint, Fedora)
- Backup your important data (recommended)
Step 1: Create a Partition for Linux
- Open Disk Management:
- Press
Windows + X
→ Click Disk Management
- Press
- Shrink a volume (preferably C: drive) to make space for Linux:
- Right-click on C: → Select Shrink Volume
- Enter the amount of space to shrink (minimum 20,000 MB for 20GB)
- Click Shrink
This will create Unallocated space for Linux installation.
Step 2: Create a Bootable USB Drive
- Download your chosen Linux distro ISO (e.g., ubuntu.com)
- Download and install Rufus (rufus.ie)
- Plug in your USB drive and open Rufus:
- Select your ISO
- Partition scheme: MBR for legacy BIOS or GPT for UEFI
- Click Start and wait until the bootable drive is ready
Step 3: Boot into Linux Installer
- Restart your PC and enter the boot menu (
F12
,ESC
,DEL
, orF2
, depending on your PC) - Select the USB drive to boot from it
- The Linux live environment will load
- Click on “Install [Linux Distro]” to begin installation
Step 4: Install Linux Alongside Windows
- Choose your language and keyboard layout
- Installation Type:
- Select Install alongside Windows Boot Manager
- If this option isn’t shown, choose “Something else” and select the free space to manually install Linux
- Create Linux partitions (if needed):
- Root (
/
) – at least 20 GB, ext4 - Optional: Swap (same size as RAM), and Home (
/home
) for personal files
- Root (
- Choose the device for the boot loader (usually
/dev/sda
) - Click Install Now
Step 5: Set Timezone and User Info
- Select your timezone
- Enter username, password, and computer name
- Click Continue
The installation will now begin and take a few minutes to complete.
Step 6: Reboot and Choose Your OS
After installation:
- The system will prompt you to remove installation media and reboot
- On reboot, you’ll see the GRUB boot menu where you can choose between Linux and Windows
Optional: Customize GRUB Boot Order
You can change the default OS (e.g., boot into Windows by default):
- Boot into Linux
- Open terminal and run:
sudo nano /etc/default/grub - Change
GRUB_DEFAULT=0
to the OS entry you want (e.g., 1 for Windows) - Save and exit (Ctrl + O, Enter, Ctrl + X)
- Update GRUB:
sudo update-grub
Troubleshooting Tips
- If Windows doesn’t appear in GRUB, run:
sudo update-grub - If the Linux installer erases Windows, it’s likely due to incorrect partitioning or overwriting the Windows bootloader. Restore using a Windows recovery disk.
Final Thoughts
Dual booting Linux with Windows gives you the flexibility to explore Linux without losing access to your existing Windows environment. It’s ideal for developers, power users, and tech enthusiasts looking to enjoy the best of both worlds.