Date: Mon, 30 Mar 2009 23:14:31 -0700 From: Rudy <crapsh@monkeybrains.net> To: manish jain <invalid.pointer@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: Question about forcing fsck at boottime Message-ID: <49D1B4C7.1000903@monkeybrains.net> In-Reply-To: <49D1B297.8060307@gmail.com> References: <49D1B297.8060307@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 ? man fsck Traditionally, fsck is invoked before the file systems are mounted and all checks are done to completion at that time. If background checking is available, fsck is invoked twice. It is first invoked at the traditional time, before the file systems are mounted, with the -F flag to do check- ing on all the file systems that cannot do background checking. Also, you can set this in /etc/rc.conf fsck_y_enable="YES" if you want to automatically run 'fsck -y' ... handy for remote servers. Oh, and if you use ZFS, there is no such thing as 'fsck'. That file system never needs fsck. :) If you want less fsck headaches on a big disk system, make the large partion (/home ?) ZFS. http://en.wikipedia.org/wiki/Zfs http://wiki.freebsd.org/ZFSQuickStartGuide Rudy
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49D1B4C7.1000903>