Skip to content

Instantly share code, notes, and snippets.

@linux-modder
Last active July 12, 2023 08:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save linux-modder/6c3a5b743e143330fdb0 to your computer and use it in GitHub Desktop.
Save linux-modder/6c3a5b743e143330fdb0 to your computer and use it in GitHub Desktop.
Chroot for Grub Repair (EFI)
mount /dev/sda3 /mnt/sysimage
mount /dev/sda2 /mnt/sysimage/boot
mount /dev/sda1 /mnt/sysismage/boot/efi
mount --rbind /dev /mnt/sysimage/dev
mount --rbind /proc /mnt/sysimage/proc
mount --rbind /sys /mnt/sysimage/sys
mount --rbind /run /mnt/sysimage/run (really needed for raid or lvm)
chroot /mnt/sysimage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment