[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unremovable directory



On Tue, Oct 10, 2006 at 00:19:35 +0200, Tobias Niemann wrote:

[...]

> If I perform as root
> 
> # ls -lad /var/lib/python-support/python2.3/pygtk.pth
> dr-xrwsrwx 2 17996 34912 49152 1970-01-03 07:36
> /var/lib/python-support/python2.3/pygtk.pth
> 
> (weired user, group, permissions, size and date)
> and then
> 
> # rmdir /var/lib/python-support/python2.3/pygtk.pth
> rmdir: /var/lib/python-support/python2.3/pygtk.pth: Operation not permitted
> 
> how's about a chown?
> 
> # chown -R root. /var/lib/python-support/python2.3/pygtk.pth
> chown: changing ownership of
> `/var/lib/python-support/python2.3/pygtk.pth': Operation not permitted

[...]

> I guess you get the idea, I'm not allowed to perform any operation on
> that directory. An "fsck.ext3 -f .." did complete without errors but I
> guess it's a relict of my last crash about two weeks ago (my CPU was the
> reason not the OS). I also wasn't able to delete the directory from
> within knoppix.
> 
> I'm very much clueless, any help is appreciated. How can I get rid of
> the directory?

Is this an ext2/3 filesystem? In that case your problem might be due to
the "immutable" or "undeletable" attribute being set. You can check this
with "lsattr" and change it with "chattr". Both utilities are in the
package "e2fsprogs". I had a similar problem once after a minor
filesystem corruption, so you might also want to check the health of
your hard disk with "smartmontools".

-- 
Regards,
          Florian



Reply to: