我在使用 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 或其他几个重要文件。越来越多的不起作用,尾巴或头部等都不起作用。
bah*_*mat 12
系统在读取硬盘时遇到严重问题。磁盘很可能已经死了(几乎可以肯定),但它可能像松散/断开的电缆一样简单(不要指望它)。您无法从这里解决任何问题。关掉电源就行了
检查硬盘上的连接是否松动。如果一切正常,则从救援磁盘启动并从那里运行 fsck 或 badblocks。
我希望你有备份。
归档时间: |
|
查看次数: |
54370 次 |
最近记录: |