FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > EXT3 Users

 
 
LinkBack Thread Tools
 
Old 10-23-2008, 08:18 AM
Roland Bock
 
Default Undeletable files

Hi,

an e2fsck-run left a few files sprinkled over the file system which seem
to be undeletable. Although the FS is mounted RW, even root does not
seem to be able to delete them.


#: ls -l
total 4888
-rwxrwx--t 1 18416192 21168618 45056 2007-03-08 17:57
00000000_0000_AAM_TUI_002.txt
-r-xr-x-wT 1 2617499625 1426397418 45056 1920-07-13 22:52
00000000_0000_AAM_TUI_007.txt
-rw-rwSrw- 1 51446267 130941264 49152 2006-11-03 07:37
00000000_0000_AAM_TUI_015.txt
-rwxrwxrwt 1 33686018 59768993 49152 1909-11-25 08:49
00000000_0000_AAM_TUI_021.txt
--w----rwt 1 64588982 2634154654 49152 2007-08-14 19:50
00000000_0000_AAM_TUI_034.txt
-r-----r-T 1 66500841 4060231152 49152 2007-09-19 01:13
19991001_0000_AAM_TUI_000.txt
------xrw- 1 2885846505 33621835 4243456 2005-11-10 06:47
20011112_0000_AAM_TUI_000.txt
-r-x--xrwt 1 2214740202 33685997 49152 2004-09-10 00:51
20040116_0000_AAM_TUI_000.txt
---x-w---t 1 18200553 19138330 49152 2022-08-08 13:51
20051109_0000_AAM_TUI_000.txt
--w-rw---x 1 93782446 2533491176 45056 2004-08-22 20:46
20060609_0000_AAM_TUI_000.txt
--wxrw-r-- 1 38929139 26715113 49152 2007-09-29 07:38
20061220_0000_AAM_TUI_000.txt
---xr-xrwx 1 33661673 26673902 49152 2007-03-10 04:59
20061221_0000_AAM_TUI_001.txt
---xrw---t 1 30977769 989954793 49152 2004-09-06 05:47
20070117_0000_AAM_TUI_000.txt
-rw-rw-rwt 1 80150873 3204594410 49152 2006-12-19 14:22
20070308_0000_AAM_TUI_000.txt
--w-r-x--T 1 37617711 58786132 49152 2007-04-07 21:02
20070308_0000_AAM_TUI_002.txt
-rwxr-xrwt 1 3137470985 16843449 49152 2012-03-25 11:06
20070419_0000_AAM_TUI_000.txt
----r-Srwt 1 159806442 268563177 49152 2007-08-07 23:15
20070607_0000_AAM_TUI_000.txt



None of these files can be deleted or modified. None of the user/group
IDs is valid. Root cannot change any of the attributes.


For example:
#: rm 20011112_0000_AAM_TUI_000.txt
rm: cannot remove `20011112_0000_AAM_TUI_000.txt': Operation not permitted

#: chown root:root 20051109_0000_AAM_TUI_000.txt
chown: changing ownership of `20051109_0000_AAM_TUI_000.txt': Operation
not permitted


#: chmod a+w 20061221_0000_AAM_TUI_001.txt
chmod: changing permissions of `20061221_0000_AAM_TUI_001.txt':
Operation not permitted



Any idea of how to get rid of these files? I have about a 100 million
files on that file system. "About" 30.000 are in such a state as
described above. The rest behaves normally (can be modified, deleted, etc).



Thanks in advance,

Roland

_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
 
Old 10-23-2008, 11:30 AM
Justin Piszcz
 
Default Undeletable files

On Thu, 23 Oct 2008, Roland Bock wrote:


Hi,

an e2fsck-run left a few files sprinkled over the file system which seem to
be undeletable. Although the FS is mounted RW, even root does not seem to be
able to delete them.




[ .. ]


For example:
#: rm 20011112_0000_AAM_TUI_000.txt
rm: cannot remove `20011112_0000_AAM_TUI_000.txt': Operation not permitted

#: chown root:root 20051109_0000_AAM_TUI_000.txt
chown: changing ownership of `20051109_0000_AAM_TUI_000.txt': Operation not
permitted


#: chmod a+w 20061221_0000_AAM_TUI_001.txt
chmod: changing permissions of `20061221_0000_AAM_TUI_001.txt': Operation not
permitted



Any idea of how to get rid of these files? I have about a 100 million files
on that file system. "About" 30.000 are in such a state as described above.
The rest behaves normally (can be modified, deleted, etc).


Either the FS is damaged or the files are chattr'd +i, lsattr -l filename.

Are they immutable by chance?

Justin.

_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
 
Old 10-23-2008, 11:51 AM
Roland Bock
 
Default Undeletable files

Justin,

thanks for the hint!

Yes, some of them are immutable, e.g.

00000000_0000_AAM_TUI_007.txt Synchronous_Directory_Updates, Immutable,
No_Atime, Compression_Raw_Access


Others aren't, e.g.

00000000_0000_AAM_TUI_002.txt Secure_Deletion, Append_Only, No_Atime,
Compression_Raw_Access, Top_of_Directory_Hierarchie


Got rid of them by:
chattr -i -a *; rm *


Thanks again,

Roland

Justin Piszcz wrote:



On Thu, 23 Oct 2008, Roland Bock wrote:


Hi,

an e2fsck-run left a few files sprinkled over the file system which
seem to be undeletable. Although the FS is mounted RW, even root does
not seem to be able to delete them.




[ .. ]


For example:
#: rm 20011112_0000_AAM_TUI_000.txt
rm: cannot remove `20011112_0000_AAM_TUI_000.txt': Operation not
permitted


#: chown root:root 20051109_0000_AAM_TUI_000.txt
chown: changing ownership of `20051109_0000_AAM_TUI_000.txt':
Operation not permitted


#: chmod a+w 20061221_0000_AAM_TUI_001.txt
chmod: changing permissions of `20061221_0000_AAM_TUI_001.txt':
Operation not permitted



Any idea of how to get rid of these files? I have about a 100 million
files on that file system. "About" 30.000 are in such a state as
described above. The rest behaves normally (can be modified, deleted,
etc).


Either the FS is damaged or the files are chattr'd +i, lsattr -l filename.

Are they immutable by chance?

Justin.



_______________________________________________
Ext3-users mailing list
Ext3-users@redhat.com
https://www.redhat.com/mailman/listinfo/ext3-users
 

Thread Tools




All times are GMT. The time now is 04:33 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org