DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th July 2008
Malakim Malakim is offline
Real Name: Markus Svensson
Port Guard
 
Join Date: May 2008
Location: Eslöv, Sweden
Posts: 13
Default Disable manual fsck on startup

Hi!

I have a small media server running FBSD 7.0 running headless in my closet. After a power failure the system would not reboot. When I hooked it up to my monitor and keyboard and started it up it said that there were inconsistencies on the /tmp file system, and that I had to run fsck manually in singel user mode.

Is it possible to make the system start up without this? I don't have any critical data on the system disk, so it really wouldn't be the end of the world if the fs would get screwed. I just don't want to have disconnect the system and bring it to the desk in order to make it boot up after any power failures.

Thanks!

Regards,
Markus Svensson
Reply With Quote
  #2   (View Single Post)  
Old 11th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

From /etc/defaults/rc.conf:

Code:
fsck_y_enable="NO"      # Set to YES to do fsck -y if the initial preen fails.
background_fsck="YES"   # Attempt to run fsck in the background where possible.
background_fsck_delay="60" # Time to wait (seconds) before starting the fsck.
Setting fsck_y_enable in /etc/rc.conf would mean the system would automatically fsck the drive ... There is no way to disable fsck completely at boot without hacking /etc/rc.d/fsck.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 2nd September 2008
mfaridi's Avatar
mfaridi mfaridi is offline
Spam Deminer
 
Join Date: May 2008
Location: Afghanistan
Posts: 320
Default

Quote:
Originally Posted by Carpetsmoker View Post
From /etc/defaults/rc.conf:

Code:
fsck_y_enable="NO"      # Set to YES to do fsck -y if the initial preen fails.
background_fsck="YES"   # Attempt to run fsck in the background where possible.
background_fsck_delay="60" # Time to wait (seconds) before starting the fsck.
Setting fsck_y_enable in /etc/rc.conf would mean the system would automatically fsck the drive ... There is no way to disable fsck completely at boot without hacking /etc/rc.d/fsck.

So when I put fsck_y_enable="YES" in /etc/rc.conf everything is ok ????
Do I need change /etc/defaults/rc.conf ???
Reply With Quote
  #4   (View Single Post)  
Old 2nd September 2008
robbak's Avatar
robbak robbak is offline
Real Name: Robert Backhaus
VPN Cryptographer
 
Join Date: May 2008
Location: North Queensland, Australia
Posts: 366
Default

Yes, that is right. You never edit /etc/defaults/anything. They are defaults. /etc/rc.conf overrides them.

(Yes, I was confused and annoyed to discover in this ubuntu box that the /etc/defaults files are all there are!)

Then, if fsck cannot do a 'preen' (check it's OK, fix minor problems that will not lead to data loss or weirdness), it will do fsck -y, which gives it permission to do anything, including operations that loose data or alter the filesystem, but will yield a logical, if incorrect, filesystem.
__________________
The only dumb question is a question not asked.
The only dumb answer is an answer not given.
Reply With Quote
  #5   (View Single Post)  
Old 2nd September 2008
lvlamb's Avatar
lvlamb lvlamb is offline
Real Name: Louis V. Lambrecht
Spam Deminer
 
Join Date: May 2008
Location: .be
Posts: 221
Default

man fstab

If the sixth field is set to zero, fsck will assume the filesystem does not need to be checked.
All my "alien" file systems are zeros.
__________________
da more I know I know I know nuttin'
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to disable FreeBSD boot loader? Turquoise88 FreeBSD General 2 17th July 2009 03:11 PM
mdmfs and fsck on boot elon FreeBSD General 0 8th December 2008 06:33 PM
fsck reports errors but does not fix them. map7 FreeBSD General 13 2nd December 2008 10:45 PM
Manual install of Mediawiki? cwhitmore FreeBSD Ports and Packages 4 3rd October 2008 06:47 PM
Remove/disable a former system user anomie Guides 6 19th May 2008 12:37 AM


All times are GMT. The time now is 09:04 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick