From: Wade Hampton <whampton@staffnet.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: apparent file corruption on 2.4.2
Date: Fri, 02 Mar 2001 15:26:04 -0500 [thread overview]
Message-ID: <3AA001DC.C11B688D@staffnet.com> (raw)
Greetings,
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 <warren.melnick@astata.com>
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!]
System information:
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
/binold/hostname
prwxr-x--T 1 2232483836 2312881283 0 Mar 1 22:41
/dev/dsp
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
with /binold/hostname....
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
next reply other threads:[~2001-03-02 20:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-02 20:26 Wade Hampton [this message]
2001-03-02 21:05 ` apparent file corruption on 2.4.2 Andreas Dilger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3AA001DC.C11B688D@staffnet.com \
--to=whampton@staffnet.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox