[Ilugc] Determine which hdd block from sector id

  • From: binand@xxxxxxxxx (Binand Sethumadhavan)
  • Date: Wed Apr 20 15:09:57 2005

On 20/04/05, VR G <sonuvrao@xxxxxxxxxxx> wrote:

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

This one tells you which partition - 03:08 is major 3, minor 8 - or /dev/hda8.

The "other" way is to figure out where the above LBAsect (63127765)
fits in your HDD.

Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes

Total sectors = 255 * 63 * 4865 = 78156225
Cylinder where the above problem sector is = (63127765/78156225) * 4865 = 3930

Since hda8 below is between cylinders 3926 and 4186, cylinder 3930 is in hda8.

/dev/hda8          3926      4186   2096451   83  Linux

Binand

Other related posts: