Correlation of block # to filename

Erik E. Fair fair at dual.UUCP
Wed Jul 4 10:19:15 AEST 1984


What you need to do, Kip, is get the logical block number first.
If all you have is the physical block number, you have to figure out
which filesystem it's part of (i.e. which logical device). Once you
do that you can do this:

	% icheck -b bn# bn# bn# ... /dev/rhp0a
	inode xxxx

	% ncheck -i xxxx /dev/rhp0a
	xxxxx /foo/bar/bletch

Icheck will waltz through the inodes looking for the inodes which claim
your bad block. When you have the inode number (or numbers in the 
unfortunate case of dups), you can get the names which reference those
inodes from ncheck, which waltzes down the directories to this end.
Clear?

	Erik E. Fair	ucbvax!fair	fair at ucb-arpa.ARPA

	dual!fair at Berkeley.ARPA
	{ihnp4,ucbvax,cbosgd,decwrl,amd70,fortune,zehntel}!dual!fair
	Dual Systems Corporation, Berkeley, California



More information about the Comp.unix.wizards mailing list