Strange file system error

Chris Torek chris at mimsy.UUCP
Tue Jul 18 15:11:03 AEST 1989


In article <59505 at linus.UUCP> ccel at community-chest.uucp (CCEL) writes:
>... I discovered one day that I had a directory on my disk that had no
>. or .. files in it. ...  I tried clri to clear the i-node, then next
>time I ran fsck, fsck kindly restored the i-node for me.  fsck also
>gives me an error each time I run it on the entire file system (it
>tells me that the directory has no . or ..), but doesn't do anything
>about it. [system is A/UX]

This indicates a bug in fsck.  Certainly the clri+fsck approach should
have worked.  A manual fsck (that is, without the -p `preen' option)
should complain about the directory and offer to either fix it (by
adding . and .. entries) or remove it.

The other possible way to remove it is to use /etc/unlink (if you have
it; if not, compile a one-line C program

	main() { exit(unlink("/the/bad/directory")); }

and run that).  In any case, complain to Apple.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.questions mailing list