LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-18-2011, 04:57 AM   #1
Willard
LQ Newbie
 
Registered: Nov 2009
Posts: 17

Rep: Reputation: 0
Buffer I/O error on device hda3


Hello there.

I am currently helping my brother with his computer which won't mount /home due to drive read errors. I amwriting to you because I don't know if the problem goes away by wiping and repartitioning the disk, or whether the hard drive is broken, and I am hoping you guys can shed some insight.

The computer is a small VIA chipset machine, running a Debian stable from two years ago (if the kernel version or cpuinfo is important, I can check it).

Here's what I have done so far.

I fired up the computer, and while the computer was booting, saw a long list of errors which were mostly the following two lines repeated:

Code:
[...] Buffer I/O error on device hda3, logical block Y
[...] end_request: I/O error, dev hda , sector f(Y)
where Y from 0 to 13 and f(Y) = 19920(60 + Y).

The other lines were of the same form, but with no obvious pattern between logical blocks and sectors. (The "..." in [...] were floating point numbers; see the dmesg log below.)

Eventually, the boot screen said:

Code:
fsck.ext3: Attempt to read block from filesystem resulted in short read while trying to open /dev/hda3

Could this be a zero-length partition?

fsck died with exit status 8
failed (code 8).

File system check failed. A log is being saved in /var/log/fsck/checkfs if that location is writable. Please repair the system manually. failed!

A maintenance shell will now be started. CONTROL-D will terminate this shell and resume system boot. (warning).

Give root password for maintenance
(or type Control-D to continue):
I logged into the maintenance shell, and gathered some data.

Here's /etc/fstab:

Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    errors=remount-ro 0       1
/dev/hda3       /home           ext3    defaults        0       2
/dev/hda2       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/sda        /media/cdrom1   udf,iso9660 user,noauto     0       0
So, hda3 is the home partition. Nuts. It contains some files which my brother cares about.

I ran dmesg. Here's a snippet (too long to post; ask me for the full file if interested):

Code:
...

