====== GRUB rescue ======
GRUB_DISABLE_OS_PROBER=true
====== reinstall grub in chroot ======
export TARGET=/mnt
for i in /dev /dev/pts /proc /sys /run /run/lvm; do sudo mount --bind ${i} /${TARGET}${i}; done
chroot ${TARGET}
grub-install /dev/sdX
update-grub
update-initramfs
for i in /dev /dev/pts /proc /sys /run /run/lvm; do sudo umount /${TARGET}${i}; done
====== grub rescue ======
ls
ls (hd0,msdos1)/
ls (hd0,msdos7)/
set root=(hd0,msdos7)
set prefix=(hd0,msdos7)/boot/grub
insmod normal
normal
After system startup
update-grub
grub-install /dev/sda
====== Early config ======
* [[https://wiki.archlinux.org/index.php/GRUB/Tips_and_tricks#Manual_configuration_of_core_image_for_early_boot]]
* [[https://www.gnu.org/software/grub/manual/html_node/Embedded-configuration.html#Embedded-configuration]]