meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| datarecovery:grub_rescue [2016/12/26 22:14] – created 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 ====== | ||
| + | |||
| + | <code bash> | ||
| + | export TARGET=/mnt | ||
| + | for i in /dev /dev/pts /proc /sys /run /run/lvm; do sudo mount --bind ${i} / | ||
| + | chroot ${TARGET} | ||
| + | grub-install /dev/sdX | ||
| + | update-grub | ||
| + | update-initramfs | ||
| + | |||
| + | for i in /dev /dev/pts /proc /sys /run /run/lvm; do sudo umount / | ||
| + | </ | ||
| + | |||
| ====== grub rescue ====== | ====== grub rescue ====== | ||
| < | < | ||
| Line 8: | Line 28: | ||
| insmod normal | insmod normal | ||
| normal | normal | ||
| - | < | + | </code> |
| After system startup | After system startup | ||
| Line 15: | Line 35: | ||
| grub-install /dev/sda | grub-install /dev/sda | ||
| </ | </ | ||
| + | |||
| + | ====== Early config ====== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | |||