Re: [offtopic] undeletable file on corrupted ext2 partion

Joe Fouche (jf@ugcs.caltech.edu)
Fri, 6 Jun 1997 10:23:26 -0700


--AhhlLboLdkugWU4S
Content-Type: text/plain; charset=us-ascii

Peter Rival said:
> > I have a ext2 partion that corrupted due to a hardware fault (since
> > rectified :) - but I am left with a file that has been corrupted so
> > that it looks like a symbolic link.
> >
> > rm returns
> > rm: /bin/red: Operation not permitted
> >
> > when I try to rm the file as root - should this be possible ?
> >
> > e2fsck 1.10 claimed to have repaired the filesystem, and does not report
> > any errors when I force it to run now.
> >
> > I am guessing that this is more of a problem with e2fsck rather than the
> > kernel drivers so sorry for the off topic post.
> >
> > now where did I leave the filesystem editor :(
> >
> > Stephen
>
> I also had the same problems once - my Adaptec 2940U decided to fall on
> its face some time after I left for the night, so I had all sorts of
> text files and directories that suddenly became character-special files.
> I just used debugfs -w and unlink'ed the files. I don't know if that's
> recommended procedure, but it's only a workstation that _really_ needs
> to get re-installed anyway.

Have any of you tried chattr -i ? It could be that the attribute was mistakenly
set when the FS was corrupted...

A long shot, but could be faster than the copy-and-unlink method. :)

-- 
    _ ____  Joe Fouche (jf@ugcs.caltech.edu)  
 ___| |---       Deranged College Student    

--AhhlLboLdkugWU4S Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE----- Version: 2.6.3i

iQB5AwUBM5hHjnJgYOdk+W8JAQEpDgMcD3Zf6Cnb9XJW8GKl0CuDdnANC2AuS4mf MMCbB7s4Fkyla7sKK4bGFDlagU1Bcy18g9H0MYbgzYKRBEKRwMkZB4hQZ68jfaG9 vQzDlK5L/iHrRLPn9kzn4SNW5zJxV5ykMLcnpQ== =wOV5 -----END PGP SIGNATURE-----

--AhhlLboLdkugWU4S--