启动过程中出现“放弃等待 root”错误

启动过程中出现“放弃等待 root”错误

我最近在基于 UEFI 的系统上安装了 UBUNTU 14.04,其中预安装了 Windows 8,每当我从 grub2 启动菜单启动时,我都会遇到以下问题。

Gave up waiting for root device.  Common problems:
  - Boot args (cat /proc/cmdline)
  - Check rootdelay= (did the system wait long enough?)
  - Check root= (did the system wait for the right device?)
  - Missing modules (cat /proc/modules; ls /dev)
  ALERT!  /dev/disk/by-uuid/XXXXXXXXXXXXX does not exist.  Dropping to a shell!


BusyBox v1.18.5 (Ubuntu 1:1.18.5-1ubuntu4.1) built-in shell (ash)
Enter 'help' for a list of built in commands.

如果我按下退出然后按回车键,它就会成功启动,没有任何问题。我确实尝试过启动修复来修复它,这就是我得到的结果。

启动修复输出

请帮我解决这个问题。

答案1

我也遇到了同样的问题,但我可以使用以下链接解决

http://blog.wittchen.biz.pl/ubuntu-system-boot-problem/

尝试 #1

首先,我尝试按照错误消息所述更改 rootdelay。我打开文件 /etc/default/grub,发现其中有以下行:GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" 并将其更改为:GRUB_CMDLINE_LINUX_DEFAULT="rootdelay=90 quiet splash" rootdelay 变得更长,但不幸的是,它并没有解决我的问题。

尝试#2

我编辑了 /etc/fstab 文件。我在终端中执行以下命令:sudo gedit /etc/fstab 并在 gedit 中编辑 fstab 文件。一开始我的文件看起来像这样:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=96889309-5f73-4688-8354-e64cd1bb158f /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=480cc3f7-a39d-4d0f-93d5-49fc8df1a392 none            swap    sw              0       0

然后,我注释了一行并添加了另一行描述 /dev/sda1 磁盘设备的内容。现在,我的文件如下所示:

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=/dev/sda1  /               ext4    errors=remount-ro 0       1
# UUID=96889309-5f73-4688-8354-e64cd1bb158f /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=480cc3f7-a39d-4d0f-93d5-49fc8df1a392 none            swap    sw              0       0

问题仍然存在,因此我尝试再次解决它。

尝试#3

我打开终端并输入以下命令:

sudo grub-install /dev/sda

然后我输入了另一个命令来更新 grub:

sudo update-grub

完成所有这些后,我重新启动了计算机,最后错误消失了,问题解决了!

相关内容