*BSD News Article 25434


Return to BSD News archive

Xref: sserve comp.unix.misc:10727 comp.unix.pc-clone.32bit:5287 comp.unix.bsd:13215
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!usc!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!fnnews.fnal.gov!dcdmwm.fnal.gov!mengel
From: mengel@dcdmwm.fnal.gov (Marc Mengel)
Newsgroups: comp.unix.misc,comp.unix.pc-clone.32bit,comp.unix.bsd
Subject: Re: UNIX sector/file location
Date: 30 Dec 1993 21:47:24 GMT
Organization: Fermi National Accelerator Laboratory, Batavia IL
Lines: 18
Distribution: world
Message-ID: <2fvi9c$jji@fnnews.fnal.gov>
References: <Dec23.204443.94504@yuma.ACNS.ColoState.EDU> <i894ec1w165w@mindvox.phantom.com> <CIuAGC.53q@sneaky.lonestar.org>
NNTP-Posting-Host: dcdmwm.fnal.gov

In article <CIuAGC.53q@sneaky.lonestar.org>, gordon@sneaky.lonestar.org (Gordon Burditt) writes:
|> >> I have ISC UNIX SysV/386 3.2 v3.0.1 running on a Compaq. Given an absolute
|> >> sector number, how do I find what file uses it?

Well, first you need to chase through your disk partitioning, and find
the block number relative to the start of some UNIX partition.  This may
involve looking at fdisk tables, and using whatever VTOC utility
ISC uses (???).

Next have fsdb dump the inodes in that filesystem, and look for the
block number relative to the start of the partition.

Finally have ncheck look up that inode number and give you a
pathname to the file.

The actual commands to do this are left as an exercise to the reader,
last time I did this was on a 3b1 system about 4 years ago... it took about
2 hours.