Dual Boot with Windows
You don't have to give up Windows to use LeiOS. In a dual boot setup, both systems are installed on the same computer, and a menu lets you pick one every time the computer starts. It's a good way to switch at your own pace.
Before you start
Do these things in Windows first:
- Back up your files. Changing partitions is safe when done right, but a backup costs little and protects you from mistakes.
- Save your BitLocker recovery key. Many Windows 11 computers encrypt the disk with BitLocker (device encryption). Windows may ask for the recovery key after you install LeiOS or change firmware settings. Find it in your Microsoft account at aka.ms/myrecoverykey, or in Windows under Manage BitLocker → Back up your recovery key.
- Turn off Fast Startup. With Fast Startup, Windows never fully shuts down and keeps its disk locked. Open Control Panel → Power Options → Choose what the power buttons do → Change settings that are currently unavailable, clear Turn on fast startup and save.
- Check the boot mode. Press Win + R, type
msinfo32and press Enter. If BIOS Mode says UEFI, start the LeiOS stick in UEFI mode too (the boot menu entry starting withUEFI:).
Make room for LeiOS
LeiOS needs its own space on the disk: at least 15 GB, better 50 GB or more if you plan to use it every day. Shrink the Windows partition from inside Windows:
- Right-click the Start button and open Disk Management.
- Right-click your Windows partition, usually (C:), and choose Shrink Volume.
- Enter how much space to free in MB, for example
51200for 50 GB, and click Shrink.
You now see a block of Unallocated space next to the Windows partition. Leave it empty: the installer uses it for LeiOS.
Install LeiOS
Start the live system and the installer as usual, and follow the installation guide until you reach the Partitions page. Then:
- Choose Manual partitioning and click Next.
- Select the EFI system partition: a small partition (100 to 300 MB) with the file system
fat32, which already holds Windows' boot loader. Click Edit, keep its content (do not
format it), set the mount point to
/boot/efiand click OK. - Select the Free Space you made in Windows and click Create. Choose the file system
ext4, set the mount point to
/and click OK. - Click Next and continue the installation.
The installer leaves the Windows partition alone and adds LeiOS to the existing EFI system partition, next to Windows' boot loader.
On the next page, Dual Boot, keep Enable dual boot detection selected. It makes the LeiOS boot menu list Windows, too.
Choose a system at startup
After installing, the computer starts the LeiOS boot menu. It lists LeiOS and Windows Boot Manager. Pick one with the arrow keys and Enter. Without input, LeiOS starts after a few seconds.
Windows is missing from the boot menu
The boot menu finds other systems with a tool called os-prober, which you turn on with Enable
dual boot detection in the installer. If you turned it off, or Windows still doesn't show up,
turn it on and update the menu:
sudo mkdir -p /etc/default/grub.d
echo 'GRUB_DISABLE_OS_PROBER=false' | sudo tee /etc/default/grub.d/90-leios-os-prober.cfg
sudo update-grub
Restart, and Windows Boot Manager is in the menu. Until then, you can always start Windows from
your computer's boot menu key. To turn dual boot detection off again, write true instead of
false and run sudo update-grub.
Change the default system or the waiting time
Open the boot loader settings in a text editor:
sudo nano /etc/default/grub
GRUB_TIMEOUT=5is the number of seconds the menu waits.GRUB_DEFAULT=0starts the first entry. To start the system you picked last time instead, setGRUB_DEFAULT=savedand add the lineGRUB_SAVEDEFAULT=true.
Save with Ctrl + O, close with Ctrl + X, then apply the change:
sudo update-grub
Living with two systems
The clock is wrong in Windows. Windows and LeiOS store the time in the computer's hardware clock differently: Windows as local time, LeiOS as UTC. Tell LeiOS to use local time as Windows does:
timedatectl set-local-rtc 1 --adjust-system-clock
Sharing files. LeiOS can read and write your Windows partition: it appears in Dolphin's sidebar under Devices. Windows can't read LeiOS's partitions. To share files both ways, use a USB stick, cloud storage, or a separate partition formatted as exFAT or NTFS. If Windows wasn't shut down completely (Fast Startup or hibernation), LeiOS refuses to write to the Windows partition to protect your data.
After a big Windows update, the computer starts Windows directly. Some Windows updates put Windows Boot Manager first in the boot order again. Open the firmware setup and move leios (or LeiOS) back to the top of the boot order.
Removing LeiOS again
To go back to Windows only, start Windows, open Disk Management, delete the LeiOS partitions (the ones without a drive letter that you created during installation) and extend (C:) into the free space. Then move Windows Boot Manager to the top of the boot order in the firmware setup.