重启系统,果然只给了个命令行,好在有提示,比如,用"journalctl -b"查看日志,用"systemctl reboot"重启系统。先看了下日志,快捷键跟more/less一样,"Shift+G"转移到日志末尾,看到一些红色的错误提示:
/dev/sda7: unexpected inconsistency; Run fsck manually. (i.e. without -a or -p options) fsck failed with error code 4.
> man fsck
大概是说可以修复损坏的文件系统,{name}可以是/dev/sdXY这样的格式,或者直接是绝对路径。
> fsck -V /home/
很快就检查到了问题:Inodes that were part of a corrupted orphan linked list found.
出现了好多个选项,全部都选了y,一会就完成了。可能损失了一些文件。
"systemctl reboot"重启系统,OK,进去之后简单看了下,没发现损失了什么重要文件。
后来用"Inodes that were part of a corrupted orphan linked list found"搜索了一下,有人说fsck是个危险的命令(Re: filesystem errors that can not be fixed - ubuntuforums.org),最好先加上-N选项试试(-N Don't execute, just show what would be done.)。
No comments:
Post a Comment