I have gone through a lot of questions and answers related to grub rescue but I am having a different problem which I am not able to understand.
As per some of the answers, I tried the following steps to resolve this problem:
First of all I used
lscommand to get all the partitions which in my case were(hd0),(hd0,msdos5),(hdo,msdos1),(hd1)&(hd1,msdos1).Out of the above 5 partitions, I got
Filesystem is ext2message for(hd0,msdos1)drive.As per some of the answers provided in Ask Ubuntu & Stack Exchange, I tried to set the
root&prefixusing(hd0,msdos1)drive (which I found usinglscommand).While setting
prefixI realised that the/boot/grubdirectory does not exist in selected drive(hd0,msdos1).As a result of this when I try to fire
insmod normalcommand, grub rescue gives an error saying/boot/grub/i386-pc/normal.mod not found.Apart from this, I tried using bootable USB drive with Ubuntu 14, 16, 17, 18 & even Windows OS but I always ended up in grub rescue window.
This leaves me with the following questions:
Am I setting a wrong drive as root drive (provided this is the only ext2 drive among 5 enlisted drives)?
Is there a way of including the
/boot/grubfolder in the root directory so that I can runinsmod normalcommand?
Your help is truly appreciated as I tried almost all the possible solutions I could think of over past few days.
Thanks! :)