*BSD News Article 44254


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!classic.iinet.com.au!news.uoknor.edu!news.ecn.uoknor.edu!paladin.american.edu!howland.reston.ans.net!gatech!news.mathworks.com!news.kei.com!nntp.et.byu.edu!news.provo.novell.com!park.uvsc.edu!usenet
From: Terry Lambert <terry@cs.weber.edu>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: /sbin/badsect
Date: 18 May 1995 23:27:47 GMT
Organization: Utah Valley State College, Orem, Utah
Lines: 25
Message-ID: <3pgl5j$lri@park.uvsc.edu>
References: <3pggv4$1ir@case.cyberspace.com>
NNTP-Posting-Host: hecate.artisoft.com

valko@cyberspace.com (Jack Valko) 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.
] 
] Does anyone have a procedure in hand that they could post on how to 
] accomplish this?

SCSI does this for you automatically.

If you have a SCSI device (the sd0a you refer to is a SCSI drive
name) that has a bad sector, then it is already fixed.

If it isn't, you're drive is on the verge of going to hell in a
handbasket, since you must be out of replacements.

For WD drives, specificly MFM, RLL, and ESDI, the newest code
handles BAD144 remapping; there is a scan and a program for
entering the sectors as part of the install.

                                        Terry Lambert
                                        terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.