deleting a bad directory

Guy Harris guy at rlgvax.UUCP
Sun May 20 04:45:21 AEST 1984


> Guy said that you could just '/etc/unlink' lost+found. It is
> my experience (Unix v7m) that you should FIRST do an unlink on
> lost+found/. Otherwise fsck finds lost+found before it finds
> lost+found/* , re-links lost+found (into the new lost+found),
> and you still have a problem.

That's why the directions 1) said you should do an "ls -lid" on "lost+found"
to get its inumber and 2) said you should tell "fsck" not to reconnect that
inode when it asks - have it clear it instead.  Unlinking "lost+found/."
and then "lost+found" will work (that removes both links to "lost+found",
and UNIX blows away the inode) unless some of the entries in "lost+found"
are directories - especially the unremovable one; in that case, there will
still be links to "lost+found" (as "lost+found/#blahblah/..") and the inode
will hang around.

	Guy Harris
	{seismo,ihnp4,allegra}!rlgvax!guy



More information about the Comp.unix.wizards mailing list