GRUB Rescue - setting boot and prefix again and again
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.
Related videos on Youtube
Utshaw
I am a student of Computer Science & Engineering at Bangladesh University of Engineering and Technology
Updated on September 18, 2022Comments
-
Utshaw over 1 year
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:ls set prefix=(hd0,msdos5)/boot/grub insmod normal normal
I know that
ls
is listing harddrive partitions(let me know if I am wrong) .Then(inset 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.
-
oldfred over 7 yearsSo 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
-
-
Brij over 6 yearsWorked on Manjaro as well :)
-
ako about 6 yearsWorked on Debian Jessie
-
Valid almost 6 yearsWorked on Linux Mint Sylvia
-
Keldon Alleyne about 4 yearsWorked for ubuntu 19.10 efi, ... had to use
(lvm/vgaubuntu-root)
...> normal
took me straight to my normal grub screen. Thanks!!