[    0.199720] Linux Plug and Play Support v0.97 (c) Adam Belay
[    0.199811] pnp: PnP ACPI init
[    0.199843] ACPI: bus type pnp registered
[    0.207300] pnp: PnP ACPI: found 10 devices
[    0.207311] ACPI: ACPI bus type pnp unregistered
[    0.207323] PnPBIOS: Disabled by ACPI PNP
[    0.208083] PCI: Using ACPI for IRQ routing
[    0.208514] ACPI: RTC can wake from S4
[    0.208593] system 00:00: iomem range 0xcf600-0xcffff has been reserved
[    0.208605] system 00:00: iomem range 0xf0000-0xf7fff could not be reserved
[    0.208617] system 00:00: iomem range 0xf8000-0xfbfff could not be reserved
[    0.208629] system 00:00: iomem range 0xfc000-0xfffff could not be reserved
[    0.208641] system 00:00: iomem range 0x1dff0000-0x1dffffff could not be reserved
[    0.208654] system 00:00: iomem range 0xffff0000-0xffffffff could not be reserved
[    0.208666] system 00:00: iomem range 0x0-0x9ffff could not be reserved
[    0.208678] system 00:00: iomem range 0x100000-0x1dfeffff could not be reserved
[    0.208690] system 00:00: iomem range 0xfee00000-0xfee00fff has been reserved
[    0.208702] system 00:00: iomem range 0xfff80000-0xfffeffff has been reserved
[    0.208728] system 00:02: ioport range 0x400-0x47f has been reserved
[    0.208743] system 00:02: ioport range 0x500-0x50f has been reserved
[    0.208775] system 00:03: ioport range 0x4d0-0x4d1 has been reserved
[    0.239862] PCI: Bridge: 0000:00:01.0
[    0.239870]   IO window: disabled.
[    0.239883]   MEM window: 0xdc000000-0xddffffff
[    0.239894]   PREFETCH window: 0x00000000d8000000-0x00000000dbffffff
[    0.239924] PCI: Setting latency timer of device 0000:00:01.0 to 64
[    0.239994] NET: Registered protocol family 2
[    0.240262] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.240879] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.241374] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
[    0.241711] TCP: Hash tables configured (established 16384 bind 16384)
[    0.241721] TCP reno registered
[    0.241993] NET: Registered protocol family 1
[    0.242377] checking if image is initramfs...<7>Switched to high resolution mode on CPU 0
[    1.110678]  it is
[    2.109134] Freeing initrd memory: 6085k freed
[    2.110387] audit: initializing netlink socket (disabled)
[    2.110426] type=2000 audit(1303029640.108:1): initialized
[    2.110700] Total HugeTLB memory allocated, 0
[    2.110917] VFS: Disk quotas dquot_6.5.1
[    2.111004] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.111104] msgmni has been set to 944
[    2.111425] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    2.111438] io scheduler noop registered
[    2.111445] io scheduler anticipatory registered
[    2.111452] io scheduler deadline registered
[    2.111482] io scheduler cfq registered (default)
[    2.111512] PCI: VIA PCI bridge detected.Disabling DAC.
[    2.111622] pci 0000:00:11.0: Bypassing VIA 8237 APIC De-Assert Message
[    2.111646] pci 0000:01:00.0: Boot video device
[    2.112578] isapnp: Scanning for PnP cards...
[    2.466689] isapnp: No Plug & Play device found
[    2.474070] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
[    2.474287] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    2.474472] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    2.475234] 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    2.475546] 00:09: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    2.479316] brd: module loaded
[    2.479679] PNP: No PS/2 controller found. Probing ports directly.
[    2.732143] serio: i8042 KBD port at 0x60,0x64 irq 1
[    2.732481] mice: PS/2 mouse device common for all mice
[    2.732771] rtc_cmos 00:05: rtc core: registered rtc_cmos as rtc0
[    2.732804] rtc0: alarms up to one year, y3k
[    2.733073] EISA: Probing bus 0 at eisa.0
[    2.733133] EISA: Detected 0 cards.
[    2.733143] cpuidle: using governor ladder
[    2.733150] cpuidle: using governor menu
[    2.733163] No iBFT detected.
[    2.734576] TCP cubic registered
[    2.734586] NET: Registered protocol family 17
[    2.734603] Using IPI Shortcut mode
[    2.734933] registered taskstats version 1
[    2.735295] rtc_cmos 00:05: setting system clock to 2011-04-17 08:40:41 UTC (1303029641)
[    2.736800] Freeing unused kernel memory: 320k freed
[    3.110904] ACPI: PNP0C0B:00 is registered as cooling_device0
[    3.110925] ACPI: Fan [FAN] (on)
[    3.134733] ACPI: CPU0 (power states: C1[C1] C2[C2])
[    3.134849] ACPI: ACPI0007:00 is registered as cooling_device1
[    3.134873] ACPI: Processor [CPU0] (supports 2 throttling states)
[    3.139957] ACPI: LNXTHERM:01 is registered as thermal_zone0
[    3.140314] ACPI: Thermal Zone [THRM] (-248 C)
[    4.535475] No dock devices found.
[    4.633711] SCSI subsystem initialized
[    5.004615] usbcore: registered new interface driver usbfs
[    5.004697] usbcore: registered new interface driver hub
[    5.004831] usbcore: registered new device driver usb
[    5.008655] USB Universal Host Controller Interface driver v3.0
[    5.009904] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
[    5.009916] PCI: setting IRQ 11 as level-triggered
[    5.009926] ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
[    5.009955] uhci_hcd 0000:00:10.0: UHCI Host Controller
[    5.010237] uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
[    5.010281] uhci_hcd 0000:00:10.0: irq 11, io base 0x0000d400
[    5.010582] usb usb1: configuration #1 chosen from 1 choice
[    5.010679] hub 1-0:1.0: USB hub found
[    5.010703] hub 1-0:1.0: 2 ports detected
[    5.043155] via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
[    5.043172] via-rhine: Broken BIOS detected, avoid_D3 enabled.
[    5.112433] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[    5.112447] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.112457] usb usb1: Product: UHCI Host Controller
[    5.112465] usb usb1: Manufacturer: Linux 2.6.26-2-486 uhci_hcd
[    5.112473] usb usb1: SerialNumber: 0000:00:10.0
[    5.112625] ACPI: PCI Interrupt 0000:00:10.1[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
[    5.112654] uhci_hcd 0000:00:10.1: UHCI Host Controller
[    5.112727] uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 2
[    5.112770] uhci_hcd 0000:00:10.1: irq 11, io base 0x0000d800
[    5.113062] usb usb2: configuration #1 chosen from 1 choice
[    5.113151] hub 2-0:1.0: USB hub found
[    5.113177] hub 2-0:1.0: 2 ports detected
[    5.216402] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    5.216417] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.216427] usb usb2: Product: UHCI Host Controller
[    5.216435] usb usb2: Manufacturer: Linux 2.6.26-2-486 uhci_hcd
[    5.216443] usb usb2: SerialNumber: 0000:00:10.1
[    5.217698] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 12
[    5.217710] PCI: setting IRQ 12 as level-triggered
[    5.217720] ACPI: PCI Interrupt 0000:00:10.2[B] -> Link [LNKB] -> GSI 12 (level, low) -> IRQ 12
[    5.217749] uhci_hcd 0000:00:10.2: UHCI Host Controller
[    5.217839] uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 3
[    5.217883] uhci_hcd 0000:00:10.2: irq 12, io base 0x0000dc00
[    5.218193] usb usb3: configuration #1 chosen from 1 choice
[    5.218282] hub 3-0:1.0: USB hub found
[    5.218309] hub 3-0:1.0: 2 ports detected
[    5.320413] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    5.320427] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.320437] usb usb3: Product: UHCI Host Controller
[    5.320444] usb usb3: Manufacturer: Linux 2.6.26-2-486 uhci_hcd
[    5.320453] usb usb3: SerialNumber: 0000:00:10.2
[    5.320579] ACPI: PCI Interrupt 0000:00:10.3[B] -> Link [LNKB] -> GSI 12 (level, low) -> IRQ 12
[    5.320609] uhci_hcd 0000:00:10.3: UHCI Host Controller
[    5.320680] uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 4
[    5.320726] uhci_hcd 0000:00:10.3: irq 12, io base 0x0000e000
[    5.321045] usb usb4: configuration #1 chosen from 1 choice
[    5.321133] hub 4-0:1.0: USB hub found
[    5.321163] hub 4-0:1.0: 2 ports detected
[    5.343943] libata version 3.00 loaded.
[    5.424396] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    5.424411] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.424421] usb usb4: Product: UHCI Host Controller
[    5.424428] usb usb4: Manufacturer: Linux 2.6.26-2-486 uhci_hcd
[    5.424437] usb usb4: SerialNumber: 0000:00:10.3
[    5.428765] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 10
[    5.428779] PCI: setting IRQ 10 as level-triggered
[    5.428790] ACPI: PCI Interrupt 0000:00:10.4[C] -> Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
[    5.428829] ehci_hcd 0000:00:10.4: EHCI Host Controller
[    5.428948] ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 5
[    5.429050] ehci_hcd 0000:00:10.4: irq 10, io mem 0xde000000
[    5.440092] ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[    5.440368] usb usb5: configuration #1 chosen from 1 choice
[    5.440459] hub 5-0:1.0: USB hub found
[    5.440486] hub 5-0:1.0: 8 ports detected
[    5.544388] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    5.544402] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.544412] usb usb5: Product: EHCI Host Controller
[    5.544420] usb usb5: Manufacturer: Linux 2.6.26-2-486 ehci_hcd
[    5.544428] usb usb5: SerialNumber: 0000:00:10.4
[    5.545460] ACPI: PCI Interrupt 0000:00:12.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
[    5.550226] eth0: VIA Rhine II at 0x1e800, 00:40:63:dc:19:c7, IRQ 11.
[    5.550946] eth0: MII PHY found at address 1, status 0x786d advertising 05e1 Link 45e1.
[    5.576012] Uniform Multi-Platform E-IDE driver
[    5.576012] ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
[    5.685676] VP_IDE: IDE controller (0x1106:0x0571 rev 0x06) at  PCI slot 0000:00:0f.0
[    5.685730] ACPI: PCI Interrupt 0000:00:0f.0[A] -> Link [LNKA] -> GSI 11 (level, low) -> IRQ 11
[    5.685748] VIA_IDE 0000:00:0f.0: VIA VLink IRQ fixup, from 255 to 11
[    5.685786] VP_IDE: not 100% native mode: will probe irqs later
[    5.685816] VP_IDE: VIA vt8237 (rev 00) IDE UDMA133 controller on pci0000:00:0f.0
[    5.685837]     ide0: BM-DMA at 0xd000-0xd007
[    5.685856]     ide1: BM-DMA at 0xd008-0xd00f
[    5.685867] Probing IDE interface ide0...
[    6.152244] hda: ST9250827AS, ATA DISK drive
[    6.392123] usb 5-6: new high speed USB device using ehci_hcd and address 2
[    6.528756] usb 5-6: configuration #1 chosen from 1 choice
[    6.529423] usb 5-6: New USB device found, idVendor=040d, idProduct=6207
[    6.529435] usb 5-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.529444] usb 5-6: Product: USB 2.0 CFC Bridge
[    6.529452] usb 5-6: Manufacturer: VIA Technologies Inc.
[    6.529460] usb 5-6: SerialNumber: 000000000001
[    6.824199] hda: host max PIO5 wanted PIO255(auto-tune) selected PIO4
[    6.824414] hda: UDMA/133 mode selected
[    6.824677] Probing IDE interface ide1...
[    7.102010] Initializing USB Mass Storage driver...
[    7.128191] Marking TSC unstable due to: TSC halts in idle.
[    7.192052] usb 4-1: new full speed USB device using uhci_hcd and address 2
[    7.346678] usb 4-1: configuration #1 chosen from 1 choice
[    7.349118] usb 4-1: New USB device found, idVendor=0c45, idProduct=17cf
[    7.349132] usb 4-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    7.349141] usb 4-1: Product: USB Audio
[    7.588071] usb 4-2: new low speed USB device using uhci_hcd and address 3
[    7.688178] hdc: DW-224E-B, ATAPI CD/DVD-ROM drive
[    7.764928] usb 4-2: configuration #1 chosen from 1 choice
[    7.768958] usb 4-2: New USB device found, idVendor=046d, idProduct=c505
[    7.768973] usb 4-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    7.768982] usb 4-2: Product: USB Receiver
[    7.768989] usb 4-2: Manufacturer: Logitech
[    7.769301] scsi0 : SCSI emulation for USB Mass Storage devices
[    7.769635] usbcore: registered new interface driver usb-storage
[    7.769647] USB Mass Storage support registered.
[    7.770607] usbcore: registered new interface driver hiddev
[    7.770698] usb-storage: device found at 2
[    7.770706] usb-storage: waiting for device to settle before scanning
[    7.774677] input: USB Audio as /class/input/input0
[    7.784296] input,hidraw0: USB HID v1.00 Device [USB Audio] on usb-0000:00:10.3-1
[    7.798592] input: Logitech USB Receiver as /class/input/input1
[    7.808283] input,hidraw1: USB HID v1.10 Keyboard [Logitech USB Receiver] on usb-0000:00:10.3-2
[    7.839631] input: Logitech USB Receiver as /class/input/input2
[    7.864242] input,hidraw2: USB HID v1.10 Mouse [Logitech USB Receiver] on usb-0000:00:10.3-2
[    7.864302] usbcore: registered new interface driver usbhid
[    7.864314] usbhid: v2.6:USB HID core driver
[    8.360201] hdc: host max PIO5 wanted PIO255(auto-tune) selected PIO4
[    8.360432] hdc: UDMA/33 mode selected
[    8.360640] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
[    8.360994] ide1 at 0x170-0x177,0x376 on irq 15
[    8.561523] hda: max request size: 512KiB
[    8.561537] hda: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63
[    8.564812] hda: cache flushes supported
[    8.564944]  hda: hda1 hda2 hda3
[    8.585399] hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 1654kB Cache
[    8.585423] Uniform CD-ROM driver Revision: 3.20
[    8.633524] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[    8.633544] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[    8.633556] ide: failed opcode was: unknown
[    8.633783] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[    8.633796] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[    8.633806] ide: failed opcode was: unknown
[    8.634077] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[    8.634090] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[    8.634101] ide: failed opcode was: unknown
[    8.634339] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[    8.634352] hda: dma_intr: error=0x84 { DriveStatusError BadCRC }
[    8.634363] ide: failed opcode was: unknown
[    8.634381] hda: UDMA/100 mode selected
[    8.680061] ide0: reset: success
[   11.228509] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   11.228509] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992060, sector=1992060
[   11.228509] ide: failed opcode was: unknown
[   11.228509] end_request: I/O error, dev hda, sector 1992060
[   11.228509] Buffer I/O error on device hda3, logical block 0
[   12.768349] usb-storage: device scan complete
[   12.769316] scsi 0:0:0:0: Direct-Access     VIA-P    VT6205-CF        0.90 PQ: 0 ANSI: 2
[   12.840615] Driver 'sd' needs updating - please use bus_type methods
[   12.847579] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   13.590366] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   13.590366] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992062, sector=1992062
[   13.590366] ide: failed opcode was: unknown
[   13.590366] end_request: I/O error, dev hda, sector 1992062
[   13.590366] Buffer I/O error on device hda3, logical block 1
[   15.951679] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   15.951679] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992064, sector=1992064
[   15.951679] ide: failed opcode was: unknown
[   15.951679] end_request: I/O error, dev hda, sector 1992064
[   15.951679] Buffer I/O error on device hda3, logical block 2
[   18.313399] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   18.313399] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992066, sector=1992066
[   18.313399] ide: failed opcode was: unknown
[   18.313399] end_request: I/O error, dev hda, sector 1992066
[   18.313399] Buffer I/O error on device hda3, logical block 3
[   20.674547] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   20.674547] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992068, sector=1992068
[   20.674547] ide: failed opcode was: unknown
[   20.674547] end_request: I/O error, dev hda, sector 1992068
[   20.674547] Buffer I/O error on device hda3, logical block 4
[   23.036403] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   23.036403] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992070, sector=1992070
[   23.036403] ide: failed opcode was: unknown
[   23.036403] end_request: I/O error, dev hda, sector 1992070
[   23.036403] Buffer I/O error on device hda3, logical block 5
[   25.397726] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   25.397726] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992072, sector=1992072
[   25.397726] ide: failed opcode was: unknown
[   25.397726] end_request: I/O error, dev hda, sector 1992072
[   25.397726] Buffer I/O error on device hda3, logical block 6
[   27.759616] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   27.759616] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992074, sector=1992074
[   27.759616] ide: failed opcode was: unknown
[   27.759616] end_request: I/O error, dev hda, sector 1992074
[   27.759616] Buffer I/O error on device hda3, logical block 7
[   30.121114] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   30.121114] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992076, sector=1992076
[   30.121114] ide: failed opcode was: unknown
[   30.121114] end_request: I/O error, dev hda, sector 1992076
[   30.121114] Buffer I/O error on device hda3, logical block 8
[   32.482451] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   32.482451] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992078, sector=1992078
[   32.482451] ide: failed opcode was: unknown
[   32.482451] end_request: I/O error, dev hda, sector 1992078
[   32.482451] Buffer I/O error on device hda3, logical block 9
[   34.843957] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   34.843957] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992080, sector=1992080
[   34.843957] ide: failed opcode was: unknown
[   34.843957] end_request: I/O error, dev hda, sector 1992080
[   34.843957] Buffer I/O error on device hda3, logical block 10
[   37.205505] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   37.205505] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992082, sector=1992082
[   37.205505] ide: failed opcode was: unknown
[   37.205505] end_request: I/O error, dev hda, sector 1992082
[   37.205505] Buffer I/O error on device hda3, logical block 11
[   39.566678] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   39.566678] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992084, sector=1992084
[   39.566678] ide: failed opcode was: unknown
[   39.566678] end_request: I/O error, dev hda, sector 1992084
[   39.566678] Buffer I/O error on device hda3, logical block 12
[   41.928549] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   41.928549] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992086, sector=1992086
[   41.928549] ide: failed opcode was: unknown
[   41.928549] end_request: I/O error, dev hda, sector 1992086
[   41.928549] Buffer I/O error on device hda3, logical block 13
[   44.290240] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   44.290240] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992088, sector=1992088
[   44.290240] ide: failed opcode was: unknown
[   44.290240] end_request: I/O error, dev hda, sector 1992088
[   44.290240] Buffer I/O error on device hda3, logical block 14
[   46.651552] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   46.651552] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992090, sector=1992090
[   46.651552] ide: failed opcode was: unknown
[   46.651552] end_request: I/O error, dev hda, sector 1992090
[   46.651552] Buffer I/O error on device hda3, logical block 15
[   49.013454] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   49.013454] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992060, sector=1992060
[   49.013454] ide: failed opcode was: unknown
[   49.013454] end_request: I/O error, dev hda, sector 1992060
[   49.013454] Buffer I/O error on device hda3, logical block 0
[   51.374605] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   51.374605] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992062, sector=1992062
[   51.374605] ide: failed opcode was: unknown
[   51.374605] end_request: I/O error, dev hda, sector 1992062
[   51.374605] Buffer I/O error on device hda3, logical block 1
[   53.736528] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   53.736541] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992064, sector=1992064
[   53.736562] ide: failed opcode was: unknown
[   53.736571] end_request: I/O error, dev hda, sector 1992064
[   56.097753] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   56.097753] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992066, sector=1992066
[   56.097753] ide: failed opcode was: unknown
[   56.097753] end_request: I/O error, dev hda, sector 1992066
[   56.261595] PM: Starting manual resume from disk
[   56.382096] kjournald starting.  Commit interval 5 seconds
[   56.382125] EXT3-fs: mounted filesystem with ordered data mode.
[   58.792610] udevd version 125 started
[   62.317914] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   62.317931] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992060, sector=1992060
[   62.317956] ide: failed opcode was: unknown
[   62.317969] end_request: I/O error, dev hda, sector 1992060
[   62.318053] __ratelimit: 2 messages suppressed
[   62.318064] Buffer I/O error on device hda3, logical block 0
[   64.679467] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   64.679484] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992062, sector=1992062
[   64.679509] ide: failed opcode was: unknown
[   64.679522] end_request: I/O error, dev hda, sector 1992062
[   64.679599] Buffer I/O error on device hda3, logical block 1
[   67.041027] hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
[   67.041046] hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=1992064, sector=1992064
[   67.041070] ide: failed opcode was: unknown
[   67.041083] end_request: I/O error, dev hda, sector 1992064

