我在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
因此,我看不到发生了什么,也无法远程重启。我该怎么做才能弄清楚这个问题?
有趣的是:
# init 0
Segmentation fault
我可以使用/ var / syslog,但不能使用/ var / log / messages或其他几个重要文件。越来越少的东西行不通,尾巴或头部也不行,等等。
sudo rm -rf /
。(我是故意这样做的,只是为了看看实际发生的情况。)