From owner-freebsd-questions@FreeBSD.ORG Sat Jun 14 02:16:47 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 1FC0737B401 for ; Sat, 14 Jun 2003 02:16:47 -0700 (PDT) Received: from MX4.estpak.ee (ld1.estpak.ee [194.126.101.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB25143FB1 for ; Sat, 14 Jun 2003 02:16:45 -0700 (PDT) (envelope-from kalts@estpak.ee) Received: from kevad.internal (80-235-38-37-dsl.mus.estpak.ee [80.235.38.37]) by MX4.estpak.ee (Postfix) with ESMTP id 0C1F31D002D; Sat, 14 Jun 2003 12:16:42 +0300 (EEST) Received: by kevad.internal (Postfix, from userid 1000) id B71D330B5C; Sat, 14 Jun 2003 05:13:23 +0300 (EEST) Date: Sat, 14 Jun 2003 05:13:23 +0300 From: Vallo Kallaste To: Bill Moran Message-ID: <20030614021323.GA1692@kevad.internal> References: <20030613151832.GA90119@ns2.wananchi.com> <20030613085502.GA3751@kevad.internal> <3EE9F445.2070405@potentialtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EE9F445.2070405@potentialtech.com> User-Agent: Mutt/1.5.4i cc: FBSD-Q Subject: Re: running tunefs during boot??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kalts@estpak.ee List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jun 2003 09:16:47 -0000 On Fri, Jun 13, 2003 at 11:56:53AM -0400, Bill Moran 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? You can't if the system is remote, except using serial console. -- Vallo Kallaste