Restore boot to desired partition

If you sitll can boot into your daily driver (Drive 2 Partition2), use the following commands:
(Othrewise chroot into your daily driver):

  1. sudo mv /etc/default/grub /etc/default/grub.old

  2. sudo mv /etc/grub.d /etc/grub.d.old

  3. sudo rm /boot/grub/grubenv

  4. sudo grub-editenv /boot/grub/grubenv create

  5. sudo pacman -S grub

  6. sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=EndeavourOS-new

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

:crossed_fingers:t5:

3 Likes