help request - broken grub

laserm@lemmy.world to Linux@lemmy.ml – 20 points –

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?

4

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