From blocks to files (on a UNIXpc)

Brant Cheikes brant at manta.pha.pa.us
Thu Feb 9 04:20:13 AEST 1989


Given a block number, how can I find out (a) if it's part of a file,
and (b) what file it's part of?

Why might this be useful?  Say you wake up one morning to discover a
bad block error in your unix.log.  If you knew whether the block was
allocated, and what file it was part of, you might be able to avoid
having to reformat the disk.  Though I'm not sure what effect adding a
bad block entry has on the freelist.
-- 
Brant Cheikes
University of Pennsylvania, Department of Computer and Information Science
brant at manta.pha.pa.us, brant at linc.cis.upenn.edu, bpa!manta!brant



More information about the Unix-pc.general mailing list