天天看点

ubuntu出现问题gave up waiting for root file system device ubuntu 16.04

ubuntu16.04出现以下画面:

ubuntu出现问题gave up waiting for root file system device ubuntu 16.04

初步估计:引导出现问题了,系统启动找不到引导了。

方案一:

  • Reboot.
  • Press F2 when the screen is lit up and go to the BIOS settings.
  • System Configurations → SATA Operations
  • Change RAID to AHCI

结果:没有解决。

 方案二:

I opened terminal and typed the following command:

sudo grub-install /dev/sda      

and then I typed another command to update grub:

sudo update-grub      

After all of this, I rebooted computer and finally, error disappeared and problem was fixed!

问题是:根本进不去桌面,无法打开终端,也就无法使用sudo命令。

 方案三:

I just randomly started typing stuff... try:

(initramfs) blkid
(initramfs) blockdev --rereadpt /dev/sda
(initramfs) blkid
(initramfs) exit      

This at least gets you to the desktop where you can begin trouble shooting your problem which is probably due to a proprietary driver or something.

结果:失败,还是进入不了桌面。

下面我决定利用rufus软件制作u盘启动盘并进行引导的修复。

 由于突然断电,重新启动后发现不能进入Ubuntu系统,进入了GRUB界面。按照网上的方法在GRUB界面下修复,但是还是不能成功。原因可能是GRUB启动文件或者启动分区遭到破坏,于是尝试了另外一种方法,就是利用Ubuntu的安装光盘,加载Boot-Repair修复引导程序来解决问题。

这里涉及三个问题:

  1. 制作Ubuntu安装光盘或U盘,然后启动到Ubuntu安装界面,注意这时候要选择“试用Ubuntu”,然后就能进入Ubuntu桌面。
  2. 连接上互联网,打开终端,然后下载安装并运行Boot-Repair进行修复。
  3. 如果发生分区问题,要使用GParted分区软件分出一个BIOS-boot分区,然后再修复。

【一般情况下的修复方法】

打开终端:

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

sudo apt-get install -y boot-repair && boot-repair

然后进入到Boot-Repair修复引导程序,点击“推荐修复”,如果没有错误提示的话,重启岂可成功修复。

ubuntu出现问题gave up waiting for root file system device ubuntu 16.04

 在运行:

sudo apt-get install -y boot-repair && boot-repair

的时候,出现如下界面:

ubuntu出现问题gave up waiting for root file system device ubuntu 16.04

即:无法定位软件包:boot-repair.

继续阅读