Directory not removed ... Help!
was-John McMillan
jcm at mtunb.ATT.COM
Fri Jan 6 06:27:39 AEST 1989
In article <287 at heurikon.UUCP> lampman at 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...
More information about the Comp.unix.questions
mailing list