Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!howland.reston.ans.net!agate!violet.berkeley.edu!jkh From: jkh@violet.berkeley.edu (Jordan K. Hubbard) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: /sbin/badsect Date: 20 May 1995 08:34:22 GMT Organization: University of California, Berkeley Lines: 19 Message-ID: <3pk9ie$1ib@agate.berkeley.edu> References: <3pggv4$1ir@case.cyberspace.com> NNTP-Posting-Host: violet.berkeley.edu In article <3pggv4$1ir@case.cyberspace.com>, Jack Valko <valko@cyberspace.com> wrote: >Does anyone know if /sbin/badsect can be used to map out badsectors on >mounted partitions? I have a bad disk sector in sd0a and it seems like >I'm going to need to boot from a floppy to fix this. In FreeBSD-current you could run bad144 to map them out, but I'm not sure it'd be a good idea anyway. SCSI drives (with no exceptions that I'm personally aware of) do their own remapping. Sometimes they're shipped from the factory without auto-remapping turned on, in which case you can edit the "mode pages" with the scsi(8) command (that feature also being only in -current) and tweak the drive's auto-remapping on read and/or write requests on. I've often gotten a drive to remap bad blocks as well by using the "verify" feature of the controller. Jordan