linux - e2fsck如何修复磁盘

 mobiledu2502857577 发布于 2022-11-01 11:20

我的debian8开机时,总是出现下面的提示:

[ 908.954911] ata5.00: status: { DRDY ERR }
[ 923.285748] ata5.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[ 923.285757] ata5.00: irq_stat 0x40000001
[ 923.285766] sr 4:0:0:0: CDB:
[ 923.285770] Get event status notification: 4a 01 00 00 10 00 00 00 08 00
[ 923.285791] ata5.00: cmd a0/00:00:00:08:00/00:00:00:00:00/a0 tag 24 pio 16392 in
res 51/54:03:00:08:00/00:03:00:08:00/a0 Emask 0x1 (device error)
[ 923.285796] ata5.00: status: { DRDY ERR }

查了资料说是磁盘需要修复。

e2fsck -a /dev/sda2
/dev/sda2 is mounted.
e2fsck: Cannot continue, aborting.

umount /dev/sda2
umount: /home: target is busy
(In some cases useful info about processes that
use the device is found by lsof(8) or fuser(1).)

请问,如何处理?

1 个回答
  • 我在虚拟机里面遇到过这个问题。
    在Debian启动时,grub那里选择第二个选项,可以进入单用户模式(single mode),此时操作才是对的。
    如果你在系统里面操作的话,由于/分区无法卸载,会失败的。

    2022-11-02 03:11 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有