0

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)

Doing 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:

Testdisk analyze output

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:

Deep Scan output

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.

1 Answers1

0

I notice you are missing (hd0,msdos4) and (hd0,msdos6). Were these your Ubuntu partitions?
There has been issue with win10 doing a major update and deleting linux partitions.

Boot from a LiveCD and select try ubuntu. If testdisk isn't installed, open a terminal and type
sudo apt-get install testdisk then sudo testdisk

scan for deleted partitions and add the ones that fit the holes between your partitions.

In most cases that is enough to get it to boot.

ravery
  • 6,924