Skip to content

Instantly share code, notes, and snippets.

@andreibosco
Created July 15, 2023 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreibosco/b4f32090472f00c63c88149f11c2259a to your computer and use it in GitHub Desktop.
Save andreibosco/b4f32090472f00c63c88149f11c2259a to your computer and use it in GitHub Desktop.
restore boot - endeavourOS with BTRFS

To restore Linux item to EFI boot list

  • switch into root: sudo su

  • list disks and partitions: fdisk -l

  • find main list filesystem partition and efi partition

  • create mountpoint: mkdir /mnt/arch

  • mount partition (additional argument needed for btrfs): mount -t auto -o subvol=@ /dev/nvme0n1p6 /mnt/arch/ (source: https://forum.endeavouros.com/t/chroot-into-a-btrfs-uefi-system-from-live-media/15986/3)

  • change root into mounted partition: arch-chroot /mnt/arch

  • mount EFI partition: mount -t auto /dev/nvme0n1p2 /efi/

  • update bootctl to restore 'Linux' item in EFI list: bootctl update

  • reinstall kernels to add EndeavourOS to the Linux boot items: reinstall-kernels

To manually add an EFI entry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment