Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!bunyip.cc.uq.oz.au!munnari.oz.au!spool.mu.edu!uwm.edu!cs.utexas.edu!swrinde!sgiblab!cs.uoregon.edu!news.uoregon.edu!gaia.ucs.orst.edu!news.reed.edu!news.teleport.com!news.teleport.com!not-for-mail From: bmk@teleport.com (bmk) Newsgroups: comp.os.386bsd.questions Subject: Re: [Q] fsck and 'medium error' problems Date: 22 Dec 1994 21:41:05 -0800 Organization: Department of Redundancy Department Lines: 35 Message-ID: <3ddnth$pps@kelly.teleport.com> References: <YOCUM.94Dec19155436@sparticus.gateway.cybernet.com> <3d68sn$dhv@linda.teleport.com> <3d76tm$20d@agate.berkeley.edu> <3dchte$n2f$1@perth.DIALix.oz.au> Reply-To: bmk@teleport.com NNTP-Posting-Host: kelly.teleport.com In article <3dchte$n2f$1@perth.DIALix.oz.au>, Julian Elischer <julian@perth.DIALix.oz.au> wrote: >Ok, the original error message was for media errors >and it had the same block mentionned more than once.. this block is faulty on the drive and needs tobe spared out.. > >"How do I do that" I hear you ask... That's the question. I work with Sequent DYNIX at work, and there's a option in format to do so. I couldn't find anything close in FreeBSD. >the routine is in the driver to do it, but there is no IOCTL that calls it.... >maybe I should do that.... >The other solution is to grab the routine from the driver and the source for >/sbin/scsi (scsi(1)) >and do the scsi command for a sector remap from user mode..... >ok, I get the message.. I was lazy when I wrote the driver... i didn't >have any bad blocks so I couldn't test it so I didn't write it.. > >If anyone has bad blocks on their drives, mail me at julian@tfs.com >and I will impliment one of the two solutions above and >post it.. but beware I'll need you to test it first on your bad blocks.. >(I still don't have any) I'd be happy to let you do it on my system, but I doubt you'd want to call from Australia to do it, and I'm not directly connected to the net yet. Besides, reformatting the drive seems to have fixed the problem. -- bmk@dtr.com | bmk@teleport.com | bmk@atlas.com | finger -l bmk@teleport.com for PGP public key. http://www.teleport.com/~bmk/ * http://www.teleport.com/~bmk/patriot.html