Xref: utzoo comp.unix.questions:14978 comp.unix.wizards:17317 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!uxc.cso.uiuc.edu!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Strange file system error Message-ID: <18604@mimsy.UUCP> Date: 18 Jul 89 05:11:03 GMT References: <59505@linus.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 22 In article <59505@linus.UUCP> ccel@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@mimsy.umd.edu Path: uunet!mimsy!chris