From owner-freebsd-questions@FreeBSD.ORG Wed Sep 15 06:47:40 2010 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 238B21065670 for ; Wed, 15 Sep 2010 06:47:40 +0000 (UTC) (envelope-from remko@elvandar.org) Received: from mailgate.jr-hosting.nl (mailgate.jr-hosting.nl [IPv6:2a01:4f8:63:1281::3]) by mx1.freebsd.org (Postfix) with ESMTP id B06348FC14 for ; Wed, 15 Sep 2010 06:47:39 +0000 (UTC) Received: from websrv01.jr-hosting.nl (mailrelay.jr-hosting.nl [IPv6:2a01:4f8:63:1281::4]) by mailgate.jr-hosting.nl (Postfix) with ESMTPS id 8CE0D1CC63; Wed, 15 Sep 2010 08:47:38 +0200 (CEST) Received: from www by websrv01.jr-hosting.nl with local (Exim 4.72 (FreeBSD)) (envelope-from ) id 1OvlmM-00054c-5x; Wed, 15 Sep 2010 08:47:38 +0200 Received: from 2a01:4f8:120:6000::2 (SquirrelMail authenticated user remko@evilcoder.org) by www.jr-hosting.nl with HTTP; Wed, 15 Sep 2010 08:47:38 +0200 Message-ID: In-Reply-To: <4C906AB2.3030004@rawbw.com> References: <4C906AB2.3030004@rawbw.com> Date: Wed, 15 Sep 2010 08:47:38 +0200 From: "Remko Lodder" To: yuri@rawbw.com User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-questions@freebsd.org Subject: Re: How to prevent system to launch interactive fsck after improper shutdown and reboot? 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, 15 Sep 2010 06:47:40 -0000 >> Almost every time after improper shutdown (poweroff) and reboot I get >> into interactive fsck. >> >> I am being asked whole bunch of questions to which I just have to answer >> Y (what are my other options?) >> >> Why drop user into interactive fsck if there is not much choice anyways? >> Is there a way to set it up the way it doesn't drop into interactive >> mode? Like answer 'Y' to all questions? >> >> Yuri I think this might do your trick: fsck_y_enable="NO" # Set to YES to do fsck -y if the initial preen fails. fsck_y_flags="" # Additional flags for fsck -y The reason for this to get interactively is because this might messup with your filesystem, and you are the one responsible for your filesystem, not us or the autmated system. So in case you want to "play" with that, that's entirely up to you. In addition, I can imagine that companies (been there done it) do not want to fsck -y by default, this because of the mentioned potential corruption and dataloss. Thanks remko p.s. This was found within 5 seconds in /etc/defaults/rc.conf. -- /"\ Best regards, | remko@FreeBSD.org \ / Remko Lodder | remko@EFnet X http://www.evilcoder.org/ | / \ ASCII Ribbon Campaign | Against HTML Mail and News