Unix Technical Forum

automatic e2fsck -v -y after power failure

This is a discussion on automatic e2fsck -v -y after power failure within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> OK, sometimes after power failure, Slackware will tell me on boot: ************************************************** ***** *** An error occurred during the ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 07:40 PM
Sasha Borodin
 
Posts: n/a
Default automatic e2fsck -v -y after power failure

OK, sometimes after power failure, Slackware will tell me on boot:

************************************************** *****
*** An error occurred during the file system check. ***
*** You will now be given a chance to log into the ***
*** system in single-user mode to fix the problem. ***
*** Running 'e2fsck -v -y <partition>' might help. ***
************************************************** *****

....and I have to manually log in as root and run that command. I
understand there are probably good reasons for making this a manual
process - I just don't know any...can someone enlighten me? From my
novice perspective, it'd be better to run this command automatically,
so that unattended machines will boot. No?

So if someone doesn't stop me with a reason not to, I was going to
modify rc.S to skip the prompt and sulogin, and just run e2fsck -v -y
itself on all the partitions. Are there pitfalls to doing this? Is
there a better way to make sure unattended machines can come back up
(other than UPS)?

Thank you,

-Sasha Borodin
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2008, 07:40 PM
NeoSadist
 
Posts: n/a
Default Re: automatic e2fsck -v -y after power failure

Sasha Borodin wrote:

> OK, sometimes after power failure, Slackware will tell me on boot:
>
> ************************************************** *****
> *** An error occurred during the file system check. ***
> *** You will now be given a chance to log into the ***
> *** system in single-user mode to fix the problem. ***
> *** Running 'e2fsck -v -y <partition>' might help. ***
> ************************************************** *****
>
> ...and I have to manually log in as root and run that command. I
> understand there are probably good reasons for making this a manual
> process - I just don't know any...can someone enlighten me? From my
> novice perspective, it'd be better to run this command automatically,
> so that unattended machines will boot. No?
>
> So if someone doesn't stop me with a reason not to, I was going to
> modify rc.S to skip the prompt and sulogin, and just run e2fsck -v -y
> itself on all the partitions. Are there pitfalls to doing this? Is
> there a better way to make sure unattended machines can come back up
> (other than UPS)?
>
> Thank you,
>
> -Sasha Borodin


This is found in /etc/rc.d/rc.S script. I suggest you could try putting
that command in there before "sulogin" command as part of the script, and
see if it would work. If it won't (i.e. won't run in the script before
sulogin) it will give an error, but you should still get your login and be
able to log in as root and run the command yourself.

--
Mr. Cole's Axiom:
The sum of the intelligence on the planet is a constant; the
population is growing.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-18-2008, 07:42 PM
Sasha Borodin
 
Posts: n/a
Default Re: automatic e2fsck -v -y after power failure

Thanks for the suggestion. What I'm trying to figure out is if
anyone's tried this before. And if not, why? Is there a reason not
to run e2fsck "forcibly" on all partitions *automatically*, without
human intervention?

Thanks,

-Sasha Borodin

NeoSadist <neosad1st@charter.net> wrote in message news:>
> This is found in /etc/rc.d/rc.S script. I suggest you could try putting
> that command in there before "sulogin" command as part of the script, and
> see if it would work. If it won't (i.e. won't run in the script before
> sulogin) it will give an error, but you should still get your login and be
> able to log in as root and run the command yourself.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:00 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com