LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-12-2006, 01:20 PM   #1
taids
Member
 
Registered: Jul 2003
Location: Wales, UK
Distribution: Slackware/Ubuntu/iWhax
Posts: 31

Rep: Reputation: 15
OpenBSD stop automatic boot check if / wasn't unmounted from a crash


This one's been annoying me for a while now, and I've never been able to find the utility to change it, or any sites that show you how...

I've been running OpenBSD on an old machine for quite a while now, and it hosts various file shares and what not, but when I get a powercut (as I do from time to time due to being on a token-based electric meter), while booting back up, there is a warning given about / not being unmounted properly, and then it forces a disk check. With it being an old machine, and having slow hard disks in there, the check takes up to 6 minutes some times, which is quite inconvenient if I need to get back online in a hurry.

So the question is, how does one disable this forced disk check? I remember with moost Linux distros it was done with the tune2fs command (or similar) but OpenBSD doesn't use ext2/3 and the tunefs man page doesn't mention anything about changing boot check options.
 
Old 04-12-2006, 06:55 PM   #2
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
I don't care to test it by forcing my OpenBSD server to crash, but I believe you can easily do it by creating the /fastboot file. OpenBSD 3.8 has this line in /etc/rc:
Code:
if [ -e /fastboot ]; then
        echo "Fast boot: skipping disk checks."
elif [ X"$1" = X"autoboot" ]; then
        echo "Automatic boot in progress: starting file system checks."
        fsck -p
...
So it looks like you should be able to avoid disk checks by doing `sudo touch /fastboot`. But even if boot-up time is critical, is it really worth risking losing your disk contents for? Even if you haven't had any problems with filesystem corruption in the past, that doesn't mean it can't (or won't) happen in the future.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to stop automatic login but no visible option in Yast rm200471 SUSE / openSUSE 7 02-18-2012 02:20 PM
automatic updates check ilnli Slackware 4 01-03-2005 01:10 PM
how to stop automatic system dialing shams Mandriva 0 06-03-2004 10:25 AM
ping -f makes OpenBSD stop working ? markus1982 *BSD 2 05-25-2003 09:05 AM
not cleanly unmounted check forced christyc Linux - General 6 08-24-2002 12:19 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 04:09 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