Linux 无法开机 显示 an error occurred during the file&nb

Linux 启动发生磁盘错误, 磁盘扫描进度完成后光标停留在

***An error occured during the filesystem check
***Dropping you to a shell; the system will reboot
***when you leave the shell.

Give root password for maintainence
(or type Controll-D to continue)


解决方法: 
root密码 执行 fdisk -l    查看磁盘 
发现只有/dev/sda1  /dev/sda2


(Repair filesystem)# fdisk -l   根据看到的磁盘依次修复 ,例如: 

(Repair filesystem)#fsck -y /dev/sda1 
 
(Repair filesystem)#fsck -y /dev/sda2
 
遇到如下提示:

fsck.ext3:Device or resource busy while trying to open /dev/sda2

File system mounted or opened exclusively by another program?
百度后发现是分区错误,只能修改/etc/fstab来修改挂载点。
/etc/fstab 默认为只读模式,只能用单用户模式来进行修改。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值