This is a CC of a post I sent last night to the redhat-list.
I am forwarding it to the kernel list as I hear others
have had file corruption and this might be of interest....
Also, if anyone has any ideas....
I got a couple of responses including:
1) Backup/restore the partition (in this case /)
2) Try shutdown -F now then do an FSCK again
3) There is something else you can do, but it's rather
radical. Overwrite the entries directly in the
directory table. You would have to write a program
to do it, but it should solve the problem.
Warren Melnick <firstname.lastname@example.org>
4) From Kernel Traffic #107 For 16 Feb, item #3
"I resorted to using debugfs to remove these entries,
and re-running e2fsck". [I may try this tonight!]
Dell PIII 600 with 20G ATAPI, ATAPI DVD, ZIP, CD-R
IDE-SCSI loaded for CD-R, DVD
3COM 3C905 100T NIC
3dfx AGP video
RedHat 7.0 with updates
2.4.0 or 2.4.2 kernel, stock (no custom patches)
Original post follows:
I had some problems with shutting down my RH 7.0 box (2.4.0) and
had to hit the reset button. I then tried booting to 2.4.2 which
I had just installed. However, I got a lot of disk errors and
the sizes on quite a few files were changed to 104.
A second hard reboot and startup of 2.4.0, a single user fsck of
all partitions and reboot seemed to make all well, however a
couple of files are messed up, /bin/hostname and /dev/dsp.
I can't move, delete, or do anything with these files. I tried
chattr, touch, etc. and the only thing I can do is change the
access date with touch.
b--sr-s--t 1 1769209956 1852796526 116, 101 May 29 2023
prwxr-x--T 1 2232483836 2312881283 0 Mar 1 22:41
I recovered /bin by copying /bin/* to /binnew, moving /bin to
/binold, then moving /binnew to /bin. I then recovered
/bin/hostname from the RPM file, but now I can't do anything
I tried chattr, chmod, chgrp, mv, cat, vi, touch, etc.
Does anyone have any ideas. I can live with one messed up file
in /binold, but I can't live with a messed up /dev/dsp. I
really don't want the Microsoft solution (reload)....
Any help would be MOST appreciated!
-- Wade Hampton - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to email@example.com More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/