我有一个带有Ubuntu 14分区、ubuntu 16分区和Windows分区(可能是Windows 10)的多引导机器。我已经一年多没有使用Windows了,在重新启动之后,它迫使我进行Windows更新。在那之后,我的机器就不会重启了。我到了紧急救援中心。唯一的错误消息是
error: no such partition我无法从GRUB救援提示符中运行任何有用的命令,所以我删除了硬盘并将其安装在单独的Ubuntu上。我在磁盘上分开运行,如下所示:
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary ntfs boot
2 525MB 1015GB 1014GB primary ntfs
3 1015GB 1015GB 891MB primary ntfs diag
4 1015GB 2000GB 985GB extended
5 1983GB 2000GB 17.1GB logical linux-swap(v1)我想修复grub,以便它可以多引导Windows (分区2)、Ubuntu 14和Ubuntu 16。我不记得我是如何创建Ubuntu分区的,但我希望它们在扩展分区4中(也许它们是逻辑卷?)。我能做这个吗?
更新:我能够用testdisk恢复两个Ubuntu分区。然后,我通过grub救援模式重新启动Ubuntu 14。我想困难的部分已经完成了。现在,我必须让grub正常工作。目前,为了进入grub引导菜单,我必须这样做:
set root=(hd0,msdos5)
set prefix=(hd0,msdos5)/boot/grub
insmod normal
normal我怎样才能解决这些问题,使肮脏的人不必通过grub救援提示就能运行呢?可能会把grub加载到主启动记录中?
发布于 2017-10-02 18:43:01
Windows 10周年更新( Windows 10周年更新)和最近的Windows 10创建者更新(Windows 10 Creators )都有在MBR磁盘上清除Linux分区的坏习惯。听起来你是个受害者。
复苏是可能的,但这可能是棘手的。
启动/USB。
打开Software & Updates并确保您的所有软件存储库都已启用。
在terminal..。
sudo apt-get update # update the software database
sudo apt-get install testdisk # install testdisk
man testdisk # read the manual
sudo testdisk # start testdisk您还可以在这里获得特定的说明:http://www.cgsecurity.org/wiki/TestDisk_步骤_通过_步骤
您丢失的Ubuntu分区位于分区4和5之间,从1015 to到1983 to 1。
https://askubuntu.com/questions/961387
复制相似问题