Looking for a graceful way to disable BG fsck ?
Jason Arnaute
non_secure at yahoo.com
Wed Feb 28 05:44:27 UTC 2007
I do not particularly like to do a BG fsck - it takes
forever and the system is near unusable while it goes
... and I don't mind just taking it down for a little
while to get it over with.
However, if I set the system:
background_fsck="no"
Then I have to wait for all mounts to fsck before the
system will even come up on the network in a
multi-user fashion.
So what I am doing now is, if I have to reset a hung
server, I quick race to log in, like an idiot, and
hopefully log in and comment out the filesystems in
fstab before 60 seconds expires and the bg fscks
start.
Because if I miss it, I'm screwed - you can't kill a
BG fsck, and you can't reboot the system while a BG
fsck is going on. So then you have to reset it again,
which is scary because you've got a dirty filesystem,
while being fsck'd, and then you dirty it up some
more.
So one plan is to just leave the non-root filesystems
commented in /etc/fstab all the time, but that's not
nice because if you ever need to legitimately
(gracefully, on purpose) reboot, then they don't come
up. Bleah.
So my question is this:
Is there any nice, elegant way to tell my system:
"If everything is clean, then mount it all up and go.
But if a non-root filesystem is not clean, just skip
it altogether and boot up into multiuser mode and I
will log in and fsck it manually. But under no
circumstances will you BG fsck anything."
Any way to do that ?
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
More information about the freebsd-fs
mailing list