How to delete a directory called /.

2007-12-24 20:58:00

=> ls -ialb
total 76
782331 drwxr-xr-x 2 root other 512 Oct 10 11:49 .
782334 -rw-r--r-- 1 root other 0 Oct 10 11:48 .expire
782332 -rw-r--r-- 1 root sys 0 May 10 2000 .helloworld
782336 -rw-r--r-- 1 root other 0 Mar 24 2001 .oracle_new
769911 drwxr-xr-x 2 root other 512 Oct 10 11:49 /.
782350 -rw-r--r-- 1 root other 78 Oct 10 05:14 BBPID
782370 -rw-r--r-- 1 root other 0 Oct 10 11:48
MSG.red.28634
782371 -rw-r--r-- 1 root other 75 Oct 10 2001
MSG.yellow.28634
782355 -rw-r--r-- 1 root other 3787 Oct 10 09:14
PRTDIAG.14341
782356 -rw-r--r-- 1 root other 3787 Oct 10 10:14
PRTDIAG.19796
782351 -rw-r--r-- 1 root other 3787 Oct 10 05:14
PRTDIAG.21933
782357 -rw-r--r-- 1 root other 3787 Oct 10 11:14
PRTDIAG.25377
782352 -rw-r--r-- 1 root other 3787 Oct 10 06:14
PRTDIAG.27524
782353 -rw-r--r-- 1 root other 3787 Oct 10 07:14
PRTDIAG.3226
782354 -rw-r--r-- 1 root other 3787 Oct 10 08:14
PRTDIAG.8753
782335 -rw-r--r-- 1 root other 3 Oct 10 11:48
_var_adm_messages
782337 -rw-r--r-- 1 root other 2 Oct 10 11:49
sstek001.oracle_new
782339 -rw-r--r-- 1 root other 4064 Oct 10 11:14
sstek001.prtdiag
koonzj @ sstek001:/usr/local/bb/bb16d/tmp

How do I remove the directory called /. inode = 769911

If I do a "ls -ialb *"
it looks like the files in this weird subdir have the same inodes as
the real files in the / (root) directory.
I think it might have happened when another SysAdmin was working with some
Sun and Veritas Engineers trying to recover from a
disk-went-bad-during-a-move-to-
-a-new-computer-root problem. I don't know who did what, I just get to
straighten it out.

=> rm -i *
rm of /. is not allowed

Comments

Got something to say?

You must be logged in to post a comment.