...
I checked whether hda3 was mounted (using the "mount" command). Since it was not, I tried doing some recovery. Both

Code:
fsck -y -C -V /dev/hda3
and

Code:
e2fsck -cfv /dev/hda3
yielded the same Buffer I/O errors (and did not fix the problem).

My next idea was to copy the data from his drive using dd before getting more invasive. I first tried rebooting the machine, hoping it would boot without mounting /home after pressing Control-D when offered the option of a recovery console. It worked. While I could not log into an X session, I still had a terminal (at F1), and networking. I mounted a samba share, and tried dd-ing the contents of hda3 to it.

Code:
dd if=/dev/hda3 of=/root/sambamount/home.dd
The command finished "successfully", but only copied 1GB of the 239GB partition, after emitting a list of buffer I/O errors. I tried a similar dd command for /dev/hda with the same result.

I then downloaded RIP ("recovery is possible") in hopes that the utilities there (testdisk in particular) would help me recover the partition. Turns out RIP will not boot on this hardware, as the computer is a small VIA (two CPU instructions were not supported :-P ).

So I rebooted the crappy "homeless" computer, logged into the terminal at F1, and installed testdisk. I am currently backing up the contents of the 250GB harddrive using the "Image Creation" utility of testdisk. The speed of copy varies greatly; seems the copy process slows to a crawl when Buffer I/O errors start occurring (and they do, even here). We have managed to copy ~160GB so far (over night), though.

