Re: Failed disk sectors



On Fri, 2006-Mar-03 17:23:33 -0800, Doug Hardie wrote:
The drive SMART status show plenty of available spare sectors, but
since it can't read those sectors it won't remap them to a spare
sector till the next write of that sector.

It's probably a good idea to start think about replacing the disk
anyway.

I have not found anything in the archives or man pages or ports that
addresses identifying the object/file that has that LBA.

Look at the thread starting
http://lists.FreeBSD.org/pipermail/freebsd-hackers/2006-February/015475.html

So I assume I would have to subtract the start
of that partition from the LBA.

Yes.

However, that assumes that the LBA
is in the same 512 byte block numbering system.

It is. You can always double check by verifying that the superblocks
are where you calculate they should be and that when you translate the
LBA to an offset within the partition, you get an error when you
attempt to read that LBA within the partition.

Next has to address the bsdlabel. I am now presuming that the LBA
value of 0 is the start of the drive, not the start of the
partition.

I'm almost certain they are - the error message would include the
slice/partition number if they were relative to the start of the
slice/partition (otherwise you couldn't be certain which slice/
partition was affected). Again, you can check by verifying that
the superblocks are where you expect and the translated LBAs give
errors.

At that point I think I have the values that would be found in the
block tables in the inodes.

It could also be in the cylinder group metadata - superblock copy,
inodes or free block bitmaps. And remember to correctly handle
indirect blocks.

Before digging into the inode structures I though it would be a good
idea to check my understanding to this point. Am I on the right path?

Yes you are.

--
Peter Jeremy
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: other partition corrupted if (32GB) FAT32 filesystem filled >= 29 GiB
    ... Well, how big is the harddrive, and where on the drive is the fat partition located? ... I thinking about the 28bit lba vs 48bit lba issue. ... The partition is from sector 202435128 to sector 269538569. ...
    (microsoft.public.win2000.general)
  • Re: ATA support for 4k sector size
    ... The fields that are to be entered into the partition table are BIOS CHS values, not any other kind of CHS. ... LBA based today and simply start the first partition at sector 63. ...
    (Linux-Kernel)
  • Re: How to get XP Pro to recognize a WD 200GB HDD??
    ... bit LBA' to be able to hold the sector numbers of sectors beyond that ... That needs a BIOS that recognises 48 bit LBA and reports the ... initial partition would need to be nothing like that big. ... Control Panel - Admin Tools - Computer Management, ...
    (microsoft.public.windowsxp.hardware)
  • Re: bootsect.bak
    ... This first sector on each ... HDD is the MBR - the Master Boot Record. ... there is just enough room to hold the 64-byte Partition Table plus ... extension in the Root of that Active partition. ...
    (microsoft.public.windows.vista.general)
  • Re: bootsect.bak
    ... of Windows, so this answer may not be correct for all versions. ... This first sector on each ... HDD is the MBR - the Master Boot Record. ... there is just enough room to hold the 64-byte Partition Table plus ...
    (microsoft.public.windows.vista.general)