*BSD News Article 86417


Return to BSD News archive

From: Christopher Rath <crath@nortel.ca>
Newsgroups: comp.unix.admin,comp.unix.misc,comp.unix.questions,comp.unix.bsd.freebsd.misc,comp.sys.next.misc
Subject: Q: Finding the file(s) which occupy a block on SCSI disk
Followup-To: comp.unix.admin
Date: 07 Jan 1997 12:24:54 -0500
Organization: Northern Telecom Ltd., Ottawa, Canada
Lines: 28
Message-ID: <iwkwwtppfdl.fsf@bmerhe83.nortel.ca>
NNTP-Posting-Host: bmerhe83.bnr.ca
X-Newsreader: Gnus v5.2.25/XEmacs 19.14
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mel.aone.net.au!grumpy.fl.net.au!news.webspan.net!ix.netcom.com!netcom.net.uk!news.cybernet.dk!nntp.uio.no!news-feed.inet.tele.dk!enews.sgi.com!news.sgi.com!news.bbnplanet.com!su-news-hub1.bbnplanet.com!arclight.uoregon.edu!news.bc.net!torn!nott!bcarh189.bnr.ca!bmerhc5e.bnr.ca!news
Xref: euryale.cc.adfa.oz.au comp.unix.admin:53107 comp.unix.misc:27443 comp.unix.questions:93884 comp.unix.bsd.freebsd.misc:33771 comp.sys.next.misc:42100

My system is a NeXTstation Mono running NEXTSTEP 3.3patch.  The drive
in question is a 1gig Quantum Fireball.  I've cross-posted to these
groups since NEXTSTEP is a BSD 4.3-ish UNIX derivative.

I lost a sector on my hard-disk.  I then used NEXTSTEP's reasb command
to reassign the block.  Unfortunately reasb was unable to read the old
data from the block before issuing the reassign block command to the
disk.
 
Has anyone written some code to scan the filesystem of a disk to find
the file(s) that is occupying a specific block on the disk?  I would
like to reinstall the damaged file, however, I don't know which file
was damaged because the disk wouldn't even mount until I reassigned
the block.  Once reassigned, fsck was able to `fix' the disk.  My
effort to scan the disk is simply a double check to verify
everything's OK.
 
I have done some searching of the archives and haven't turned up
anything on this; however, someone has probably written a utility to
do this at one time or another.

Thanks, 
Christopher 
 === Christopher Rath ===== crath@bnr.ca ===== (613) 765-3141 ===
  Northern Telecom Ltd.  |
  Box 3511, Station `C'  | ``Hydrogen is a colourless, odourless
  Ottawa, ON    K1Y 4H7  | gas which, given enough time, turns
  FAX: (613) 763-4101    | into people.'' --- Henry Hiebert