Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ames!husc6!rutgers!att!mtunb!jcm From: jcm@mtunb.ATT.COM (was-John McMillan) Newsgroups: comp.unix.questions Subject: Re: Directory not removed ... Help! Keywords: clri Message-ID: <1354@mtunb.ATT.COM> Date: 5 Jan 89 20:27:39 GMT References: <287@heurikon.UUCP> Reply-To: jcm@mtunb.UUCP (was-John McMillan) Organization: AT&T ISL Middletown NJ USA Lines: 40 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. ... >36487 drwxrwxr-x 3 lampman users 1024 Dec 29 11:54 xx.0 >36487 drwxrwxr-x 3 lampman users 1024 Dec 29 11:54 xx.1 > 7377 drwxrwxr-x 4 lampman users 1024 Dec 29 11:59 yy.0 > 7377 drwxrwxr-x 4 lampman users 1024 Dec 29 11:59 yy.1 > 7377 drwxrwxr-x 4 lampman users 1024 Dec 29 11:59 yy.2 I. I tried E-mailing to you, but was refused. Apologies to other readers. II The following are just suggestions -- your best advice will come from a SUN guru. III In the old, Version-6 days -- circa 10 years ago -- a typical hacker's procedure might have involved: 1) Take your system to Single-User mode; 2) "cd" to "/"; 3) Dismount all your disks and properly shutdown any daemons and unrequired tasks; 4) Use "/etc/clri" to ZERO-out the inodes: clri {RAW-filesystemname} 36487 7377 5) reboot: 5a) -- if the repairs were on ROOTDEV, then force a REBOOT-WITHOUT-SYNC and let FSCK fix it up. 5b) -- otherwise: host the party yourself and control FSCK: fsck {RAW-filesystemname} 5c) -- otherwise: reboot gracefully, and let FSCK fix it up. ************************************************************** ** CAVEAT: READ your manuals until you understand the above.** ** I am providing a suggestion I WOULD PERFORM, but NOT ** ** necessarily one YOU SHOULD PERFORM. ** ************************************************************** Your system should provide a better way, if it's going to allow linked directories (yetch). JC McMillan -- att!mtunb!jcm -- just muttering a PERSONAL opinion...