Netscape broke my EXT2FS?

John Fogelvik (b9ace@hotmail.com)
Fri, 11 Sep 1998 09:46:28 PDT


Hi...

I don't really know who to talk too about this, but I think this list is
my best shot...
That piece of crap Netscape ("Best browser, but shitty program") did
something strange to my filesystem (ext2) today!
At leat I think it did?
I am not really a programmer, but read this and see what you think:

I was "out surfing" (I hate that sentence) today around at around 11:00
GMT, all of a sudden I got strange errormessages in my log (which i
"tail -f /var/log/messages" on my X-desk) like:

"Sep 11 11:54:16 john2 kernel: EXT2-fs warning (device 03:01):
ext2_unlink: Deleting nonexitstent file (10462), 0"

That sounded bad, so I shut down everything (gently) and rebooted...

At the next boot I got a scroll of about 40 bad inodes
(Something like "file deleted but inode 10462 not cleared FIXED")
Then "fsck -a" gave up because of an "illegal block device"
and dropped me into a single-user shell to fsck on my own.

So I ran "fsck /dev/hda1"
(I know now I should have done "fsck -v /dev/hda1|tee scan.log" or
something, but who does that every time? Not me...)

It kept nagging about banging strange errormessages at me, a few
examples:
"file /home/john/.netscape/cache/07/cache35E2B2050733547 bad mode (00)"
"file [...] bad mode (087235455)" (random numbers...)
"file [...] illegal character device"
"file [...] illegal block device"
"I_acl_mode is 23958737859 should be 23" (random numbers...)
"I_frag is 348953498 should be 54" (random numbers...)
"Inode 10462 ref count 92374239867 should be 1" (random numbers...)

I had to run this about 7 times before it got clean!

I was in some kind of panic so I did not take any notes of the real
messages (but the included "I_acl_*" "I_frag_*" and so on...).
I am sorry if I missed something vital.

Anyways... When I rebooted (And no I did not "sync", I am of the
impression that is bad...) I had a "/lost+found" filled with files of
all the rainbows colors ("ls -alF --color") and modes that were
outrageous (block devices, character devices, FIFOs, and sockets all in
a mixture of sticky, setuid (owner 84748), setgid (group 345323)).
First of (since all the files that got moved to "/lost+found" was only
cache from netscape) I tried to "rm -rf *" in there and "rm -rf
/lost+found" in the root. FAILURE? "Operation not permitted"?

I later tried debugfs, but I failed that too, it just gor reconnected
again by fsck at the next boot...

Well... Here I am stuck with a bunh of files totaling something like
"-,245,455,134" bytes (Yes, that is a minus!) each file being like 34
GIGABYTES big! (The harddrive is 1.2 Meg large...).
The only thing I can do is move the files and directories around...

I will attach a "ls -alF *" to this letter so you see what I mean...

I don't know, but there seems to some kind of problem here? ;-/
This got to be a really long letter, but well... I have been struggling
with this all day!

Thanks for any help!

##############################################
# This message came from John Fogelvik #
# Stockholm, Sweden #
# e-Mail: b9AcE@HotMail.CoM #
# alt. e-Mail: john_f@linux.nu #
# "I got three blue-screens in Win98-setup!" #
##############################################

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html