From owner-freebsd-stable@FreeBSD.ORG Sat Mar 4 16:07:10 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70CE416A420 for ; Sat, 4 Mar 2006 16:07:10 +0000 (GMT) (envelope-from tofik@oxygen.az) Received: from mail.alkar.net (mail.alkar.net [195.248.191.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDDDC43D48 for ; Sat, 4 Mar 2006 16:07:09 +0000 (GMT) (envelope-from tofik@oxygen.az) Received: from [213.227.193.75] (HELO [192.168.0.178]) by mail.alkar.net (CommuniGate Pro SMTP 4.3.9) with ESMTP id 453222713; Sat, 04 Mar 2006 18:07:07 +0200 Message-ID: <4409D86F.2000803@oxygen.az> Date: Sat, 04 Mar 2006 18:11:59 +0000 From: Tofik Suleymanov User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: MC References: <28a99ba50602212307g48db9a53m322fba44eb315a17@mail.gmail.com> In-Reply-To: <28a99ba50602212307g48db9a53m322fba44eb315a17@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@freebsd.org Subject: Re: Remote tunefs -n enable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Mar 2006 16:07:10 -0000 MC wrote: > Hello again > > I have another issue on the same box. The bloke who installed FreeBSD 6.0onto > the machine is a linux man. He didn't know about softupdates nor apparently > does > he know yet about option 4 [read only singule user mode] on the bootloader. > > Consequently he hasn't set softupdates on the main '/' partition > > On Freebsd 4.x from ssh2 I used to: > > mount -fr /dev/ad0s1a / > tunefs -n enable /dev/ad0s1a > mount /dev/ad0s1a / > > but attempting this on FreeBSD 6.x immediately locks up the machines when in > multiuser mode. > On a workstaion I then tried to sneak tunefs into the first lines of > /etc/rc. Unfortunately it seems that > '/' is read/write mounted before /etc/rc runs, so the tunefs just makes an > error and the box boots up > again without softupdates. My question then is how to go about getting the > tunefs line in a startup > script, before the disk is mounted read/write and with realtime access only > in multiuser mode by telnet/ssh2. > > Or perhaps there is another means, this being BSD? Hello, this question should go to questions@freebsd.org list i suppose. Anyways, you can solve your problem with sysinstall.Enter sysinstall, choose configure, then label management.You will see the "Toggle softupdates" (or something similar).This should do the trick.