From owner-freebsd-questions@FreeBSD.ORG Tue Mar 31 10:28:46 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA5541065675 for ; Tue, 31 Mar 2009 10:28:46 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.237]) by mx1.freebsd.org (Postfix) with ESMTP id 2CCF98FC1B for ; Tue, 31 Mar 2009 10:28:45 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: by rv-out-0506.google.com with SMTP id l9so3235938rvb.43 for ; Tue, 31 Mar 2009 03:28:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=ooepn0YsCL0vk+AobBLt67MpCsh0V3zZdZg9pSKwg8Q=; b=QpedN7DTe1Re01U8LoNFHLjP6Rxs1ywDDuy1lZL1c1uziWvgWKsXg+DqPoNb8p+rGA mtJ892XUxyRXCTR+U0ofS5knpltU44oPflDO6SE4l77Z1xkpZI3qERT0GMuVydrSgjUv H0gCFglxnM6cigVYqPOZFI70WQOryDCm/4uCg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=S3Wd8x9mPHUdHEyz+aqSwx4C8GGXM+ECqEkp0vmUrAELH7TnG/U4jWAYJRvcAkBX14 1yMQUf8RMdw5RrOlpcGNuHb7/j3XrJiHjZVvKe6z3bZOwBpEfI3/KT4ZTOKHWdTPPbW4 ysSVX330QcXR++AY97Cicy8kLT+ptRMdOWWh0= Received: by 10.114.94.12 with SMTP id r12mr4261392wab.229.1238495324871; Tue, 31 Mar 2009 03:28:44 -0700 (PDT) Received: from ?192.168.1.3? ([117.196.224.221]) by mx.google.com with ESMTPS id v39sm5532576wah.5.2009.03.31.03.28.40 (version=SSLv3 cipher=RC4-MD5); Tue, 31 Mar 2009 03:28:44 -0700 (PDT) Message-ID: <49D1F0BA.7050209@gmail.com> Date: Tue, 31 Mar 2009 16:00:18 +0530 From: manish jain User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Bruce Cran References: <49D1B297.8060307@gmail.com> <20090331080137.31122795@gluon.draftnet> In-Reply-To: <20090331080137.31122795@gluon.draftnet> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Question about forcing fsck at boottime X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Mar 2009 10:28:47 -0000 Bruce Cran wrote: > On Tue, 31 Mar 2009 11:35:11 +0530 > manish jain wrote: > >> Hi, >> >> I am migrating from Linux and am still learning the basics of >> FreeBSD. One thing that I would to carry over from my Linux days is >> to force an fsck on all filesystems at system startup. On Linux, this >> was simply a matter of editing /etc/rc.sysinit. Things seem a bit >> more complicated in the BSD world. Can somebody please point me in >> the right direction ? >> > > I found this from a post last year: > > echo '/sbin/fsck -y -f' >> /etc/rc.early > Hi Bruce/Everyone else, Thanks for the rc.early tip. BTW, a lot of people who posted replies thought I was not aware that a preen is always executed at startup. When I said I wanted to force an fsck, I meant 'fsck -fy'. As for background checks, they are - in my opinion - a real nightmare. Even though I am just a learner on FreeBSD still, I can assure anyone, putting background_fsck="NO" into your rc.conf is one of the best things you can do. As for the reason why I want to force fsck is that it has now happened 3 timed that, after a clean and proper shutdown - with no foreign filesystems mounted, FreeBSD has complained on system restart (twice on a 5.x distribution I had briefly used and now once on 7.1) that / was not properly unmounted. Having bgfsck enabled is like inviting a dragon to dinner when this happens. -- Thank you and Regards Manish Jain invalid.pointer@gmail.com +91-99830-62246 NB : Laast year I kudn't spell Software Engineer. Now I are won.