I suspect, however, that alot of files will be corrupted, and since the file system is busted, it will be a lot of work to recover the files. I will leave it to my brother to decide whether the files are worth it.

What I am more worried about is that the drive is broken. e2fsck failed when trying to mark bad sectors, and reading the partition with dd spawned Buffered I/O errors as well. As the latter does not care about the file system on the disk, I fear that the hard drive (hardware) is failing. So I suspect that wiping the drive and doing a reinstall will just eventually hit the same problem.

Is the drive toast? Or will wiping it help?

Cheers,
Willard.
 
Old 04-18-2011, 06:15 AM   #2
jhcaiced
Member
 
Registered: Mar 2009
Distribution: CentOS - Ubuntu - Debian
Posts: 83

Rep: Reputation: 27
Hi,

From the error messages you have shown the hard drive is broken and needs replacement, it would be very risk to just format it and install again. Even if the install doesn't show errors at first they will eventually occur.

Your attempts to use "dd" to copy data bypass the filesystem information and read the drive directly so if you get the error messages the, the drive is broken.

Best regards,
 
Old 04-18-2011, 09:14 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,150
Blog Entries: 3

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
Hi,

I would first use the manufactures diagnostic set to check the drive. Check cabling to make sure it is set.

UBCD Ultimate Boot CD allows users to run floppy-based diagnostic tools from most CDROM drives on Intel-compatible machines, no operating system required. The cd includes many diagnostic utilities.

