How to Install Linux on Windows (Dual Boot or WSL)

March 8, 2025   General

Linux has become an excellent alternative for Windows users looking to expand their operating system experience. Whether you want to dual boot Linux alongside Windows or use Windows Subsystem for Linux (WSL) for a lightweight solution, this guide will walk you through the process step by step.

Why Install Linux on Windows?

Installing Linux on Windows allows users to enjoy the best of both worlds. Here’s why you might want to consider it:

  • Flexibility – Use Linux for development while keeping Windows for gaming or business applications.

  • Performance – Linux can be faster and more stable for specific tasks.

  • Security – Linux is known for its security and open-source nature.

  • Learning & Development – Many developers use Linux for its powerful command-line tools and package management.

Now, let’s look at two popular ways to install Linux on Windows: Dual Boot and WSL.


Method 1: Dual Booting Linux with Windows

Dual booting allows you to install both Windows and Linux on your machine and choose which OS to boot into when you start your computer.

Step 1: Create a Bootable Linux USB Drive

  1. Download a Linux Distro – Popular options include Ubuntu, Fedora, and Linux Mint.

  2. Create a Bootable USB – Use tools like Rufus (Windows) or Etcher to create a bootable USB drive.

  3. Check BIOS Settings – Enable USB boot and disable Secure Boot if needed.

Step 2: Shrink Windows Partition

Before installing Linux, create space for it:

  1. Open Disk Management in Windows (Win + X > Disk Management).

  2. Right-click your primary Windows partition and select Shrink Volume.

  3. Allocate at least 20-50GB for Linux.

Step 3: Install Linux

  1. Restart your PC and boot from the USB drive.

  2. Choose Try Linux or Install Linux from the menu.

  3. During installation, select Install alongside Windows (or manual partitioning if preferred).

  4. Set up your username, password, and time zone.

  5. Let the installation complete and restart your PC.

Step 4: Boot into Linux & Configure GRUB

  1. When your PC starts, you should see the GRUB Bootloader.

  2. Select Linux to boot into your new system.

  3. If Windows isn’t listed, run:

    sudo update-grub
  4. Enjoy your Linux system!


Method 2: Installing Linux via Windows Subsystem for Linux (WSL)

If you don’t want to dual boot, WSL is a great way to run Linux inside Windows without needing a separate partition.

Step 1: Enable WSL

  1. Open PowerShell as Administrator and run:

    wsl --install
  2. Restart your PC when prompted.

Step 2: Install a Linux Distro

  1. Open the Microsoft Store and search for Ubuntu, Debian, Kali Linux, or any other WSL-supported distro.

  2. Click Install and wait for it to complete.

  3. Open the installed Linux app and set up your username/password.

Step 3: Update & Use Linux in Windows

Once inside the WSL terminal:

sudo apt update && sudo apt upgrade -y

You now have a fully functional Linux environment within Windows!


Comparing Dual Boot vs. WSL

Feature Dual Boot WSL
Performance Native OS Speed Runs inside Windows
Disk Space Needs separate partition Uses Windows disk
Graphics Support Full GPU acceleration Limited
Ease of Use Requires rebooting Runs alongside Windows
Best For Gamers, Developers, Linux Enthusiasts Developers, Lightweight Usage

Conclusion

Both dual booting and WSL offer great ways to use Linux on a Windows machine. If you need full Linux functionality, dual booting is the way to go. If you just need access to a Linux terminal for development, WSL is an easier option.

Whichever method you choose, Linux brings flexibility, security, and powerful tools to your Windows PC. Happy computing!