I've been running Windows 10 alongside Ubuntu and Windows did an update that removed the GRUB loader. After running BootRepair, the message displayed changed to "An operating system wasn't found …". Then I ran Gparted and it showed that my Ubuntu partition was unallocated.
At this point, I don't know what to do and if I can recover my partition. The URL link generated by BootRepair is http://paste.ubuntu.com/18088419
Thanks for your help!
Best Answer
Wait for somebody else's opinion, but here's mine.
Notice this from your log:
Yes, your main ext4 partition is in fact absent, however your swap partition is still there. That could possibly be an indicator that the destruction isn't too serious.
The way I see it you have two options:
For attempting recovery, the first thing you're going to need to do is create a live USB drive. As you seem to be a technically inclined person, I'll simply recommend using the program from http://pendrivelinux.com
I found this success story about ext4 recovery even though the poster had LVM: http://ubuntuforums.org/showthread.php?t=1376383
He used the program testdisk, so I would suggest that as well.
But first,
Do you have an external HDD >= in capacity to your internal HDD?
If not, you need to decide how important this recovery is to you. Remember, your data is probably still there somewhere.
But in order to recover it, you will be performing dangerous operations with the potential to destroy the vulnerable data.
So assuming you have the right sized external HDD as I mentioned previously, boot from that live USB you created earlier and
dd
your internal drive to the external one, like so:That will take several hours to complete. So give it some time.
Afterwards, disconnect your external drive.
Congratulations! You now have a complete drive image, meaning that if you completely wreck the entire partition table on your internal one, you can still restore to the exact state you are in now
Now that you have said drive image, have a go with testdisk and see what it comes up with.