help request - broken grub
from laserm@lemmy.world to linux@lemmy.ml on 18 Sep 2024 14:49
https://lemmy.world/post/19912378

Folks, I just fucked up. I have a void install and an old debian install. I resized the debian install, but I forgot I got grub installed there and now it’s unbootable - respectively, it displays the grub rescue shell. Is there a way to somehow get back into void and reinstall grub from there?

#linux

threaded - newest

RmDebArc_5@sh.itjust.works on 18 Sep 2024 15:29 next collapse

You could create a live usb on another device and then use chroot

variants@possumpat.io on 18 Sep 2024 17:04 next collapse

howtogeek.com/…/how-to-use-grub-rescue-to-fix-lin…

lurch@sh.itjust.works on 19 Sep 2024 01:48 next collapse

you can boot from a liveCD or USB, then mount the main OS, bind mount dev and proc, chroot into it and reconfigure/reinstall the boot loader

lurch@sh.itjust.works on 19 Sep 2024 01:50 collapse

also, you should make backups and have a restore strategy that covers cases like this.