当我尝试在没有 Live CD/USB 的情况下修复 grub rescue 时,我该使用哪个 hdX,Y?

当我尝试在没有 Live CD/USB 的情况下修复 grub rescue 时,我该使用哪个 hdX,Y?

我删除了我的 linux mint 分区,不知道这会导致我无法访问 ubuntu,我找到了另一篇关于如何在没有 live cd/usb 的情况下修复它的文章,但我不知道要使用什么 hdX,Y。请帮忙,我在联想 N585m 上有 1 个 320gb 的混合驱动器

答案1

除了你之外,没有人能知道这一点。但是,当然有一种方法可以找到它,使用以下命令:

  ls                               # List the known drives (hdX) and partitions (hdX,Y)
  ls (hdX,Y)/                      # List the contents of the partition's root
  ls (hdX,Y)/boot/grub             # Normal location of the Grub 2 modules.
  ls (hdX,Y)/usr/lib/grub/i386-pc  # Alternate location of the Grub 2 modules.

ls (hdX,Y)/boot/grub 应该会显示很多 .mod 文件。如果显示,则这是您要搜索的目录,否则请尝试我上面建议的备用位置。这将标识您需要的 (X,Y) 值。错误

  "error: unknown filesystem" 

只是意味着这不是你的 Ubuntu 分区。

相关内容