meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| datarecovery:grub_rescue [2017/02/07 09:12] – niziak | datarecovery:grub_rescue [2023/09/12 10:52] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== GRUB rescue ====== | ||
| + | |||
| + | |||
| + | <file / | ||
| + | GRUB_DISABLE_OS_PROBER=true | ||
| + | </ | ||
| + | |||
| ====== reinstall grub in chroot ====== | ====== reinstall grub in chroot ====== | ||
| <code bash> | <code bash> | ||
| - | for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done | + | export TARGET=/ |
| - | chroot | + | for i in /dev /dev/pts /proc /sys /run /run/lvm; do sudo mount --bind ${i} /${TARGET}${i}; done |
| + | chroot | ||
| grub-install /dev/sdX | grub-install /dev/sdX | ||
| update-grub | update-grub | ||
| update-initramfs | update-initramfs | ||
| + | |||
| + | for i in /dev /dev/pts /proc /sys /run /run/lvm; do sudo umount / | ||
| </ | </ | ||
| Line 18: | Line 28: | ||
| insmod normal | insmod normal | ||
| normal | normal | ||
| - | < | + | </code> |
| After system startup | After system startup | ||
| Line 25: | Line 35: | ||
| grub-install /dev/sda | grub-install /dev/sda | ||
| </ | </ | ||
| + | |||
| + | ====== Early config ====== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||