Install Linux from Windows: Step-by-Step Guide
In this article
Yes, you can install Linux directly from Windows without using a USB drive or DVD. The easiest way is to create a bootable ISO file on your hard drive and boot from it using Windows' built-in tools, or use the Windows Subsystem for Linux (WSL) if you just want a command-line environment. This guide covers both: a full dual-boot installation (so you can choose Linux or Windows at startup) and WSL for a lighter setup. First, back up your important files—dual-booting resizes your Windows partition, and while it's usually safe, things can go wrong.
What You'll Need
- A Windows PC with at least 25 GB of free disk space (more if you plan to install many applications).
- A Linux distribution ISO file. Ubuntu and Linux Mint are beginner-friendly. Download from the official website (e.g., ubuntu.com).
- An internet connection to download the ISO and any updates.
- For dual-boot: a tool to mount the ISO (Windows 10/11 can mount ISOs by double-clicking) and a way to shrink your Windows partition (Disk Management is built-in).
- For WSL: Windows 10 version 2004 or later, or Windows 11. WSL is not available on Windows Home in older versions, but it is now on most.
Step-by-Step
Option A: Full Dual-Boot Installation (Recommended for most users)
- Back up your data. Copy important files to an external drive or cloud storage. This is non-negotiable—partition resizing carries a small risk of data loss.
- Download a Linux ISO. Go to the official site of your chosen distribution (e.g., ubuntu.com/download) and download the desktop ISO file.
- Create free space on your Windows drive. Right-click the Start button and select Disk Management. Find your main Windows partition (usually C:), right-click it, and choose Shrink Volume. Enter the amount to shrink (e.g., 50 GB = 51200 MB) and click Shrink. Leave the new unallocated space as is—the Linux installer will use it.
- Mount the ISO. In File Explorer, right-click the ISO file and select Mount. This creates a virtual DVD drive.
- Run the Linux installer. Open the mounted drive and double-click the file named wubi.exe (if present) or linux.exe (varies by distribution). If there's no such file, you'll need to create a bootable USB—the ISO alone won't boot on all systems. For Ubuntu, the file is usually wubi.exe (though it's deprecated in recent versions). If you don't see an installer, follow the USB method instead (see Tips).
- Choose installation type. When prompted, select Install alongside Windows (or Something else if you want manual partition control). The installer will detect the unallocated space and use it automatically.
- Follow the prompts. Select your language, timezone, and keyboard layout. Create a username and password. The installer will copy files and ask you to reboot.
- Reboot and choose Linux. After reboot, you'll see a menu (GRUB) listing both Windows and Linux. Use arrow keys to select Linux and press Enter.
Option B: Windows Subsystem for Linux (WSL) – For command-line only
- Enable WSL. Open PowerShell as Administrator (right-click Start > Windows PowerShell (Admin)). Run:
wsl --install. This installs WSL2 and the default Ubuntu distribution. It may require a reboot. - Reboot your PC. After reboot, the Ubuntu terminal will open automatically to finish setup. If not, search for “Ubuntu” in the Start menu and launch it.
- Create a Linux username and password. You'll be prompted to enter a UNIX username and password. This is separate from your Windows login.
- Update your Linux system. Run
sudo apt update && sudo apt upgradeto get the latest packages.
Note: WSL does not give you a graphical desktop by default. It's a command-line environment. For a full Linux desktop, use Option A.
Common Mistakes
- Skipping the backup. Even though shrinking is safe, a power outage during partitioning can corrupt data. Always back up.
- Not leaving enough space. 25 GB is the bare minimum; 50 GB is comfortable. If you plan to install many programs, go larger.
- Choosing “Erase disk” during installation. This wipes Windows completely. Always choose “Install alongside Windows” unless you're sure you don't need Windows.
- Using an old ISO. Older ISOs may not support newer hardware. Download the latest LTS version of your distribution.
- Forgetting to disable Fast Startup in Windows. This can cause hardware to be locked and Linux may not see your Windows partition. To disable: Control Panel > Power Options > Choose what the power buttons do > Change settings that are currently unavailable > uncheck “Turn on fast startup”.
Tips
- If you can't find an installer in the ISO, create a bootable USB. Use Rufus (official site: rufus.ie) to write the ISO to a USB stick, then boot from it by pressing F12 or Esc during startup. This is the most reliable method.
- Test Linux before installing. Most ISOs let you “Try Ubuntu” from the live environment. Use this to check that your Wi-Fi, sound, and graphics work before committing.
- Keep Windows and Linux on separate drives if possible. If you have two hard drives, install Linux on the second one to avoid partition resizing risks.
- Use a dedicated partition tool. GParted (available on the live Linux USB) is more flexible than Windows Disk Management for resizing.
- After installation, update your system. Run
sudo apt update && sudo apt upgrade(Ubuntu) to get security patches.
Troubleshooting
- GRUB doesn't show Windows. Boot into Linux, open a terminal, and run
sudo update-grub. This scans for other operating systems and adds them to the boot menu. - Windows won't boot after Linux install. This is rare but can happen. Boot from a Windows recovery USB (create one from Windows: Settings > Update & Security > Recovery > Advanced startup). Choose “Startup Repair”. If that fails, use the command prompt and run
bootrec /fixmbrandbootrec /rebuildbcd. - Linux installer doesn't detect the unallocated space. Make sure you actually shrunk the partition and didn't just create a new volume. In Disk Management, you should see “Unallocated” space. If not, right-click the C: drive and select “Extend Volume” to undo, then try again.
- WSL installation fails. Ensure virtualization is enabled in BIOS (look for “Intel VT-x” or “AMD-V”). Also, run
wsl --updateafter installation. - Wi-Fi doesn't work in Linux. Some Wi-Fi cards need proprietary drivers. Connect via Ethernet temporarily, then install drivers from the “Additional Drivers” tool (Ubuntu) or use the manufacturer's Linux driver.
Frequently Asked Questions
Can I install Linux without a USB drive?
Yes, you can use the ISO mounting method (Option A) if your distribution provides a Windows installer (like Wubi for Ubuntu). However, most modern distributions no longer include this, so the USB method is more reliable. WSL is another option that doesn't require a USB.
Will installing Linux delete my Windows files?
No, if you choose “Install alongside Windows”, your Windows files remain untouched. The installer shrinks the Windows partition and uses the free space. Always back up before proceeding, just in case.
Can I have both Windows and Linux on the same computer?
Yes, that's called dual-booting. You'll see a menu at startup to choose which OS to boot. Both OSes share the same hard drive but have separate partitions.
What is the easiest Linux distribution for beginners?
Ubuntu and Linux Mint are the most recommended for newcomers. They have large communities, extensive documentation, and user-friendly installers.
How do I remove Linux later if I want to?
Boot into Windows, open Disk Management, delete the Linux partitions (the ones with Linux filesystem, like ext4), and then run bootrec /fixmbr from a Windows recovery command prompt to restore the Windows bootloader. Alternatively, use a tool like EasyBCD to manage the boot menu.
Is WSL the same as a full Linux installation?
No. WSL runs Linux inside Windows using a virtual machine layer. It gives you a command-line interface but not a graphical desktop. It's great for development, but not for using Linux as your daily desktop OS.