Formatting a harddisk with defective sectors

Roland Smith rsmith at
Tue Aug 19 16:53:33 UTC 2008

On Tue, Aug 19, 2008 at 06:31:09PM +0200, Polytropon wrote:
> Hi!
> I have an 8 GB harddisk that I want to use in a Intel P1 / 150 MHz
> with 128 MB EDO-RAM system. Yes, that's for real. This harddisk has
> one defective sector which causes the installation that's already on
> this disk to complain about not being able to clean the /home partition
> via fsck.
> My question: Is there a way to exclude the defective sectors from being
> accessible at the time the disk is completely initialized for a new
> install (slices, partitions, format, tunefs)? Goal: As long as the
> defective sectors won't multiply, if nobody ever touches them, the
> disk should run fine.

See badsect(8). Use between mkfs and install (hint: switch to
"holographic shell").

[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list