修复 Linux 开机出现档案系统有不一致性 (UNEXPECTED INCONSISTENCY) 的错误问题

Linux 无法正常开机,出现错误讯息:

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 分割区有不一致性的问题!!

依照指示,先输入 root 密码登入,再以 fsck 进行档案系统的修复 (参数 -y 是为了让 fsck 在检测出错误时自动修复):

$ fsck -y /dev/sda1
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/sda1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
...
Pass 2: Checking directory structure
...
Pass 3: Checking directory connectivity
...
Pass 4: Checking reference counts
...
Pass 5: Checking group summary information
...

/dev/sda1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/sda1: ***** REBOOT LINUX *****

修复完毕,输入 reboot 重新开机即可:

$ reboot

return top

%d 位部落客按了赞: