From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 28 15:36:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9016B1065670 for ; Mon, 28 Jul 2008 15:36:19 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 0C1D78FC21 for ; Mon, 28 Jul 2008 15:36:18 +0000 (UTC) (envelope-from pawel.worach@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so1802073nfh.33 for ; Mon, 28 Jul 2008 08:36:17 -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=pV5a67y8XiCepsCsDYxSiBUotbN0cDrf0XYbtKwR6dA=; b=tJI3BqLKgRIQdYaQgckwMxzzltNf750e6gMV9Q+U7vCT2CMrDOFmePBffmQpUNlFH+ +cbeIbn4+yELkrFMtgQYuUxBQpdkKd74x9sDsBlYHUNBnGhS75+hqrl9h/pBqapI67fG HQ2PP6nCjjUYOvFYWD9Qz9xuYYUawP9Btu928= 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=l4CrocjrUxJ4W2DE8QfR4yjCwd+qIFDE+bB8rMWED64DDG09vZoo/WtJiee0Lju0nQ KlITIpF9EaN4r3LAJOw68w7z9S2yC4kBXuw3ez21ECYTpdh+AF9CxiV+qzom3xYrQlmb EIfTWdY3pZrc3u03F+QJY7Pzm/LLOhWJK7qoo= Received: by 10.210.61.19 with SMTP id j19mr6063517eba.88.1217257806562; Mon, 28 Jul 2008 08:10:06 -0700 (PDT) Received: from ?10.200.17.16? ( [193.183.18.10]) by mx.google.com with ESMTPS id i8sm13360139nfh.20.2008.07.28.08.10.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 28 Jul 2008 08:10:05 -0700 (PDT) Message-ID: <488DE14B.2040103@gmail.com> Date: Mon, 28 Jul 2008 17:10:03 +0200 From: Pawel Worach User-Agent: Thunderbird/3.0a2pre (Windows; 2008072800) MIME-Version: 1.0 To: RW References: <488DB785.3020805@gmail.com> <20080728130057.GA798@eos.sc1.parodius.com> <200807281510.12070.marc.loerner@hob.de> <20080728153204.567bb54c@gumby.homeunix.com.> In-Reply-To: <20080728153204.567bb54c@gumby.homeunix.com.> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: forcefsck on booting stage X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jul 2008 15:36:19 -0000 RW wrote: > On Mon, 28 Jul 2008 15:10:11 +0200 > Marc L__rner wrote: > >> On Monday 28 July 2008 15:00, Jeremy Chadwick wrote: >>> On Mon, Jul 28, 2008 at 04:11:49PM +0400, sam wrote: >>>> Hello, >>>> >>>> How to make 'fsck -f' on booting stage of remote system? >>> I believe by setting background_fsck="no" in /etc/rc.conf? That's >>> the only way I know of, besides booting single user and doing it >>> manually. >> Doesn't this only disable background fsck support? >> By creating file "/forcefsck" you can force an fsck at next reboot, >> because some scripts test for existence. > > That's in linux AFAIK, but it would be fairly straightforward to > modify /etc/rc.d/fsck to get that behaviour though. > > fsck -f is interactive, so you would want to add the -y option to > prevent its hanging waiting for console input. > That is what fsck_y_enable="YES" is for. -- Pawel