Last active
July 12, 2023 08:23
-
-
Save linux-modder/6c3a5b743e143330fdb0 to your computer and use it in GitHub Desktop.
Chroot for Grub Repair (EFI)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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