Input/Output error
Robert Pawn
bobtpawn at hotmail.com
Sat Aug 29 22:23:00 UTC 2009
I didn't see an answer to this e-mail, but I have an identical error. I have
an internal SCSI hard drive with a FAT 32 partition that is mounted
normally, but certain subdirectories are inaccessible. Any attempt to cd
into the directory, ls the directory, etc results in:
robert at MyComputer:/Shared/svn/strategy/09Code$ cd Source
bash: cd: Source: Input/output error
or
robert at MyComputer:/Shared/svn/strategy/09Code$ ls
ls: cannot access Source: Input/output error
HowTo README.txt Source Tools
There haven't been any recent events that would cause me to expect an error
like this (crash, dropping my laptop, etc).
I ran dmesg and I get the following blocks repeated:
[ 37.139645] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
[ 37.139762] ata1.00: BMDMA stat 0x24
[ 37.139876] ata1.00: cmd c8/00:00:e0:b0:da/00:00:00:00:00/e0 tag 0 dma
131072 in
[ 37.139878] res 51/40:00:98:b1:da/40:00:00:00:00/e0 Emask 0x9
(media error)
[ 37.140133] ata1.00: status: { DRDY ERR }
[ 37.140258] ata1.00: error: { UNC }
[ 37.164709] ata1.00: configured for UDMA/133
and
[ 2638.194648] sd 0:0:0:0: [sda] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
[ 2638.194656] sd 0:0:0:0: [sda] Sense Key : Medium Error [current]
[descriptor]
[ 2638.194665] Descriptor sense data with sense descriptors (in hex):
[ 2638.194669] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
[ 2638.194690] 00 da b1 98
[ 2638.194699] sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto
reallocate failed
[ 2638.194710] end_request: I/O error, dev sda, sector 14332312
[ 2638.194718] Buffer I/O error on device sda2, logical block 51
[ 2638.194724] Buffer I/O error on device sda2, logical block 52
[ 2638.194730] Buffer I/O error on device sda2, logical block 53
[ 2638.194736] Buffer I/O error on device sda2, logical block 54
[ 2638.194742] Buffer I/O error on device sda2, logical block 55
[ 2638.194747] Buffer I/O error on device sda2, logical block 56
[ 2638.194753] Buffer I/O error on device sda2, logical block 57
[ 2638.194759] Buffer I/O error on device sda2, logical block 58
[ 2638.194765] Buffer I/O error on device sda2, logical block 59
[ 2638.194798] ata1: EH complete
[ 2638.203974] sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors: (160
GB/149 GiB)
[ 2638.204027] sd 0:0:0:0: [sda] Write Protect is off
[ 2638.204032] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2638.204085] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
[ 2638.204141] sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors: (160
GB/149 GiB)
[ 2638.204172] sd 0:0:0:0: [sda] Write Protect is off
[ 2638.204176] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 2638.204224] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled,
doesn't support DPO or FUA
and
[ 2872.707796] FAT: Filesystem panic (dev sda6)
[ 2872.707803] fat_get_cluster: invalid cluster chain (i_pos 0)
Poking around forums, it looks like there are some bad blocks on the drive,
so I ran 'sudo fsck /dev/sda6' and got
fsck 1.41.4 (27-Jan-2009)
dosfsck 3.0.1, 23 Nov 2008, FAT32, LFN
/svn/strategy/07Code/optimizer/slave/.svn
Contains a free cluster (170). Assuming EOF.
Read 32 bytes at 40370176:Input/output error
So I ran 'sudo smartctl -a /dev/sda6' and got (among other things)
ATA Error Count: 3899 (device log contains only the most recent five errors)
Error 3899 occurred at disk power-on lifetime: 2496 hours (104 days + 0
hours)
When the command that caused the error occurred, the device was active or
idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 c3 fe a6 eb Error: UNC at LBA = 0x0ba6fec3 = 195493571
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 c3 fe a6 eb 00 06:23:27.129 READ DMA
27 00 00 00 00 00 e0 00 06:23:27.119 READ NATIVE MAX ADDRESS EXT
ec 00 00 00 00 00 a0 00 06:23:27.118 IDENTIFY DEVICE
ef 03 46 00 00 00 a0 00 06:23:27.109 SET FEATURES [Set transfer
mode]
27 00 00 00 00 00 e0 00 06:23:24.958 READ NATIVE MAX ADDRESS EXT
and
Num Test_Description Status Remaining LifeTime(hours)
LBA_of_first_error
# 1 Short offline Completed without error 00% 6
-
# 2 Short offline Completed without error 00% 6
-
# 3 Short offline Completed without error 00% 5
-
# 4 Short offline Completed without error 00% 5
-
# 5 Short offline Completed without error 00% 5
-
# 6 Short offline Completed without error 00% 5
-
# 7 Short offline Completed without error 00% 4
-
# 8 Short offline Completed without error 00% 4
-
# 9 Short offline Completed without error 00% 4
-
#10 Short offline Completed without error 00% 4
-
#11 Short offline Completed without error 00% 4
-
#12 Short offline Completed without error 00% 3
-
#13 Short offline Completed without error 00% 3
-
#14 Short offline Completed without error 00% 3
-
#15 Short offline Completed without error 00% 3
-
#16 Short offline Completed without error 00% 2
-
#17 Short offline Completed without error 00% 2
-
#18 Short offline Completed without error 00% 2
-
#19 Short offline Completed without error 00% 2
-
#20 Short offline Completed without error 00% 2
-
#21 Short offline Completed without error 00% 2492
-
I don't know what to make of the fact that there were ata errors reported,
but the smartctl tests all completed without errors. Which means that I'm
out of ideas. I could just reformat the disk and put all my data back on
there, but there is some data in the affected directories that I would like
to keep. Does anyone have any ideas?
--R Pawn
PS Here's my fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda4 during installation
UUID=04c9df3c-e510-4c8d-bf3b-86a484d33aa3 / ext3
relatime,errors=remount-ro 0 1
UUID=8AEB-C8A2 /Shared vfat defaults 0 0
# swap was on /dev/sda5 during installation
UUID=c0366d17-a993-41d3-8a9d-73d16363a273 none swap sw
0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
> > Hi
> >
> > I have got a USB connected drive which crashed recently. I can still
> > mount its partitions, but for certain directories and files, I get an
> > Input/Output error. How can I diagnose this further and what action
> > should I unertake to clean up the disk.
> >
> > Tx/Alain
> >
> >
--
View this message in context: http://www.nabble.com/Input-Output-error-tp20099254p25206867.html
Sent from the ubuntu-users mailing list archive at Nabble.com.
More information about the ubuntu-users
mailing list