Mailinglist Archive: opensuse (2912 mails)

< Previous Next >
Re: [SLE] fsck failed
  • From: "Carl E. Hartung" <suselinux@xxxxxxxxxxxxx>
  • Date: Tue, 08 Feb 2005 22:57:51 -0500
  • Message-id: <42098A3F.3080806@xxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Carlos E. R. wrote:
| The Tuesday 2005-02-08 at 13:46 -0500, Amanda B Hickman wrote:
|
|>Feb 8 12:02:48 linux kernel: hdb: dma_intr: status=0x51 { DriveReady
|>SeekComplete Error }
|>Feb 8 12:02:48 linux kernel: hdb: dma_intr: error=0x40 {
UncorrectableError
|>}, LBAsect=6689920, sector=6689919
|>Feb 8 12:02:48 linux kernel: end_request: I/O error, dev hdb, sector
6689919
|>Feb 8 12:02:48 linux kernel: ReiserFS: hdb1: warning: vs-13070:
|>reiserfs_read_locked_inode: i/o failure occurred trying to find stat
data of
|>[7863 8447 0x0 SD]
|
|
| I think your partition probably developped some badblocks. I'm not
sure of
| the correct procedure nowdays with reiser partitions.
|

Hi Amanda & Carlos,

I found a really fascinating post on this topic in another list archive.
~ The author is a BSEE, CISSP & RHCE and it looks like he's following a
well designed "boilerplate" protocol for analyzing and responding to
this problem. What do you think?

regards,

- - Carl

Quote
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
By the numbers...

# fdisk -lu /dev/hda

Disk /dev/hda: 48.0 GB, 48004669440 bytes
16 heads, 63 sectors/track, 93015 cylinders, total 93759120 sectors
Units = sectors of 1 * 512 = 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 63 211679 105808+ 83 Linux
/dev/hda2 211680 20699279 10243800 83 Linux
/dev/hda3 20699280 22785839 1043280 82 Linux swap
/dev/hda4 22785840 93759119 35486640 f W95 Ext'd (LBA)
/dev/hda5 22785903 93759119 35486608+ 83 Linux

# dd if=/dev/hda5 of=/dev/null
dd: reading `/dev/hda5': Input/output error
4825684+0 records in
4825684+0 records out

# cat /var/log/messages | grep LBA
Nov 15 18:15:01 lioness kernel: hda: dma_intr: error=0x40
{ UncorrectableError }, LBAsect=42088723, sector=42088559
...
Nov 15 18:24:30 lioness kernel: hda: dma_intr: error=0x40
{ UncorrectableError }, LBAsect=42088723, sector=42088723

# smartctl -t /dev/hda
...
Error 398 occurred at disk power-on lifetime: 9588 hours (399 days + 12
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 5c 13 39 82 e2 Error: UNC 92 sectors at LBA = 0x02823913 = 42088723

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 60 0f 39 82 e2 00 1d+19:23:07.300 READ DMA
c8 00 61 0e 39 82 e2 00 1d+19:23:03.900 READ DMA
c8 00 62 0d 39 82 e2 00 1d+19:23:00.500 READ DMA
c8 00 63 0c 39 82 e2 00 1d+19:22:57.200 READ DMA
c8 00 64 0b 39 82 e2 00 1d+19:22:53.800 READ DMA
...

OK. armed with this information I _think_ the following will copy all
data from the beginning of /dev/hda5 up to the bad sector(s), and then
from after the bad sector(s) to the end of /dev/hda5:

listener:
# nc -l -p 30000 > hda5_before.img
sender:
# dd if=/dev/hda5 count=1930302819 bs=2048 | nc 192.168.1.2 30000 -w 3
~ ^^^^^^^^^^ = 42088722-22785903
listener:
# nc -l -p 30000 > hda5_after.img
sender:
# dd if=/dev/hda5 skip=1930302820 bs=2048 | nc 192.168.1.2 30000 -w 3
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/Quote

- --
____________________________________________________________________
C. E. Hartung Business Development & Support Services
http://www.cehartung.com/ carlh@xxxxxxxxxxxxx
Dover Foxcroft, Maine, USA Public Key #0x68396713
Reg. Linux User #350527 http://counter.li.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFCCYo/usxgymg5ZxMRAq+UAJ9BeUdG5w3N07qP6bQrwYcoMQtxwQCfR33W
60u3j8Ew2bLyNSFfZavjLXc=
=YHQT
-----END PGP SIGNATURE-----

< Previous Next >
Follow Ups