help request - broken grub
from laserm@lemmy.world to linux@lemmy.ml on 18 Sep 2024 14:49
https://lemmy.world/post/19912378
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?
threaded - newest
You could create a live usb on another device and then use chroot
howtogeek.com/…/how-to-use-grub-rescue-to-fix-lin…
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
also, you should make backups and have a restore strategy that covers cases like this.