From owner-freebsd-questions@FreeBSD.ORG Wed Jan 21 17:14:50 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 F07121065673 for ; Wed, 21 Jan 2009 17:14:50 +0000 (UTC) (envelope-from cliftonr@lava.net) Received: from outgoing01.lava.net (cake.lava.net [IPv6:2001:1888:0:1:230:48ff:fe5b:3b50]) by mx1.freebsd.org (Postfix) with ESMTP id 6B7E88FC1B for ; Wed, 21 Jan 2009 17:14:50 +0000 (UTC) (envelope-from cliftonr@lava.net) Received: from malasada.lava.net (malasada.lava.net [64.65.64.17]) by outgoing01.lava.net (Postfix) with ESMTP id CF4AED0074; Wed, 21 Jan 2009 07:14:49 -1000 (HST) Received: by malasada.lava.net (Postfix, from userid 102) id 919DB153882; Wed, 21 Jan 2009 07:14:49 -1000 (HST) Date: Wed, 21 Jan 2009 07:14:49 -1000 From: Clifton Royston To: Matias Surdi Message-ID: <20090121171447.GB13963@lava.net> Mail-Followup-To: Matias Surdi , freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Filesystem tunning 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: Wed, 21 Jan 2009 17:14:51 -0000 On Wed, Jan 21, 2009 at 12:01:04PM +0100, Matias Surdi wrote: > Hi, > > Is there any way to avoid the system going to single user mode when a > secondary storage device cannot be mounted?. > > I mean, if all system filesystems are OK, how can set up a device with a > custom mount point so that when it's tried to mount at boot time and > fails doesn't cause the system to be in single user mode? > > I know that if in fstab I set the last parameter to "0" checking will > not be made at boot time, but instead what I want is the check to be > run, correct any automatically correctable error, and continue booting > anyway, despite the result of the check.Later a custom script will check > the filesystem and send a mail, for example. Try this: Set to "noauto" in /etc/fstab, and add a custom script to run at the end of the boot process to check and mount your special device if it's OK, and do whatever additional processing you want if not. -- Clifton -- Clifton Royston -- cliftonr@iandicomputing.com / cliftonr@lava.net President - I and I Computing * http://www.iandicomputing.com/ Custom programming, network design, systems and network consulting services