由于“cannot stat `aufs'”错误,无法安装 grub

vis*_*hnu 5 grub2 11.04

我已按照以下顺序安装了这些操作系统:

Windows7  
Ubuntu 11.04  
Fedora 15  
Run Code Online (Sandbox Code Playgroud)

在安装 Fedora 15 之前一切正常。Ubuntu grub 在列表中显示 Windows 和 Ubuntu。当安装 Fedora 15 时,Ubuntu 的 grub 丢失了。我正在尝试从 Ubuntu live usb 驱动器恢复 Ubuntu grub。这样 Fedora 将链式加载 Ubuntu grub。

ubuntu@ubuntu:~$ sudo grub-install --boot-directory=/media/926afad4-4c2a-4f0f-8b2c->801e07c9ec26/boot /dev/sda2  
/usr/sbin/grub-probe: error: cannot stat `aufs'.
Run Code Online (Sandbox Code Playgroud)

请帮忙?

lad*_*ini 3

问题可能出在这里:

ubuntu@ubuntu:~$ sudo grub-install --boot-directory=/media/926afad4-4c2a-4f0f-8b2c-801e07c9ec26/boot **/dev/sda2**
Run Code Online (Sandbox Code Playgroud)

/dev/sda2第一个硬盘驱动器(a)上的第二个分区(2),应该是/dev/sda,它仅指整个硬盘驱动器。

当计算机启动时,BIOS 将确定从哪个设备启动(根据您的启动顺序设置)。如果它是您的第一个硬盘驱动器 ( /dev/sda),那么计算机将查找安装在主引导记录 (MBR)(HDD 的第一个扇区)最开头的引导加载程序。您正在尝试将 grub 安装在硬盘驱动器深处的某个位置。

|--|---------------------------------------|--------------------------------|
^  ^                                       ^
|  |__ Start of 1st partition /dev/sda1    |__Start of 2nd partition /dev/sda2
|                                             where you're trying to install 
|                                             grub
|
|__Start of hard drive, the MBR starts here, the bootloader should live in 
   here, the partition tables as well, all before the first partition.
Run Code Online (Sandbox Code Playgroud)

TL;DR更改/dev/sda2/dev/sda