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 27th May 2011
xmorg xmorg is offline
Real Name: Tim Cooper
Fdisk Soldier
 
Join Date: Sep 2010
Location: San Diego
Posts: 56
Default not fsck wheb /something is not properly dismounted?

Hi,

I have a netbook which has from time to time "issues", which makes me have to hard power it down. The video card driver is experimental (xf86-video-intel29) still doesn't have GEM support that I know, and the computer completely locks up if ever i have hw.acpi.lid_switch_state set to anything but NONE. More recently the screen will go blank and not come back without a reboot.

ACER Aspire One (ironically the web cam works with pwc view hehe)

What i'm asking is, if there is any way to turn off the auto background fsck'ing that's done if ever the computer booted up but i had to hard power it down. I would like to be able to manually fsck it, at my convenience. Sometimes I have to quickly get something off it and i don't have time to wait for it to fsck.
Reply With Quote
  #2   (View Single Post)  
Old 27th May 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

FreeBSD's rc(8) man page says, under the SCRIPTS OF INTEREST section:
Quote:
When an automatic reboot is in progress, rc is invoked with the argument
autoboot. One of the scripts run from /etc/rc.d/ is /etc/rc.d/fsck.
This script runs fsck(8) with option -p and -F to ``preen'' all the disks
of minor inconsistencies resulting from the last system shutdown. If
this fails, then checks/repairs of serious inconsistencies caused by
hardware or software failure will be performed in the background at the
end of the booting process. If autoboot is not set, when going from sin-
gle-user to multi-user mode for example, the script does not do anything.
Now that you know what you can edit to prevent fsck from running, I recommend strongly that you DON'T DO IT. If there are filesystem inconsistencies, and you change anything in the filesystem, you risk altering the integrity of the filesystem and losing part or all of it.

Mount inconsistent filesystems read-only, if you must access data quickly and you cannot wait for fsck to complete its work. Writing on them in that state would be a poor operational decision.
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
I failed very badly with fsck guitarscn OpenBSD General 4 9th November 2010 01:19 AM
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
File system not properly dismounted rex FreeBSD General 6 12th September 2008 02:45 PM
Disable manual fsck on startup Malakim FreeBSD General 4 2nd September 2008 05:28 PM


All times are GMT. The time now is 09:33 PM.


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