2

So I was allocating some free space for ubuntu and now grub is launching in rescue mode. I have done a lot of searching and tried what has been suggested here several times.

Grub rescue - error: unknown filesystem

However, I have tried every ls (hdX,msdosY) possibility and all of them return a "Filesystem is unknown" message, all except for (hd0,msdos4) which returns "Filesystem is ext4."

I have booted in with a live version and have confirmed that the files are all there. I am of the understanding that what is needed is to associate the directory path of the grub modules in the root folder.

Sam C
  • 23

1 Answers1

2

Assuming that hd0,4 is where you have ubuntu installed ( your root filesystem, and it also contains /boot ), then it seems that grub has the wrong prefix ( did it move since installing grub? ). At the rescue prompt, type set prefix=(hd0,msdos4)/boot/grub, then insmod normal and finally normal and that should get you to the normal grub prompt so you can boot up. Once booted, to fix this in the future, run sudo dpkg-reconfigure grub-pc to reinstall grub to the MBR with the correct prefix setting.

psusi
  • 38,031