I almost know nothing about coding in Ubuntu. I am currently dual booting ubuntu 16.04 LTS and Windows 10. Everything was fine . But today an error occured saying

"can't find filesystem"

and then grub rescue begins . After searching for some time I have found out solution that tells to do these:

set prefix=(hd0,msdos5)/boot/grub
insmod normal

I know that ls is listing harddrive partitions(let me know if I am wrong) .Then(in set prefix) I need to select a partition . There came a error when I selected msdos5. After some try I selected msdos6. Then it ran . But the problem is that from another solution to this problem I wrote this code:

set boot=(hd0,msdos6)

I think I messed up . Probably , it involves which partition of the harddisks is going to boot .Now, my laptop is running after writing this code and every time I turn on the laptop the boot stuck at the beginning showing the same error & I need to write the code every time I need to run the laptop . How can I solve this issue? I probably also need to know the partition which is booting (msdos*) & I don't know how to find that.

  • So are you typing msdos5 or msdos6, or sda5 or sda6 once booted? You may need fsck on your ext4 partition, but lets see details first. May be best to see details, you can run from Ubuntu live installer or any working install: Post the link to the Create BootInfo summary report. Is part of Boot-Repair: help.ubuntu.com/community/Boot-Info
    – oldfred
    Jan 3 '17 at 16:29

I got a solution for this type of problem if grub rescue> prompt occurs in booting time and you have to write a code like:

grub rescue> ls
grub rescue> set boot=(hd0,msdos*)
grub rescue> set prefix=(hd0,msdos*)/boot/grub
grub rescue> insmod normal
grub rescue> normal

After boot Linux/Ubuntu based OS will load then open a terminal and write the command:

useranf@ ~ $ sudo update-grub

then type this command:

useranf@ ~ $ sudo grub-install /dev/sda

after these operation now finally reboot your system.

  • Worked on Manjaro as well :)
    – Brij
    Sep 3 '17 at 17:58
  • Worked on Debian Jessie
    – ako
    Mar 14 '18 at 19:32
  • Worked on Linux Mint Sylvia
    – Valid
    Jul 14 '18 at 2:00
  • Worked for ubuntu 19.10 efi, ... had to use (lvm/vgaubuntu-root) ... > normal took me straight to my normal grub screen. Thanks!! Feb 2 '20 at 14:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.