我最近将 Windows 7 更新到 10,并在此过程中破坏了 grub。我在 Live CD 上运行启动修复并设法恢复 Windows 分区。然而 grub 仍然没有出现。
我收到的启动修复网址是http://paste.ubuntu.com/12189762/。
编辑:
奥德弗雷德帮我解决了这个问题。我不太明白分区是如何工作的。扩展分区包含 linux 和 swap 分区,但由于某种原因 linux 分区没有显示。我启动到实时磁盘并运行partedrescue:
sudo parted /dev/sda unit s print //this printed the current partition table
sudo parted
unit s
rescue
Start? //Here I entered in 1 sector after the extended partition
End? //Here I entered in 1 sector before the swap parition
Run Code Online (Sandbox Code Playgroud)
之后我再次运行启动修复并能够将 grub 恢复到位!现在一切都运转良好。希望这篇文章可以帮助其他人!