Skip to content

Dual Boot

You'll shrink an existing Windows install, put Linux next to it with a shared data partition, and get both systems onto one startup menu without trampling each other.

About

Dual booting is how most people keep Windows around for the one program they can't replace, and it's also where most people lose data, so the badge starts with a backup and a partition drawing before anything is touched. Windows fast startup and the two systems disagreeing about the clock are the two things nobody warns you about, and both are covered here. The steps assume Windows, which is what nearly every dual boot is; an Intel Mac works the same way with Disk Utility doing the shrinking. Do this on a machine you own, not a work laptop, and expect a long afternoon with a few reboots. If anything goes wrong with the boot menu, the Rescue Chroot badge is the next one up.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
6
Takes
One weekend
Skill level
Intermediate (months of practice)
Cost
Free
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Common badges in Linux to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Back up what matters and draw the partition plan. Copy your documents somewhere off the machine. Then draw the drive as it is (lsblk from a live USB, or Disk Management on Windows) and as you want it: Windows, the EFI partition, Linux root, swap or a swap file, and a shared NTFS or exFAT data partition both can read. Take a photo of the drawing and the backup. Photo
  2. 2
    Turn off Windows fast startup and shrink the Windows partition from inside Windows. Fast startup leaves the Windows filesystem half closed, which makes it read-only or corrupt when Linux touches it. Turn it off in the power settings. Then shrink the drive in Disk Management, not from Linux, because Windows moves its own unmovable files better than anything else can. Leave at least 40 GB for Linux. Take a photo of the power setting and the shrunk partition. Photo
  3. 3
    Install Linux into the free space, telling the installer to install alongside. Pick the installer's alongside option, or manual partitioning if you want to match your drawing. Make sure it uses the existing EFI partition rather than making a new one. Take a photo of the partition screen before you confirm. Photo
  4. 4
    Boot both systems from the GRUB menu. If Windows doesn't appear, install os-prober, set GRUB_DISABLE_OS_PROBER=false in /etc/default/grub (newer GRUB turns it off by default, which is the step everyone misses), and run update-grub or your distro's equivalent. Boot into each one in turn. Take a photo of the menu with both entries. Photo
  5. 5
    Fix the clock so it's right in both. Linux keeps the hardware clock in UTC and Windows in local time, so one of them will be hours off after every switch. Either run timedatectl set-local-rtc 1 on Linux or set the RealTimeIsUniversal registry key in Windows. Take a photo of both systems showing the same time. Photo
  6. 6
    Write a file from each side on the shared partition and read it from the other. Mount the shared partition on Linux, add it to fstab so it mounts at boot, and check Windows can see what you wrote. Take a photo of the same file open on both systems. Photo