Does anyone know how to remove apparently corrupted files entries? I've got hundreds of files in /lost+found with bogus inodes, for example: br--r--r-- 1 62334 16197 237, 37 May 6 1995 #526307 s-wx-----x 1 65257 255 2530964044 Oct 6 1916 #526309 prwsrwxrw- 1 51879 13066 0 Apr 21 1939 #526318 srwsr--r-x 1 58596 10074 3732091634 May 28 1961 #526323 p-w---Srwt 1 44798 2118 0 Sep 3 2024 #526326 I think these were created after my *gak* Windows 98 partition did something horrible. Or maybe fsck was trying to recover from whatever Win98 did. In any event, rm, chmod, unlink(2) all give "operation not permitted", even though I'm root. Can anyone help me here? Thanks, -Eric Raeburn
On Fri, 7 Jun 2002, eric raeburn wrote:> In any event, rm, chmod, unlink(2) all give "operation not permitted", > even though I'm root.Hi eric! Most likely these files collected some strange attributes while getting corrupted, a "chattr -ASacdistu <file>" should make them deletable; with "lsattr <file>" you can check if they've got any additional attributes set. best regards, Michael Renner
On Fri, Jun 07, 2002 at 10:53:56PM -0700, eric raeburn wrote:> Does anyone know how to remove apparently corrupted files entries? > I've got hundreds of files in /lost+found with bogus inodes, for > example: > > br--r--r-- 1 62334 16197 237, 37 May 6 1995 #526307 > s-wx-----x 1 65257 255 2530964044 Oct 6 1916 #526309 > prwsrwxrw- 1 51879 13066 0 Apr 21 1939 #526318 > srwsr--r-x 1 58596 10074 3732091634 May 28 1961 #526323 > p-w---Srwt 1 44798 2118 0 Sep 3 2024 #526326 > > I think these were created after my *gak* Windows 98 partition did > something horrible. Or maybe fsck was trying to recover from > whatever Win98 did. > > In any event, rm, chmod, unlink(2) all give "operation not permitted", > even though I'm root.chattr -ai * then try again. Cheers, Stephen