NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD disk got bad sectors. What is the best course of action?

In article <20130703131324.GA12493%SDF.ORG@localhost>,
Mayuresh  <> wrote:
>Seems there is physical damage to the disk.
>Did fsck -f using another NetBSD system.
>It shows presence of bad sectors.
>Backed up the disk.
>Now shall I try a reinstall or format and reinstall? Are there any other
>diagnostic tools?

A *long* time ago, when disk got back sectors you could revive them
for a while by doing a low level format, or by marking specific
blocks as bad (badsect)... These days disk controllers handle bad
sectors automatically by reallocating the sectors that got bad from
a set of reserved sectors. When the disk starts reporting bad
sectors, this means that the reserved sector list has been exhausted
and there is no more spares. I would not risk putting more data or
trying to repair that disk. Unless you are of course either
emotionally or financially attached to the drive. Depending on if
it is scsi you can try format and defect management (scsictl), if
it is ata it probably has SMART and you can check the status (atactl).


Home | Main Index | Thread Index | Old Index