Solved

How to bypass manual fsck at startup?

Posted on 2002-03-09
7
1,566 Views
Last Modified: 2008-01-09

Dear Experts,

When electiricty goes off on my linux box, it usually needs manual intervention to run fsck at startup once electricity is back up.

If there is a way, how can I make it boot normally everytime without running fsck manually and requiring the root password to do so?  My problem is that I am not always available when such a thing happens and I would like to linux to start back up as normally as possible in case of electricity outage and restoration so that it provides the necessary routing and Internet connectivity it is supposed to serve.

Many thanks in advance for your help and experience.
0
Comment
Question by:u1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 3

Expert Comment

by:tdaoud
ID: 6854190

One thing you can try is to

touch /etc/fastboot

Having that file there will make it bypass fsck checking at startup.

Tarik
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6854280
if the system goes down unexpected/unattened, the filesystem is corrupted, or as fsck says: dirty.

You need to run fsck, otherwise you will loose data, probably not what you want.

To prewent data loss, I can think of following solutions:
  1. use a journaling filesystem, like ext3, reiserfs, xfs, etc.
  2. run a cron which periodicala (every minute) syncs the disks using the sync command
     (but this will not always prewent fsck)

0
 

Author Comment

by:u1
ID: 6854579

ahoffmann,

ofcourse I don't like to loose data, but soemtimes not interrupting the service is very important.  My linux box is mainly for routing and web server.

I have redhat 7.1 and will be upgrading to redhat 7.2 soon when I get the time.

I have been reading about the new journaling filesystem like ext3.

My question is can you convert an existing ext2 partition to ext3 or you would need to create new ones and copy data from one to another and so forth?
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 3

Accepted Solution

by:
tdaoud earned 200 total points
ID: 6854667

If you'd like to upgrade to redhat 7.2 I suggest that you format a new hard disk with ext3 from scratch, it maybe a good way to upgrade and start using ext3.

Otherwise you can upgrade to redhat 7.2 then you need to create the journal file on each partition/filesystem using the command tune2fs (this can be done on mounted or unmounted filesystems).  Example of the command

tune2fs -j /dec/hdxx

Then you simply need to change the filesystem type in the /etc/fstab file from ext2 to ext3.

The good thing about ext3 is its compatiblity with ext2 and the ability to switch between both types at any time. Even old kernels see ext3 filesystems as ext2 and access it as normal as a simple ext2 filesystem.

Hope this helps

Tarik
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6854887
tdaoud said it all about ext3 :)
0
 
LVL 4

Expert Comment

by:newmang
ID: 6855058
Slightly off-topic but have you considered a small UPS equipped with software to gracefully shut down your system in the event of a power failure?
0
 

Author Comment

by:u1
ID: 6858508

Actually I do have an old UPS that has no serial/software conection to linux.  I was already thinking toward that direction too.  But sometimes (it happened twice) we get electricity problems that even put the UPS out instantly.

I will be using tdaoud's /etc/fastboot suggestion until I upgrade to redhat 7.2 and use ext3.

Thanks for all your suggestions.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Zimbra on Amazon Linux help 7 111
EXCHANGE. LINUX, SYMANTEC MESSAGING GATEWAY 2 50
postfix start error! 9 52
Windows 10 linux VM 16 32
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question