Linux启动发生磁盘错误,linux磁盘错误


信息:

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 密码

分析:

Checking filesystems

/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.? (i.e., without -a or -p options)? [FAILED]

*** An error occurred during the file system check.
*** Dropping you to a shell; the system will reboot
*** when you leave the shell.
Give root password for maintenance
(or type Control-D to continue):

找到问题原因:

错误中指出 /dev/sda1 分割区有不一致性的问题!!

解决:

(1)输入密码后,输入fsck,然后一直按y

Linux命令:fsck

功能说明:检查文件系统并尝试修复错误。

(2)修复完成后,reboot重启,虚拟机将恢复正常

相关内容