From owner-freebsd-current@FreeBSD.ORG Mon Apr 20 10:14:25 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63E55106564A for ; Mon, 20 Apr 2009 10:14:25 +0000 (UTC) (envelope-from victor@bsdes.net) Received: from alf.bsdes.net (244.Red-217-126-240.staticIP.rima-tde.net [217.126.240.244]) by mx1.freebsd.org (Postfix) with ESMTP id 155FA8FC1F for ; Mon, 20 Apr 2009 10:14:24 +0000 (UTC) (envelope-from victor@bsdes.net) Received: by alf.bsdes.net (Postfix, from userid 1001) id 17875119CF8; Mon, 20 Apr 2009 11:55:30 +0200 (CEST) Date: Mon, 20 Apr 2009 11:55:29 +0200 From: Victor Balada Diaz To: =?utf-8?B?S+G7syBBbmgsIEh14buzbmg=?= Message-ID: <20090420095529.GI48454@alf.bsdes.net> References: <20090420164641.1842c264@icy.local> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20090420164641.1842c264@icy.local> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: auto boot into single mode X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 10:14:25 -0000 On Mon, Apr 20, 2009 at 04:46:41PM +0700, Kỳ Anh, Huỳnh wrote: > My question is that whether we can setup FreeBSD so that it can automatically boot into single mode if there's something wrong in hard disk, *OR* at least it will execute fsck automatically/successfully? > > (I often see that after such type of error, FreeBSD cannot fix the hard disk in normal mode. This is quite far from Linux; I rarely boot my Linux machines single mode after electric cut) > Try with fsck_y_enable="YES" in rc.conf. It will run fsck -y if it detects any errors while booting. Regards. -- La prueba más fehaciente de que existe vida inteligente en otros planetas, es que no han intentado contactar con nosotros.