DEV Community

Thaqif Azfar
Thaqif Azfar

Posted on

Dual Boot Windows and PopOs by using Systemd-Boot

This guide is for those who already have windows installed but want to get it to dual boot.

1. Add Timeout 10s Upon Boot

sudo nano /boot/efi/loader/loader.conf

Now, you should see default Pop_Os-current in the current file.

Simply write timeout 10 on the new line and press Ctrl-O to save and Ctrl-x to exit.

Try restart your computer, you should see PopOs as option to boot but no windows yet.

2. Find your Windows EFI Partition

Run lsblk

lsblk-command

Usually Windows EFI partition size is around 100MB and it is the first partition in the drive.

The one with /boot/efi label is your PopOs EFI partition.

So, in the above image, my windows EFI partition is at sda1.

3. Make Windows Boot Directory

Run mkdir /mnt/windows_boot

4. Mount Windows Boot Directory

sudo mount /dev/yourWindowsEFIparition /mnt/windows_boot

5. Copy Your Directory to Boot Directory

sudo cp -r /mnt/windows_boot/EFI/Microsoft /boot/efi/EFI/Microsoft

6. Create Windows Config File

Head over to /boot/efi/loader/entries by using this command
sudo su [Enter root privileges]
cd /boot/efi/loader/entries

Now create windows file with touch windows.conf
Edit with nano windows.conf and write this 2 line

title Windows 10
efi /EFI/Microsoft/Boot/bootmgfw.efi
Enter fullscreen mode Exit fullscreen mode

Press Ctrl-O to save and Ctrl-x to exit.

Done!

And thats it, you should see windows 10 as option now. Congrats! Please comment down below or contact me if you need any help.

Top comments (0)