* how to fix the file system?
@ Jared
` Hugh Esco
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Jared @ UTC (permalink / raw)
To: Speakup@Braille. Uwo. Ca
Ok, like an idiot i've turned off my linux computer with out doing shutdown.
My friend did this, and got a root prompt after his file system was shown to
be bad. Assuming next time I try to boot into linux next time, and myne is
found to be bad, is there anything like scan disk that can fix it? Note I'm
runing red hat 9, and i don't want to reinstall.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to fix the file system?
how to fix the file system? Jared
@ ` Hugh Esco
` Guy Abandon.
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Hugh Esco @ UTC (permalink / raw)
To: speakup
With my Debian installation I have become accustomed to power brown-outs
here on the mountain. I perform without benefit of a net or a UPS (which
so far has been out of my price range). I find the need to frequently run
fsck -- that is File System Check.
Try man fsck for details. But basically you run it against each partition.
fsck /dev/hda1
fsck /dev/hda2
fsck /dev/hda3
fsck /dev/hda6
Was the routine on my last installation. hda4 was a divvied up into 5 and
6. running fsck on it produced errors. As did running it against
/dev/hda5, which was the swap partition.
This command requires tending, it will ask you if you want to fix the
errors it finds. Running man fsck will reveal the options available,
including one which answers yes to all prompts.
It was useful to keep me going, but could not prevent the frequent brown
outs from taking their toll. That 40gb drive died just a few weeks ago and
the system had to be rebuilt.
-- Hugh
At 01:37 PM 9/28/03 -0400, you wrote:
>Ok, like an idiot i've turned off my linux computer with out doing shutdown.
>My friend did this, and got a root prompt after his file system was shown to
>be bad. Assuming next time I try to boot into linux next time, and myne is
>found to be bad, is there anything like scan disk that can fix it? Note I'm
>runing red hat 9, and i don't want to reinstall.
>
>
>_______________________________________________
>Speakup mailing list
>Speakup@braille.uwo.ca
>http://speech.braille.uwo.ca/mailman/listinfo/speakup
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to fix the file system?
how to fix the file system? Jared
` Hugh Esco
@ ` Guy Abandon.
` Charles Crawford
` Joseph C. Lininger
3 siblings, 0 replies; 8+ messages in thread
From: Guy Abandon. @ UTC (permalink / raw)
To: speakup
If it's corrupt, it will get scanned automatically I think, Slackware
9 here does. Then you do get the opportunity to run fsck which is the
File System ChecK tool. This can take a while and take several passes
to get it right.
Yes, I got caught on this too, can't remember how.
If you get back on long enough to do real backup, a rebuild has its
uses as you never know which bit got corrupt and is there like a time
bomb waiting to blow you away when you do something different to
normal.
Patching any kind of file allocation table is a chancy affair leading
to the loss of a complete or significant part of a file. It takes a
lot less than a whole allocation block out of a binary to wreck it and
make its operation very risky and unpredictable.
I don't know the low level workings of Linux to know if it has
duplicates of allocation tables, even DOS used to though don't know
about the Winglows.
GA!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to fix the file system?
how to fix the file system? Jared
` Hugh Esco
` Guy Abandon.
@ ` Charles Crawford
` Guy Abandon.
` Joseph C. Lininger
3 siblings, 1 reply; 8+ messages in thread
From: Charles Crawford @ UTC (permalink / raw)
To: Speakup@Braille. Uwo. Ca
Shutting down without halt is no big sin. If the power goes out, it's the
same thing. Redhat simply recovers itself. At least that is my
experience.
On Sun, 28 Sep 2003, Jared wrote:
> Ok, like an idiot i've turned off my linux computer with out doing shutdown.
> My friend did this, and got a root prompt after his file system was shown to
> be bad. Assuming next time I try to boot into linux next time, and myne is
> found to be bad, is there anything like scan disk that can fix it? Note I'm
> runing red hat 9, and i don't want to reinstall.
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
-- Charlie Crawford
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to fix the file system?
` Charles Crawford
@ ` Guy Abandon.
0 siblings, 0 replies; 8+ messages in thread
From: Guy Abandon. @ UTC (permalink / raw)
To: speakup
<<Redhat simply recovers itself.>>
Maybe they're not all so good at it though all must be improving.
GA!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to fix the file system?
how to fix the file system? Jared
` (2 preceding siblings ...)
` Charles Crawford
@ ` Joseph C. Lininger
` Steve Holmes
3 siblings, 1 reply; 8+ messages in thread
From: Joseph C. Lininger @ UTC (permalink / raw)
To: speakup
System will most likely run fsck automatically. Actually, if your running
Redhat 9, you've probably got ext3 filesystem which does not need to be
checked after this happens. It will simply recover the journal.
--
Joseph C. Lininger
jbahm@pcdesk.net
----- Original Message -----
From: "Jared" <jared-stofflett@twmi.rr.com>
To: "Speakup@Braille. Uwo. Ca" <speakup@braille.uwo.ca>
Sent: Sunday, September 28, 2003 11:37 AM
Subject: how to fix the file system?
> Ok, like an idiot i've turned off my linux computer with out doing
shutdown.
> My friend did this, and got a root prompt after his file system was shown
to
> be bad. Assuming next time I try to boot into linux next time, and myne is
> found to be bad, is there anything like scan disk that can fix it? Note
I'm
> runing red hat 9, and i don't want to reinstall.
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to fix the file system?
` Joseph C. Lininger
@ ` Steve Holmes
` Joseph C. Lininger
0 siblings, 1 reply; 8+ messages in thread
From: Steve Holmes @ UTC (permalink / raw)
To: speakup
Yes, ext3 makes things much better. However, I had a recent power
failure which caused my system to come back up but I ended up with
some errors during reboot. I had to fight my way through. Most times
though, the journal feature of ext3 saved my butt. I still wonder if
the errors I got weren't specific hard drive problems I might be
having - have to see on that one.
On Mon, Sep 29, 2003 at 12:47:12AM -0600, Joseph C. Lininger wrote:
> System will most likely run fsck automatically. Actually, if your running
> Redhat 9, you've probably got ext3 filesystem which does not need to be
> checked after this happens. It will simply recover the journal.
> --
> Joseph C. Lininger
> jbahm@pcdesk.net
--
HolmesGrown Solutions
The best solutions for the best price!
http://ld.net/?holmesgrown
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to fix the file system?
` Steve Holmes
@ ` Joseph C. Lininger
0 siblings, 0 replies; 8+ messages in thread
From: Joseph C. Lininger @ UTC (permalink / raw)
To: speakup
Well, journaling is not fool proof, but it will usually allow you to recover
with very little difficulty. When fsck runs, it first checks to see if the
filesystem has a journal. If so, it replays it to recover the filesystem.
Then, it checks to seeif a bit has been set in the filesystem which
indicates other errors. If the bit is set, it performs a complete check to
repair any damages.
--
Joseph C. Lininger
jbahm@pcdesk.net
----- Original Message -----
From: "Steve Holmes" <steve@holmesgrown.com>
To: <speakup@braille.uwo.ca>
Sent: Monday, September 29, 2003 6:17 AM
Subject: Re: how to fix the file system?
> Yes, ext3 makes things much better. However, I had a recent power
> failure which caused my system to come back up but I ended up with
> some errors during reboot. I had to fight my way through. Most times
> though, the journal feature of ext3 saved my butt. I still wonder if
> the errors I got weren't specific hard drive problems I might be
> having - have to see on that one.
>
> On Mon, Sep 29, 2003 at 12:47:12AM -0600, Joseph C. Lininger wrote:
> > System will most likely run fsck automatically. Actually, if your
running
> > Redhat 9, you've probably got ext3 filesystem which does not need to be
> > checked after this happens. It will simply recover the journal.
> > --
> > Joseph C. Lininger
> > jbahm@pcdesk.net
>
> --
> HolmesGrown Solutions
> The best solutions for the best price!
> http://ld.net/?holmesgrown
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
how to fix the file system? Jared
` Hugh Esco
` Guy Abandon.
` Charles Crawford
` Guy Abandon.
` Joseph C. Lininger
` Steve Holmes
` Joseph C. Lininger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).