ubuntu启动报错 Errors were found while checking the disk-drive for /

Posted liangwode

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu启动报错 Errors were found while checking the disk-drive for /相关的知识,希望对你有一定的参考价值。

开机报这个错误,主要原因是硬盘检测不通过导致的,下面介绍两种方法规避该问题:

  •   修改grub

 这个方法网上比较多,直接贴过来:

 

 进入Ubuntu启动菜单时,光标选中 *Ubuntu 后,按键盘上的 e 键,即可进入启动项编辑模式:

使用光标定位到如下图所示位置,将 ro 改成 rw 后,按 F10 键,即可按照修改后的参数引导进入系统: 

 

 

 

输入 sudo gedit /etc/grub.d/10_lupin 后回车:

输入用户密码后回车,即可调用文本编辑器打开启动项配置文件,将ro ${args} 全部换为 rw ${args}

保存该文件,然后sudo update-grub更新grub,重启即可。

 

  • 禁止硬盘检测

第一种方法可能以后还会出现类似问题,最根本的方法是禁止ubuntu启动时检查硬盘,那么怎么禁止呢?

修改/etc/fstab文件,将每个挂载项相应行的最后一个数字1/2改为0,然后保存即可。

 

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

# / was on /dev/sda1 during installation

UUID=80c83157-8cfd-46e8-be12-993d5fcb6c20 /               ext4    defaults        0      0

# /boot was on /dev/sda6 during installation

UUID=04197eeb-babf-4568-8686-cf4a31751827 /boot           ext4    defaults        0      0

# /opt was on /dev/sda5 during installation

UUID=8685f4ea-3b2e-4bce-a729-a7a0629925f1 /opt            ext4    defaults        0      0

# swap was on /dev/sda7 during installation

UUID=90de3311-1664-4532-8677-fa1f665af82a none            swap    sw              0       0

 

以上是关于ubuntu启动报错 Errors were found while checking the disk-drive for /的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu系统启动报错:[contains a file system with errors, check forced]的解决方法

springboot多数据源启动报错:required a single bean, but 6 were found:

Android签名打包出现Export aborted because fatal lint errors were found的解决

Failed to load JavaHL Library. These are the errors that were encountered:

Errors were encountered while preparing your device for development. Please check the Devices

运行真机提示Errors were encountered while preparing your device for development. Please check the Devices