我在使用 Ubuntu 时遇到了一个问题,我发现很难排除故障,原因很明显:
# reboot
-bash: /sbin/reboot: Input/output error
# dmesg
-bash: /bin/dmesg: Input/output error
# ps -e
ps: error while loading shared libraries: /lib/libproc-3.2.8.so: cannot read file data: Input/output error
# lsof
-bash: /usr/bin/lsof: Input/output error
# fsck
-bash: /sbin/fsck: Input/output error
# badblocks
-bash: /sbin/badblocks: Input/output error
Run Code Online (Sandbox Code Playgroud)
所以我看不到发生了什么,也无法远程重启。我能做些什么来追根究底?
有趣的是:
# init 0
Segmentation fault
Run Code Online (Sandbox Code Playgroud)
我可以 cat /var/syslog 但不能 cat /var/log/messages 或其他几个重要文件。越来越多的不起作用,尾巴或头部等都不起作用。