How to Dual Boot Ubuntu and Windows: A Beginner’s Guide

Dual-booting Ubuntu and Windows lets you enjoy the best of both worlds. You can run Ubuntu for development and productivity while keeping Windows for gaming or specific applications. This guide will show you how to safely set up a dual-boot system.


What You’ll Need

  1. A USB Drive: At least 8GB for the Ubuntu installer.
  2. Ubuntu ISO File: Download the latest version from ubuntu.com.
  3. Windows Installed: Ensure Windows is already installed on your system.
  4. Backup Your Data: Before proceeding, back up all important files in case anything goes wrong.

Step 1: Prepare Your USB Drive

  1. Download Rufus or balenaEtcher:
  • If you’re on Windows, use Rufus to create a bootable USB drive.
  • On macOS or Linux, use balenaEtcher.
  1. Create a Bootable USB:
  • Insert your USB drive.
  • Open Rufus or Etcher.
  • Select the downloaded Ubuntu ISO file and your USB drive.
  • Start the process to make the USB bootable.

Step 2: Shrink Windows Partition

  1. Open Disk Management:
  • Press Win + R, type diskmgmt.msc, and hit Enter.
  1. Shrink a Partition:
  • Right-click your main drive (usually C:) and select Shrink Volume.
  • Enter the size you want to allocate for Ubuntu (20GB minimum recommended).
  • Click Shrink.

Note: Don’t create a partition for Ubuntu yet. Leave the space as “Unallocated.”


Step 3: Boot from the USB

  1. Restart Your Computer.
  2. Access BIOS/UEFI:
  • Press the appropriate key (like F2, F12, Esc, or Del) during startup.
  1. Set USB as the Boot Device:
  • Navigate to the Boot menu and select your USB drive.
  1. Save and Exit:
  • Your system will boot into the Ubuntu installer.

Step 4: Install Ubuntu

  1. Choose “Try Ubuntu”:
  • This lets you try Ubuntu without installing it.
  1. Start the Installation:
  • Double-click the Install Ubuntu icon on the desktop.
  1. Choose Installation Type:
  • Select Install Ubuntu alongside Windows Boot Manager.
  • If this option isn’t available, choose Something Else to manually partition.
  1. Partition the Unallocated Space:
  • Select the unallocated space and create the following partitions:
    • Root (/): 20GB or more, ext4 filesystem.
    • Swap Area: 2GB or more, if you don’t have enough RAM.
    • Home (/home): The remaining space for your personal files.
  1. Complete the Installation:
  • Follow the prompts, set up your username, and wait for the installation to finish.
  1. Restart:
  • Remove the USB drive and restart your computer.

Step 5: Set Up GRUB Bootloader

When you restart, you’ll see the GRUB menu, which lets you choose between Ubuntu and Windows.

  • If you don’t see the GRUB menu:
  1. Boot into Ubuntu and open the terminal.
  2. Run:
    bash sudo update-grub
  3. Restart your computer.

Step 6: Verify Everything Works

  1. Test Booting Ubuntu:
  • Select Ubuntu from the GRUB menu and ensure everything works.
  1. Test Booting Windows:
  • Reboot and select Windows from the GRUB menu to confirm it loads properly.

Tips for Managing a Dual-Boot System

  1. Switch Boot Order:
  • Use your BIOS/UEFI settings to change the default boot option if needed.
  1. Access Shared Files:
  • Ubuntu can read NTFS drives, so you can access your Windows files from Ubuntu.

Troubleshooting

  1. GRUB Not Showing:
  • Boot into Ubuntu via USB and run:
    bash sudo grub-install sudo update-grub
  1. Windows Boot Issues:
  • Use Windows Recovery tools to fix the bootloader:
    cmd bootrec /fixmbr bootrec /fixboot

Leave a Reply

Your email address will not be published. Required fields are marked *