Dual-boot Clear Linux* OS and Windows* 10 OS¶
This guide shows how to install Clear Linux* OS adjacent to an existing Windows* 10 OS. To add Clear Linux OS to an existing Windows installation, follow a method below.
Description¶
In this tutorial you’ll Install Clear Linux* OS from the live desktop as an additional partition. Alternatively, you may also Install Clear Linux* OS from the live server.
Method 1: Shrink Windows partition and install Clear Linux OS¶
For this method, we shrink the Windows 10 OS partition to make space for Clear Linux OS.
Boot up the Windows 10 OS.
Launch the
Disk Management
utility found under Create and format hard disk partitions.Right-click the primary Windows partition and select Shrink Volume….
Shrink the size of the partition by at least the following amount:
- For installing the live desktop, allow at least 21GB.
- For installing the live server, allow at least 4GB.
We shrink C by about 21 GB, as shown in Figure 2.
Shutdown the Windows 10 OS.
Follow the instructions to Install Clear Linux* OS from the live desktop.
After booting from the Clear Linux OS image, select the icon to launch the installer.
Click Select Installation Media.
Select Safe Installation.
Go through the remaining steps to install Clear Linux OS.
Shut down your system and remove the USB.
Reboot.
During the BIOS POST stage, press F10, or the proper F-key for your system, to launch the Boot Menu.
In the Boot Menu, use the arrow to select the OS bootloader as boot device (highlighted).
Some BIOSes do not support listing multiple partitions. In this case, it will only show one bootable partition.
Tip
If you don’t want to use the BIOS boot menu each time to select an OS, follow Advanced: Use systemd-boot to boot Windows 10 OS and |CL|.
Method 2: Add another hard disk to your system where you install Clear Linux OS¶
Shutdown your system.
Open your system and attach another hard drive.
Power up your system.
Follow the instructions in Install Clear Linux* OS from the live desktop, and launch the Clear Linux OS installer.
In the Required options tab, choose Select Installation Media.
Within that menu, select Destructive Installation, and select the new hard drive from the device list.
Note
Make sure you don’t select the drive with your Windows 10 OS.
Go through remaining steps to complete the installation.
Reboot.
During the BIOS POST stage, press F10, or the proper F-key for your system, to launch the Boot Menu.
In the Boot Menu, use the arrow to select the Linux bootloader as boot device.
Some BIOSes do not support listing multiple partitions. In this case, it will only show one bootable partition.
Tip
If you don’t want to use the BIOS boot menu each time to select an OS, follow the next section.
Advanced: Use systemd-boot to boot Windows 10 OS and Clear Linux OS¶
If you prefer not to use your BIOS to load the Boot Menu and select an OS to boot, you can make systemd-boot the default bootloader and add Windows 10 OS to the boot list. This option is also a workaround for BIOSes that don’t support booting more than one partition.
Boot up the Clear Linux OS installer.
Open a Terminal window and enter:
lsblk
Example output:
clrlinux@clr-live~ $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT loop0 7:0 0 2.3G 1 loop sda 8:0 0 335.4G 0 disk ├─sda1 8:1 0 450M 0 part ├─sda2 8:2 0 100M 0 part ├─sda3 8:3 0 16M 0 part ├─sda4 8:4 0 286G 0 part ├─sda5 8:5 0 143M 0 part ├─sda6 8:6 0 244M 0 part └─sda7 8:7 0 48.5G 0 part sdb 8:16 1 7G 0 disk ├─sdb1 8:17 1 2.5G 0 part └─sdb2 8:18 1 100M 0 part
The example output shows:
- /dev/sda2 is the EFI system partition created by Windows
- /dev/sda4 is the primary Windows partition
- /dev/sda5 is the EFI system partition created by Clear Linux
- /dev/sda7 is the Clear Linux root partition
Create mount points.
sudo mkdir /mnt/windows-efi sudo mkdir /mnt/clearlinux
Mount the EFI system partition for Windows 10 OS.
sudo mount /dev/sda2 /mnt/windows-efi
Mount the Clear Linux OS root partition and its EFI system partition.
sudo mount /dev/sda7 /mnt/clearlinux sudo mount /dev/sda5 /mnt/clearlinux/boot
Copy Windows 10 OS bootloader, and other data needed to boot it, to the Clear Linux OS EFI system partition.
sudo cp -r /mnt/windows-efi/EFI/Microsoft/ /mnt/clearlinux/boot/EFI/
Make systemd-boot the default bootloader and add Windows 10 OS Boot Manager.
sudo bootctl install --esp-path=/mnt/clearlinux/boot
Add a timeout value to the systemd-boot. This allows enough time for you to select your preferred OS from the menu.
sudo clr-boot-manager set-timeout 20 --path=/mnt/clearlinux sudo clr-boot-manager update --path=/mnt/clearlinux
Umount all partitions.
sudo umount /mnt/windows-efi /mnt/clearlinux/boot /mnt/clearlinux
Reboot
sudo reboot
Remove the Clear Linux OS installer USB thumb drive.
You should be presented with the systemd-boot menu, as shown below.