Linux ls: 读取目录 .: 输入/输出错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18819812/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 00:51:01  来源:igfitidea点击:

ls: reading directory .: Input/output error

linuxfilesystems

提问by Vimos

My system raised the I/O error when I tried to use 'ls' on a mounted hard disk.

当我尝试在已安装的硬盘上使用“ls”时,我的系统引发了 I/O 错误。

I am using

我在用

hadoop@hbase1:/hddata$ uname -a
Linux hbase1 3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 16:19:23 UTC 2013 x86_64    x86_64 x86_64 GNU/Linux

hadoop@hbase1:/hddata$ df
Filesystem                      1K-blocks       Used Available Use% Mounted on
/dev/mapper/hbase2--vg-root     468028968    2715496 441532304   1% /
udev                              6081916          4   6081912   1% /dev
tmpfs                             2436652        336   2436316   1% /run
none                                 5120          0      5120   0% /run/lock
none                              6091620          0   6091620   0% /run/shm
/dev/sda1                      1922727280  867279740 957771940  48% /hddata
/dev/sdb1                          233191      27854    192896  13% /boot
10.18.103.101:/data/marketdata 1883265024 1644255232 143344640  92% /srv/data/marketdatah

The last several lines of dmesg

dmesg的最后几行

hadoop@hbase1:/hddata$ dmesg | tail
[316263.280056] EXT4-fs (sda1): previous I/O error to superblock detected
[316263.281326] sd 0:0:0:0: [sda] Unhandled error code
[316263.281329] sd 0:0:0:0: [sda]
[316263.281330] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[316263.281332] sd 0:0:0:0: [sda] CDB:
[316263.281334] Write(10): 2a 00 00 00 00 3f 00 00 08 00
[316263.281342] end_request: I/O error, dev sda, sector 63
[316263.282584] Buffer I/O error on device sda1, logical block 0
[316263.283799] lost page write due to I/O error on sda1
[316263.283842] EXT4-fs error (device sda1): ext4_find_entry:1270: inode #2: comm bash: reading directory lblock 0

采纳答案by Robin Sheat

Buffer I/O error on device sda1, logical block 0

This sort of thing is indicative of an impending hardware failure. I'd do what you can to back up everything you need to somewhere else and replace the drive before it fails irreparably.

这种事情表明即将发生硬件故障。我会尽您所能将您需要的所有内容备份到其他地方,并在驱动器出现无法修复的故障之前更换驱动器。