A Complete Guide to Installing Ubuntu Alongside Windows


A Complete Guide to Installing Ubuntu Alongside Windows

You may get the best of both worlds when you install Ubuntu alongside Windows: Ubuntu for development, speed, and customisation, and Windows for compatibility and gaming. Even if you are a novice, this tutorial will show you how to dual boot Ubuntu and Windows step-by-step.

Why Run Windows and Ubuntu on the same computer?For the following reasons, many users decide to dual boot:

  • Flexibility: Use Windows for routine chores or applications that don't work with Linux, and Ubuntu for coding, testing, or development.
  • Performance: Ubuntu is lightweight and quick, especially when running on outdated hardware.
  • Learning: Linux gives you a better understanding of operating systems.
  • Security: Ubuntu is less vulnerable to malware and viruses.
  • Pre-Installation Checklist

    Before starting, make sure you have the following:

    • A Windows-installed PC or laptop

    • A USB flash drive (at least 8 GB)

    • A backup of important data

    • Stable internet connection

    • Ubuntu ISO file (download from ubuntu.com)

    • Rufus or another bootable USB creation tool (for Windows)

    Step 1: Create Space for Ubuntu

    You’ll need to shrink the existing Windows partition:

    1. Press Win + R, type diskmgmt.msc, and press Enter.

    2. Right-click on the main Windows partition and choose Shrink Volume.

    3. Allocate at least 25 GB for Ubuntu.

    4. Leave the space unallocated (do not format it).

    Step 2: Create a Bootable Ubuntu USB Drive

    To install Ubuntu, create a bootable USB drive:

    1. Download the Ubuntu ISO from the official site.

    2. Insert your USB flash drive and open Rufus.

    3. Select the USB device and choose the downloaded Ubuntu ISO.

    4. Click Start and wait for the process to finish.

    Step 3: Boot Into Ubuntu Installation Mode

    1. Restart your PC and press the boot menu key (usually F12, F2, Esc, or Del) during startup.

    2. Select your USB drive to boot from.

    3. Choose “Try Ubuntu without installing” to test Ubuntu or go directly to “Install Ubuntu”.

    Step 4: Install Ubuntu Alongside Windows

    1. In the Ubuntu installer, select your language and click Install Ubuntu.

    2. Choose Install third-party software (recommended for drivers).

    3. When asked Installation Type, select:

      • “Install Ubuntu alongside Windows Boot Manager”
        (If this option appears, it's the easiest way.)

      If not:

      • Choose Something Else.

      • Select the unallocated space and create the following partitions:

        • Root / (at least 20 GB, ext4)

        • Swap area (optional: size equal to your RAM if needed)

        • /home (optional: for storing user files separately)

    4. Choose the correct device for the bootloader (usually /dev/sda).

    5. Click Install Now and follow the prompts to set your username and password.

    Step 5: Restart and Choose Your Operating System

    After installation:

    1. Remove the USB drive.

    2. Restart your PC.

    3. You’ll now see the GRUB boot menu where you can select between Ubuntu and Windows.

    If Windows does not appear in the boot menu, run:

    bash
    sudo update-grub

    from the Ubuntu terminal.

    Tips for a Smooth Dual Boot Experience

    • Keep your system updated on both operating systems.

    • Use NTFS or exFAT file systems for sharing files between Ubuntu and Windows.

    • Always shut down Windows properly; don’t hibernate.

    • Consider installing Timeshift on Ubuntu for system backups.

    Conclusion

    Dual booting Ubuntu and Windows is a powerful setup that gives you the versatility of both operating systems on a single machine. With this guide, even users with minimal experience can set up Ubuntu alongside Windows without losing data. Take your time, follow the steps carefully, and soon you'll be enjoying a dual-boot environment that supports both productivity and exploration.