Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!labrea!rutgers!bellcore!faline!thumper!ulysses!andante!alice!debra From: debra@alice.UUCP (Paul De Bra) Newsgroups: comp.unix.questions Subject: Re: Directory not removed ... Help! Message-ID: <8674@alice.UUCP> Date: 5 Jan 89 16:03:46 GMT References: <287@heurikon.UUCP> Reply-To: debra@alice.UUCP () Organization: AT&T, Bell Labs Lines: 19 In article <287@heurikon.UUCP> lampman@heurikon.UUCP (Ray Lampman) writes: >I created a few hard-linked directories on a sun3 work station and, now, >can't find any way to remove them. All of the directories are empty. >... >Even root execution of rm and rmdir fails. Am I missing some obscure >option to rm or rmdir? I've exausted my local resources, I think. Then >again, I may just be blind. I hope not. :-) Thanks in advance, Ray. Fsck never liked hard-linked directories... So you should never create them. Some Unix systems luckily have a program /etc/unlink which should be able to unlink anything that the unlink system call can unlink. (I think you need /etc/link to create these bogus hard links too, anyway, it used to be that way on an old System III system I once used.) Paul. -- ------------------------------------------------------ |debra@research.att.com | uunet!research!debra | ------------------------------------------------------