Windows 10更新破坏了grub和ubuntu分区

我一直在和Ubuntu一起运行Windows 10,Windows做了更新,删除了GRUB加载器。 运行BootRepair后,显示的消息更改为“找不到操作系统…”。 然后我运行Gparted,它显示我的Ubuntu分区未分配。

此时,我不知道该怎么做以及是否可以恢复我的分区。 BootRepair生成的URL链接是http://paste.ubuntu.com/18088419

谢谢你的帮助!

等待别人的意见,但这是我的。

请注意您的日志:

Drive: sda _____________________________________________________________________ Disk /dev/sda: 512.1 GB, 512110190592 bytes 255 heads, 63 sectors/track, 62260 cylinders, total 1000215216 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes Partition Boot Start Sector End Sector # of Sectors Id System /dev/sda1 206,848 292,184,795 291,977,948 7 NTFS / exFAT / HPFS /dev/sda2 * 292,186,112 293,181,439 995,328 27 Hidden NTFS (Recovery Environment) /dev/sda3 293,183,486 1,000,214,527 707,031,042 5 Extended /dev/sda5 970,917,888 1,000,214,527 29,296,640 82 Linux swap / Solaris ... Warning: extended partition does not start at a cylinder boundary. DOS and Linux will interpret the contents differently. 

是的,您的主ext4分区实际上不存在,但您的交换分区仍然存在。 这可能是破坏不太严重的指标。

我看到它的方式有两种选择:

  • 尝试恢复
  • 重新安装Ubuntu

要尝试恢复,您需要做的第一件事就是创建一个实时USB驱动器。 由于你似乎是一个技术倾向的人,我只是建议使用http://pendrivelinux.com上的程序

我找到了关于ext4恢复的成功故事,尽管这张海报有LVM: http : //ubuntuforums.org/showthread.php? t = 1376383

他使用程序testdisk,所以我也建议。

但首先,

你有一个外置硬盘> =容量的内置硬盘?

如果没有,您需要确定此恢复对您的重要性。 请记住,您的数据可能仍在某处。

但是为了恢复它,您将执行危险的操作,有可能破坏易受攻击的数据。

因此,如前所述,假设您拥有合适大小的外置硬盘,请从之前创建的实时USB启动,并将内置硬盘驱动到外置硬盘,如下所示:

 #Keep in mind this will destroy everything on the external HDD. You'll need to replace the path to the external HDD's partition accordingly, or else you will most certainly facilitate further destruction. sudo dd if="/dev/sda" of="/dev/sdb" 

这将需要几个小时才能完成。 所以给它一些时间。

然后,断开外部驱动器。

恭喜! 您现在拥有一个完整的驱动器映像,这意味着如果您完全破坏了内部分区表的整个分区表,您仍然可以恢复到现在的状态。

现在您已经说过驱动器映像,请使用testdisk并查看它的用途。