SystemRescueCd is a Linux system on a bootable CD-ROM for repairing your system and recovering your data after a crash. It aims to provide an easy way to carry out admin tasks on your computer, such as creating and editing the partitions of the hard disk. It contains a lot of system utilities (parted, partimage, fstools, ...) and basic tools (editors, midnight commander, network tools).' + 'Online-Manual

Just a few tools from Tools, Recovery, Diagnostic, Emergency section of SlackwareŽ-Links. More than just SlackwareŽ-Links!
 
Old 04-18-2011, 12:34 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
You did mostly what I would have recommended. If you want to confirm the drive is failing use smartctl (attributes and long test) or manufacturer-specific utilities found on the UBCD (linked above). I bet the drive is failing, if this happened all of a sudden and without you doing anything inside the case. I suppose you should check the cables in case they came loose somehow or were damaged.
 
  


Reply

Tags
buffer, error, harddisk, harddrive, sector


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Buffer I/O error on device greensuman Linux - Server 1 03-15-2010 05:26 PM
buffer i/o error on device sr0 compgenius999 Linux - Newbie 1 09-15-2009 11:32 AM
Buffer I/O error on device sr0....... apache2 Linux - General 1 03-22-2009 03:58 AM
Error enabling swap device hda3 Eileen Linux - Software 3 03-06-2006 06:26 PM
EXT-fs error (device hda3) in start_transaction: Readonly filesystem kiwibird Linux - Hardware 2 10-21-2005 10:15 AM


All times are GMT -5. The time now is 11:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration