Install Ubuntu on a Windows PC: Step-by-Step
In this article
Yes, you can install Ubuntu Linux on a Windows PC — either alongside Windows (dual boot) or replacing it entirely. This guide covers the dual-boot method, which lets you choose Ubuntu or Windows at startup, and is the safest way to try Linux without losing your existing system. You'll need a USB drive (8 GB or larger), a Windows PC with at least 25 GB of free disk space, and about an hour of time. The process involves downloading Ubuntu, creating a bootable USB, shrinking your Windows partition, and then running the installer.
What You'll Need
- A Windows PC (Windows 10 or 11) with at least 25 GB of free hard drive space.
- A USB flash drive (8 GB or larger) — all data on it will be erased.
- A stable internet connection to download Ubuntu.
- Your PC's power cable plugged in (avoid battery drain during installation).
- Optional: a backup of your important files, just in case.
Step-by-Step
- Back up your data. Before making any changes to your hard drive, copy important files to an external drive or cloud storage. While the steps below are safe, unexpected issues can always occur.
- Download Ubuntu. Go to the official Ubuntu website (ubuntu.com/download) and download the latest LTS (Long Term Support) version, which is recommended for stability. The file is an ISO image, about 4–5 GB.
- Create a bootable USB drive. Use a tool like Rufus (for Windows) or the official Ubuntu installer. Insert your USB drive, open Rufus, select the downloaded ISO, and click Start. Choose "Write in ISO mode" if asked. This will erase the USB drive, so make sure it's empty.
- Shrink your Windows partition. Right-click the Start button and select "Disk Management." Find your main Windows drive (usually C:), right-click it, and choose "Shrink Volume." Enter the amount of space you want to free up (e.g., 50000 MB for 50 GB) and click Shrink. This creates unallocated space for Ubuntu.
- Restart your PC and boot from the USB. Restart your computer and press the boot menu key (usually F12, F2, Esc, or Del, depending on your PC brand) during startup. Select your USB drive from the boot menu. If you're unsure, check your PC's manual or look for a message on the screen.
- Try Ubuntu or install it. When the USB boots, you'll see a menu. Select "Try Ubuntu" to test it without installing, or "Install Ubuntu" to start the installation. For a first-time install, "Install Ubuntu" is fine — you can still cancel later.
- Choose installation type. The installer will ask how you want to install. Select "Install Ubuntu alongside Windows Boot Manager" — this is the dual-boot option. It will automatically use the unallocated space you created earlier.
- Set up your preferences. Follow the prompts: choose your keyboard layout, connect to Wi-Fi if you want, and select the "Normal installation" (recommended) or "Minimal installation." You'll also be asked to create a username and password — this is your Ubuntu login, not your Windows password.
- Install Ubuntu. Review the summary and click "Install Now." The installer will copy files and set up the system. This takes 10–20 minutes. When it's done, you'll be prompted to restart and remove the USB drive.
- Restart and choose your OS. After restarting, you'll see a menu called GRUB that lets you choose between Ubuntu and Windows. Use the arrow keys to select and press Enter. If you don't see it, your PC may boot straight to Windows — you can access the boot menu again and select the Ubuntu entry.
Common Mistakes
- Skipping the backup. Even though dual-boot is safe, a power failure during partitioning can cause data loss. Always back up.
- Not shrinking the partition correctly. If you shrink too little, Ubuntu won't have enough space. If you shrink too much, Windows may fail to boot. Stick to 50 GB or more if you can.
- Choosing "Erase disk" instead of "Install alongside." This will delete Windows entirely. Double-check the installation type before clicking Install Now.
- Forgetting to change boot order. Some PCs boot straight to Windows even after Ubuntu is installed. You may need to change the boot order in BIOS/UEFI to give Ubuntu priority.
- Using a USB drive that's too small. The installer needs at least 4 GB to write the ISO, but 8 GB is safer. Also, ensure the USB is formatted as FAT32 or NTFS — Rufus does this automatically.
Tips
- Use the latest LTS version. LTS releases are supported for 5 years and are more stable than interim releases.
- Keep Windows and Ubuntu separate. Don't try to access Windows files from Ubuntu unless you understand Linux file permissions — it's possible but can cause confusion.
- Learn basic Linux commands. You'll use the terminal for many tasks. Start with
ls(list files),cd(change directory), andsudo(run as administrator). - Update Ubuntu after installation. Open "Software Updater" or run
sudo apt update && sudo apt upgradein the terminal to get the latest security patches. - Test hardware compatibility. Before installing, you can boot the USB and select "Try Ubuntu" to see if Wi-Fi, sound, and graphics work. If not, you may need to install additional drivers after installation.
Troubleshooting
Ubuntu doesn't boot from the USB. Check that the USB is correctly created (try Rufus again). Also, ensure your PC's boot mode (UEFI vs Legacy) matches the USB format. Most modern PCs use UEFI — Rufus should format the USB as GPT for UEFI. If you have an older PC, try the MBR option.
Windows doesn't show up in the GRUB menu. This can happen if Windows was installed after Ubuntu or if GRUB didn't detect it. Boot into Ubuntu, open a terminal, and run sudo update-grub. This scans for other operating systems and adds them to the menu.
Ubuntu installs but can't connect to Wi-Fi. Some Wi-Fi cards need proprietary drivers. Connect via Ethernet if possible, then go to "Software & Updates" > "Additional Drivers" and select the recommended driver. If that doesn't work, search online for your Wi-Fi card model and Ubuntu.
You see a black screen after selecting Ubuntu. This is often a graphics driver issue. At the GRUB menu, select Ubuntu and press 'e' to edit the boot entry. Find the line starting with linux and add nomodeset at the end. Press Ctrl+X to boot. If it works, you can make the change permanent by editing the GRUB configuration file.
You want to remove Ubuntu later. You can delete the Ubuntu partitions using Windows Disk Management, then run bootrec /fixmbr from a Windows recovery USB to restore the Windows bootloader. Be careful — this will make Ubuntu unrecoverable.
Frequently Asked Questions
Can I install Ubuntu without a USB drive?
Yes, you can use a DVD if your PC has a disc drive, or you can use a tool like UNetbootin to install from Windows directly, but a USB drive is the most common and reliable method.
Will Ubuntu slow down my Windows PC?
No, Ubuntu runs independently. It won't affect Windows performance, but it will take up disk space. You can choose which OS to boot each time.
Can I access my Windows files from Ubuntu?
Yes, you can mount your Windows partition from Ubuntu's file manager. It's usually under "Other Locations" in the sidebar. You'll have read/write access, but be careful not to modify system files.
How much disk space do I need for Ubuntu?
At least 25 GB for the system and basic apps, but 50 GB or more is recommended if you plan to install many programs or store files.
Is it safe to install Ubuntu alongside Windows?
Yes, if you follow the steps carefully. The installer handles partitioning automatically when you choose "Install alongside Windows." Just ensure you have a backup.
Can I uninstall Ubuntu later?
Yes, but it's not as simple as uninstalling a normal program. You'll need to delete the Ubuntu partitions and repair the Windows bootloader, as described in the troubleshooting section.