Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2006 14:03:23 -0500
From:      Jerry McAllister <jerrymc@msu.edu>
To:        John <lists@reiteration.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: fsck with freebsd-6.1
Message-ID:  <20061030190323.GA12835@gizmo.acns.msu.edu>
In-Reply-To: <20061030185251.GL60126@reiteration.net>
References:  <20061030185251.GL60126@reiteration.net>

next in thread | previous in thread | raw e-mail | index | archive | help

> Hello list
> 
> Looking at the man page for fsck, I couldn't find an option to 
> tell fsck when it finds an unreadable sector, to mark it as bad so
> it doesn't get written to another time. If fsck can't do it, is there a
> program in the system or in ports that can?

That generally gets handled nowdays by the disk controller.
It remaps blocks to reserved spare blocks.   When you begin to
see bad blocks mentioned by the OS, it generally means that the
disk has run out of its spare blocks and is beginning to die and 
it is time to replace it - not just mark a block as bad.

I don't think fsck deals with things at that level.  It is more
interested in making sure the structure of the file system is
intact and that is a higher level than bad blocks.   So, I could
be wrong on that part, but I don't think fsck has a option for
marking bad blocks.   

I don't know about a utililty to do it.

////jerry

> 
> cheers
> -- 
> John - lists@reiteration.net
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061030190323.GA12835>