Windows 10 recently ran updates on my system and suddenly it lead to grub rescue. I have a dual-boot system with Ubuntu 16.04 installed.
When I do
ls on the grub rescue prompt, I get the following:
(hd0) (hd0,msdos5) (hd0,msdos3) (hd0,msdos2) (hd0,msdos1)
ls on each of the partitions gives me an unknown filesystem error.
When I do
set, I get
cmdpath=(hd0) prefix=(hd0,msdos6)/boot/grub root=hd0,msdos6
How do I restore grub and get back both Ubuntu 16.04 and windows 10? I have some important data on my Ubuntu system (without backup, sadly).
UPDATE 1: Installed testdisk successfully. Following is the output of the analyze command:
How do I proceed to correctly set the grub path and restore/recover my Ubuntu partition ? Please reply.
UPDATE 2: Following is the output of the deep scan:
It says that 3 partitions (all Linux and having the same size) can't be recovered. I stumbled upon this link where the asker faced the same problem: Grub rescue after "Windows Anniversary Update"
Can I directly do what he has said: "After it (deep scan) was done I labeled the Windows launcher to *. (Primary bootable) I then named the rest P. (Primary) I opened grub rescue again, after saving the partition table, and ran ls."
Let me know. This issue is getting serious.