*BSD News Article 80543


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!news.mathworks.com!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!psinntp!psinntp!news.intercon.com!news.iac.net!news
From: Jim Miller <jmiller@jcmco.com>
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: Bad sectors, NetBSD 1.1, IDE, what to do
Date: 12 Oct 1996 00:21:55 -0400
Organization: Internet Access Cincinnati 513-887-8877
Lines: 39
Sender: jmiller@tanya.jcmco.com
Message-ID: <uf20f4x15o.fsf@tanya.jcmco.com>
NNTP-Posting-Host: tanya.jcmco.com
X-Newsreader: Gnus v5.3/Emacs 19.34

Hi,

Running NetBSD 1.1 on a Pentium 100 with a 2Gig IDE drive.  System has been
installed and operating non-stop for some time now.

The problem is that I have a 1G filesystem in which bad blocks are starting
to show up in:

Oct 11 02:04:22 tanya /netbsd: wd0g: hard error reading fsbn 1241716 
of 1241712-1241727 (wd0 bn 3064180; cn 3039 tn 13 sn 49)

The filesystem in question is a spare which has no critical data that
needs to be kept.  

My question: what provisions, if any, does NetBSD have for handling bad
sectors on disks?  I've found the "bad144" program which will allocate
bad sectors into files - thus preventing them from being used again, but I
haven't found any tools which can do a surface scan of all or part of
a disk and therefore give me a complete list of bad sectors. As it is now,
I only find out about them when they get allocated to live files.

Is it possible to do a surface analysis of some or all of a disk using
NetBSD 1.1?  Can I save the data in other filesystems on the same drive
(where my / and /usr are located and are working correctly)?

This problem is occurring on a fairly new (~2 months old) Seagate 2Gig IDE
drive.  I know that SCSI drives automatically manage their bad block tables,
but I'm not sure what to do (and how to do it) with IDE units.

Any guidance would be greatly appreciated!

Best wishes,

Jim
-- 
Jim Miller		|	UNIX, LAN, WAN
Senior Partner,		|	(513) 887-2791
JCM Consulting          |       
jmiller@jcmco.com       |       http://www.jcmco.com