Running Linux and Windows on one machine provides flexibility. This guide explains how to dual boot Linux and Windows so you can choose your operating system at startup.

What You Need to Dual Boot Linux and Windows

Gather these items before starting:

  • Computer with Windows already installed
  • USB flash drive (16GB minimum)
  • Linux distribution ISO file
  • At least 25GB free disk space
  • Backup of important files
Note: Install Windows first, then add Linux. Linux bootloaders detect Windows automatically. Windows installers ignore existing Linux installations.

Back Up Your Data

Copy essential files to external storage before modifying partitions. Data loss can occur during installation. Save documents, photos, and projects to a separate drive or cloud service.

Verify these settings in Windows:

Setting Action
Fast Startup Disable in Power Options
BitLocker Turn off if enabled
Secure Boot May need disabling
Warning: Disabling Fast Startup prevents file system corruption. Windows uses hybrid shutdown that conflicts with Linux access to shared partitions.

Create a Bootable USB Drive

Download your Linux distribution ISO file. Ubuntu and Linux Mint work well for beginners. Visit the official distribution website.

Use Rufus or Etcher to write the ISO to your USB drive:

1. Insert empty USB drive
2. Open Rufus or Etcher
3. Select your ISO file
4. Choose GPT partition scheme
5. Click Start to write

The process erases all USB contents. Wait for completion before ejecting.

Tip: Use Etcher on any operating system. It prevents accidentally overwriting your main drive.

Partition Your Hard Drive (Optional)

Most Linux installers handle partitioning automatically. Manual preparation is optional.

To shrink your Windows partition:

1. Press Win+R
2. Type: diskmgmt.msc
3. Right-click C: drive
4. Select "Shrink Volume"
5. Enter space amount (25000 MB minimum)
6. Leave space unallocated

The Linux installer formats unallocated space during setup.

How to Dual Boot Linux and Windows: Installation Steps

Restart your computer and boot from the USB drive. Press F12, F10, or Del during startup to access the boot menu. Select your USB device.

Test the Live Environment

Choose “Try Ubuntu” or “Try Linux” when prompted. This loads the system without installing. Test your hardware:

  • Connect to Wi-Fi
  • Check audio output
  • Test Bluetooth devices

Launch the installer when ready.

Select Installation Type

The installer presents partition options. Choose “Install alongside Windows” or “Install alongside Windows Boot Manager.” This option appears when Windows is detected.

A slider adjusts space allocation between operating systems. Drag to set how much space each system receives.

Warning: Selecting “Erase disk” deletes all existing data. Choose the “alongside” option to preserve Windows.

Configure Boot Partition

The installer detects your existing EFI System Partition. Set the mount point to /boot/efi without formatting. This partition contains boot files for both systems.

Complete remaining prompts:

  • Select timezone
  • Create username
  • Set password
  • Choose computer name

The installation takes 15-30 minutes. Remove the USB drive when prompted and restart.

Configure the Boot Menu

GRUB displays available operating systems at startup. Use arrow keys to navigate. Press Enter to boot your selection.

If Windows doesn’t appear in the menu, update GRUB:

$ sudo update-grub

This command scans for all installed systems and rebuilds the boot menu.

Set Default Boot Order

Access BIOS settings by pressing F2 or Del during startup. Navigate to the boot order section. Place your Linux distribution above Windows Boot Manager if you want Linux as default.

Tip: Edit /etc/default/grub to change the GRUB timeout. Set GRUB_TIMEOUT=10 for a 10-second selection window.

Troubleshooting Common Issues

Missing Boot Menu

If the system boots directly to Windows, the boot order needs adjustment. Enter BIOS and set your Linux bootloader as the primary option.

Cannot Boot Into Windows

Windows entries sometimes disappear from GRUB. Boot into Linux and run:

$ sudo update-grub
$ sudo grub-install /dev/sda

Replace /dev/sda with your actual boot drive identifier.

Secure Boot Errors

Some distributions require Secure Boot to be disabled. Access BIOS settings and disable Secure Boot under the Security tab.

Note: Ubuntu and Fedora support Secure Boot by default. Other distributions may require it disabled.

Shared Partition Access

Create an NTFS partition accessible from both systems. Linux mounts Windows partitions automatically. Access them through your file manager.

FAQs

Yes, you can install both operating systems on one drive. The installer creates separate partitions for each system automatically.

Allocate at least 25GB for Linux. Ubuntu recommends 25GB minimum, while 50GB provides comfortable space for applications and files.

No, dual booting doesn’t affect performance. Only one operating system runs at a time. Each system uses its allocated resources independently.

Yes, Linux can read and write Windows NTFS partitions. Mount Windows drives through your file manager to access files from both systems.

Delete Linux partitions in Windows Disk Management. Then repair the Windows bootloader using a Windows installation USB and the command bootrec /fixmbr.

Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.