From owner-freebsd-questions@FreeBSD.ORG Fri Jun 13 08:57:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A95EA37B401 for ; Fri, 13 Jun 2003 08:57:07 -0700 (PDT) Received: from pa-plum1b-166.pit.adelphia.net (pa-plum1b-217.pit.adelphia.net [24.53.161.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7EB643F3F for ; Fri, 13 Jun 2003 08:57:06 -0700 (PDT) (envelope-from wmoran@potentialtech.com) Received: from potentialtech.com (working [172.16.0.95]) h5DFurOg002919; Fri, 13 Jun 2003 11:56:54 -0400 (EDT) (envelope-from wmoran@potentialtech.com) Message-ID: <3EE9F445.2070405@potentialtech.com> Date: Fri, 13 Jun 2003 11:56:53 -0400 From: Bill Moran User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3) Gecko/20030429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: kalts@estpak.ee References: <20030613151832.GA90119@ns2.wananchi.com> <20030613085502.GA3751@kevad.internal> In-Reply-To: <20030613085502.GA3751@kevad.internal> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: FBSD-Q Subject: Re: running tunefs during boot??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jun 2003 15:57:08 -0000 Vallo Kallaste wrote: > On Fri, Jun 13, 2003 at 06:18:32PM +0300, ODHIAMBO Washington > wrote: > >>For some strange reason, I would like to run `tunefs -n disable /` during the >>bootup process, just before the file systems are mounted. >>How can I safely achieve this? > > You cannot access the tunefs binary if the / filesystem is not > mounted. You can use tunefs on the read-only mounted filesystem, for > this purpose check out man rc.early(8) and look into /etc/rc. Keep in mind that you only need to run 'tunefs -n disable /' once and it will stay that way until re-enabled. Why not just reboot to singl-user mode, issue the command while / is mounted read-only and reboot? -- Bill Moran Potential Technologies http://www.potentialtech.com