I have a dual boot system with Linux Mint 18.1 and Windows 10, which I only use occasionally. I booted into Windows 10, and it started applying updates. Upon restarts I was presented with the:
error: no such partition.
Entering rescue mode...
grub restore>
Most of the threads I found suggested going through all the disks found by ls to find the one with boot, and calling ls (hd0,1) or ls (hd0,msdos1) but all of those resulted in unknown filesystem .
I tried using set prefix=(hd0,1)/boot/grub and set root to similar, but when I ran insmod normal I also got unknown filesystem
So I tried using Rescatux, but it wouldn't recognize a number of the drives (no-flags).
So I tried boot-repair from a pendrive, selected the "Recommended repair" and it said it had succeeded, however when I rebooted, it booted straight into Windows.
So I tried following the instructions for running boot-repair from the live Linux installation disk which recommends running gparted, and this is where I'm getting worried. The screenshot seems to indicate that /dev/sda3 which is my Linux partition, has mostly unallocated space. The swap is there, but my partition, which going by the numbers, seems like it should be dev/sda4 is nowhere to be seen.
Can anyone shed any light on this, and tell me how I might be able to bring that partition back?
I've heard that Windows 10 can be "greedy" when running updates, and steal space from other partitions if the updates don't fit on the Windows partition. Could this be what has happened here? Or could Windows have otherwise corrupted those drives?
So my question is whether anything can be done given what you can see in the above.
There are a few related "grub recovery" questions on SO and other forums, but all of them seem to assume the partition is still there.
I want to ascertain whether this is an issue relating to grub/mbr, in which case I can address it in those terms, or if it's beyond that and I should look at partition recovery.
I ran testdisk, and it's telling me the hard disk seems too small. I don't know what to make of that, or understand how that happened.



