Path: utzoo!attcan!uunet!mcsun!ukc!icdoc!qmw-cs!liam From: liam@cs.qmw.ac.uk (William Roberts) Newsgroups: comp.unix.aux Subject: Re: Hardlinked directories Message-ID: <2455@sequent.cs.qmw.ac.uk> Date: 2 Jul 90 19:10:51 GMT References: <7979.9006261239@tsuna.cogs.susx.ac.uk> Organization: Computer Science Dept, QMW, University of London, UK. Lines: 28 Tut, tut - you shouldn't do that! That is I presume a SysV hangover since the Berkeley systems respect the file system abstraction and provide actual system calls to manipulate directories. Anyway, find the inode number of a directory containing the one of your links that you'd prefer to be rid of, move everything else out of it and then use /etc/clri to zap that parent directory: move the contents of the linked directory as well if both links are in the same directory, since zapping the parent inode with clri will kill both of them. Then reboot the machine brutally by pulling the plug or pressing the reset button (hmm, might be an idea to sync a few times before doing the clri). Fsck will put things back together and fix the link count on your directory. If the above doesn't work first time, keep attacking things with clri until you either wipe out everything or you solve the problem. Both are probably more fun than using fsdb (see the manual page, it may work for you). -- William Roberts ARPA: liam@cs.qmw.ac.uk Queen Mary & Westfield College UUCP: liam@qmw-cs.UUCP Mile End Road AppleLink: UK0087 LONDON, E1 4NS, UK Tel: 071-975 5250 (Fax: 081-980 6533)