LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-05-2005, 03:59 PM   #1
curlyroger
LQ Newbie
 
Registered: Jun 2002
Posts: 4

Rep: Reputation: 0
How to make it so fsck doesn't fail?


Hello,

I have some RH7.x systems w/ ext2 filesystems (that cannot be upgraded/changed) that I'd like to hookup to an APC remote power switch so I can reboot them from afar when they crash.

The issue at hand is the fsck. Upon reboot, they go into the fsck and often fail with this:

*** An error occurred during the file system check."
*** Dropping you to a shell; the system will reboot"
*** when you leave the shell."

This forces me into single user mode where I e2fsck everything. The question is how can I modify the startup scripts so that the fsck will complete automatically.

In rc.sysinit, can I change line 264 from:

initlog -c "fsck -T -a $fsckoptions /"

to:

initlog -c "e2fsck -y /"

Is this safe? I just want the fsck to fix all errors regardless and chug through so the box boots up normally. The -a option should do that I thought but doesn't.

Any ideas?

Thanks!

- Roger
 
Old 01-05-2005, 04:23 PM   #2
iZvi
Member
 
Registered: Mar 2004
Location: Valhalla
Distribution: Slackware-current, kernel 2.6.31
Posts: 284

Rep: Reputation: 35
I'm doing it with e2fsck -y -v <partition_name> . I think the -y option should be OK. I didn't have nasty problems with this, but now I understand the advantages of ext3fs, so I'm using it instead of ext2.
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make fail with: gcc-3.4 command not found andy101 Ubuntu 3 11-27-2005 01:45 AM
rs6000 ready to fail...no tape drive and no time to make nim server elsewhere! zepplin611 AIX 11 02-17-2005 03:30 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
make ::fclose() fail jhorvath Programming 10 11-11-2003 05:35 AM
eth0 make modules fail pibevalera Linux - Networking 9 11-28-2001 09:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration