[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

end_request: I/O error



Hello all,
	I have an iBook2 500Mhz/CDRW with 384MB of RAM dual-booting 
OSX.2.2 and debian woody. I have been having problems with what LOOKS like 
a bad hard disk for quite awhile... errors like this:

end_request: I/O error, dev 03:03 (hda), sector 1869542
hda: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hda: read_intr: error=0x40 { UncorrectableError }, LBAsect=1871206, 
sector=1869542

When I run badblocks, I get all kinds of bad blocks, but I can't figure 
out how to get e2fsck to actually add them to the badblocks inode and work 
around them. I would normally just get a new hard drive (it's a 20G - came 
in the machine), except for that when I install OSX on the same space on 
the drive, I have no problems at all! Has anybody ever seen a flaky driver 
issue with this? I have tried disabling DMA, which gives me the above 
error. With DMA enabled, I get a similar, predictable error:

end_request: I/O error, dev 03:03 (hda), sector 1869536
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1871206, 
sector=1869536

Another interesting error:

hda: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error }
hda: read_intr: error=0x01 { AddrMarkNotFound }, LBAsect=1861927, 
sector=1861927
ide0: reset: success

There are tons of these as well. It almost looks like the linux 
kernel is addressing the drive wrong. Maybe I set up the partition map 
incorrectly? Here's what it looks like:
/dev/hda
        #                    type name                 length   base     ( 
size )  system
dump: name /dev/hda len 8 
/dev/hda1     Apple_partition_map Apple                    63 @ 1        ( 
31.5k)  Partition map
/dev/hda2         Apple_Bootstrap bootstrap              1600 @ 64       
(800.0k)  NewWorld bootblock
/dev/hda3         Apple_UNIX_SVR2 Linux              18432000 @ 1664     (  
8.8G)  Linux native
/dev/hda4         Apple_UNIX_SVR2 swap                1101440 @ 18433664 
(537.8M)  Linux swap
/dev/hda5               Apple_HFS OSX                19534968 @ 19535104 (  
9.3G)  HFS
/dev/hda6              Apple_Free                           8 @ 39070072 (  
4.0k)  Free space

Block size=512, Number of Blocks=39070080
DeviceType=0x0, DeviceId=0x0



Anybody have any clues? Do I really just have a bad hard drive and OSX is 
better at working around it? I have compiled in pmac_ide support - I have 
tried compiling in ATA WORKS bug-workaround stuff, but I'm not sure if 
that does anything at all with pmac_ide. My kernel ide message looks like 
this, if it helps:

Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with 
idebus=xx
pmac_ide: enabling IDE bus ID 2
hda: TOSHIBA MK2016GAP, ATA DISK drive
hdb: SONY CD-RW CRX700E, ATAPI CD/DVD-ROM drive
ide0 at 0xdca0f000-0xdca0f007,0xdca0f160 on irq 19
hda: Enabling Ultra DMA 2
ide_pmac: Set UDMA timing for mode 2, reg: 0x1090038c
hda: 39070080 sectors (20004 MB), CHS=38760/16/63, UDMA(33)
hdb: Enabling MultiWord DMA 2
ide_pmac: MDMA, cycleTime: 120, accessTime: 75, recTime: 45
ide_pmac: Set MDMA timing for mode 2, reg: 0x0001978c
Partition check:
 hda: [mac] hda1 hda2 hda3 hda4 hda5 hda6
                        

Any suggestions would be much appreciated.
	-Josiah



Reply to: