Post

Replace Systemd Boot With GRUB - *Arch Flavour Style*

Replace Systemd Boot With GRUB - *Arch Flavour Style*

Replace Systemd Boot With GRUB - Arch Flavour Style 🚀

Recently, I made the switch from Mabox Linux (my reliable companion for years) to CachyOS, another Arch-based distro.

During installation, I accidentally chose systemd-boot instead of GRUB—a rookie mistake. While systemd-boot works fine, my setup includes a separate SSD with Windows 11, and without GRUB, I’d have to hit F12 every time I wanted to switch OSes or do a way more complicated approach to fix my mistake.

The solution? Easy! Replace systemd-boot with GRUB for seamless dual-booting. Let’s get started!


Step 1: Check Drives and Partitions

First, inspect your drives:

1
lsblk
lsblk output

Here’s the layout:

  • CachyOS is on sdc, with the boot partition on sdc1.
  • Windows is on sdb, with its boot partition on sdb1.

To confirm the mount point of the boot partition, run:

1
lsblk -o NAME,MOUNTPOINT | grep sdc1

Output:

1
├─sdc1      /boot/efi
Mount point output

Step 2: Install GRUB and Tools

Install the necessary packages:

1
sudo pacman -S grub efibootmgr os-prober
Installing GRUB and tools

Step 3: Install GRUB

Run the following to install GRUB on the EFI partition:

1
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB

If no errors appear, generate the GRUB configuration:

1
sudo grub-mkconfig -o /boot/grub/grub.cfg

Step 4: Enable OS Probing

To ensure GRUB detects Windows, edit the configuration file:

1
sudo nano /etc/default/grub

Locate and uncomment the following line:

1
GRUB_DISABLE_OS_PROBER=false

Save and exit, then regenerate the configuration:

1
sudo grub-mkconfig -o /boot/grub/grub.cfg
Editing GRUB config

Step 5: Verify and Reboot

Run the following to confirm both OSes are detected:

1
sudo grub-mkconfig
Final GRUB configuration

Finally, reboot your system to test your new bootloader. 🎉


This post is licensed under CC BY 4.0 by the author.

Trending Tags