[CentOS] C5 : Deleting un-deletable files ?

Sun Sep 14 19:21:15 UTC 2014
Keith Keller <kkeller at wombat.san-francisco.ca.us>

On 2014-09-14, Bill Campbell <centos at celestial.com> wrote:
> On Sun, Sep 14, 2014, Always Learning wrote:
>>The fsck cured the problem.  The problem files were removed by fsck
>>during its recovery/rectification.
> The first thing you should do when you find files or directories
> is use 'lsattr' to check the attributes.

The OP already did that.

> You can use the 'chattr' command to change the attributes with
> something like 'chattr -i /bin/ps' to remove immutable attribute.

The OP tried chattr, and reported that it failed for certain files.
This is why other people suggested an fsck; these are both indicators of
a damaged filesystem.


kkeller at wombat.san-francisco.ca.us