Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'And how to disable a bad sector?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
And how to disable a bad sector?
Authored by: Ptitboul on May 20, '06 12:44:15AM
Since a few years, there is a bad sector on one of my hard drives. Disk Utility does not report anything, but smartctl says Error 419 occurred at disk power-on lifetime: 13095 hours (545 days + 15 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 01 3f 13 77 e6  Error: UNC 1 sectors at LBA = 0x0677133f = 108467007

  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 08 38 13 77 e6 00      18:06:00.600  READ DMA
  c8 00 08 30 13 77 e6 00      18:06:00.600  READ DMA
  c8 00 08 28 13 77 e6 00      18:06:00.600  READ DMA
  c8 00 08 20 13 77 e6 00      18:06:00.600  READ DMA
  c8 00 08 18 13 77 e6 00      18:06:00.600  READ DMA
Do you know if there is some technique to disable this bad sector?

[ Reply to This | # ]
And how to disable a bad sector?
Authored by: Auricchio on May 20, '06 11:42:46AM

The best way would be to read and rewrite the sector. This will allow the drive to remap it. I once wrote a program to do just this. Running as root, it opens the raw drive, does a seek to the sector, reads, then rewrites it.

---
EMOJO: mojo no longer workin'



[ Reply to This | # ]