How to kill a dir?

fred smith fredex at fcshome.stoneham.ma.us
Tue Jan 6 00:10:58 UTC 2004


On Mon, Jan 05, 2004 at 09:09:27PM +0100, Felipe Alfaro Solana wrote:
> On Mon, 2004-01-05 at 19:09, WipeOut wrote:
> > I have a dir that I can't seem to delete and is giving strange errors..
> > 
> > [root at dev02 i386]# ls
> > ls: ??*?: Invalid or incomplete multibyte or wide character
> > test
> > [root at dev02 i386]# rm -rf test
> > rm: cannot remove directory `test': Directory not empty
> > [root at dev02 i386]# cd test
> > [root at dev02 test]# ls
> > ls: : No such file or directory
> > 
> > Anyone got any super commands for getting rid of a directory that just 
> > will not go?
> 
> If everything else fails, I recommend using "fsck" to checl the
> filesystem integrity.

If this is on an ext2 or ext3 filesystem, one other possibility might be
that someone has set the "immutable" flag on the directory or its contents.
See the man pages for "chattr" and "lsattr".

Fred

-- 
---- Fred Smith -- fredex at fcshome.stoneham.ma.us -----------------------------
               But God demonstrates his own love for us in this: 
                         While we were still sinners, 
                              Christ died for us.
------------------------------- Romans 5:8 (niv) ------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040105/c082ce72/attachment-0001.sig>


More information about the fedora-list mailing list