Re: directory that wont go away..kernel corrupted?

Jan Kara (jack@atrey.karlin.mff.cuni.cz)
Wed, 13 Jan 1999 21:07:11 +0100


> directory called "/" owned by root. Under their is another / directory and
> another and another, etc..
> so I figure, ok, i'll remove the top logs directory with "rm -fr logs"
> and i get the output shown BELOW. (it's a little long)
> Does anybody know how I can get rid of this???
>
> Thanx,
>
> -Tony
>
> rm: logs///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
> ////////////////////: File name too long
> rm: logs///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
> //////////////////: Directory not empty
> [snip]
> rm: logs//////////: Directory not empty
> rm: logs////////: Directory not empty
> rm: logs//////: Directory not empty
> rm: logs////: Directory not empty
> rm: logs//: Directory not empty
> rm: logs: Directory not empty

From this I would guess that / is a directory hardlinked to itself (which
is inevitably prohibited). You can easily check this if you do ls -i logs//.

> [root@cygnus logs]# ls -l
> total 1034
> drwxr-xr-x 31 root root 1024 Jan 5 17:04 /
^^ This seems a bit strange. What does contain a directory
'/'?

But no matter what it is I would reccomend you to run fsck on the disk
because it is surely unwanted state of fs. The other question is how
this can happen. Haven't your computer crashed lastly? Probably Theodore
or Steven will have better idea of what can cause this.

Honza.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/