Date: Tue, 27 Feb 2007 21:17:42 -0800 (PST) From: Jason Arnaute <non_secure@yahoo.com> To: freebsd-fs@freebsd.org Subject: Looking for a graceful way to disable BG fsck ? Message-ID: <660490.45660.qm@web51014.mail.yahoo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?660490.45660.qm>