From owner-freebsd-questions Tue Aug 28 19:28:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.austclear.com.au (ns1.austclear.com.au [192.43.185.68]) by hub.freebsd.org (Postfix) with ESMTP id 1C67837B405 for ; Tue, 28 Aug 2001 19:28:53 -0700 (PDT) (envelope-from ahl@austclear.com.au) Received: from tungsten.austclear.com.au (tungsten.austclear.com.au [192.168.166.65]) by ns1.austclear.com.au (8.11.2/8.11.3) with ESMTP id f7T2Sqv81709; Wed, 29 Aug 2001 12:28:52 +1000 (EST) (envelope-from ahl@austclear.com.au) Received: from tungsten (tungsten [192.168.166.65]) by tungsten.austclear.com.au (8.9.3/8.9.3) with ESMTP id MAA21431; Wed, 29 Aug 2001 12:28:51 +1000 (EST) Message-Id: <200108290228.MAA21431@tungsten.austclear.com.au> X-Mailer: exmh version 2.1.1 10/15/1999 To: "Kory Hamzeh" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Setting sysctl variables at boot time In-Reply-To: Message from "Kory Hamzeh" of "Tue, 28 Aug 2001 18:46:33 MST." <007f01c1302c$6e83a4e0$14ce21c7@avatar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 29 Aug 2001 12:28:51 +1000 From: Tony Landells Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG kory@avatar.com said: > That worked for the vfs.vmiodirenable, which can be enabled at > anytime. However, for the "hw.ata.wc", I get an error for sysctl > saying that it is read-only. According to the FBSD Handbook, it must > be turned on before filesystems are mounted. The file /etc/sysctl.conf > is executed right before you go into multiuser mode, which I think it > too late and that probably why I'm getting that error. > There are some kernel variables that are being set (although they are > commented out) in /boot/defaults/loader.conf. I added my stuff in > there, but like I said, it seems to be ignored. I put the following in /boot/loader.conf.local (which is basically just an extension for /boot/loader.conf): hw.ata.wc="1" and rebooted, and now I have: freddo# sysctl hw.ata.wc hw.ata.wc: 1 So if it doesn't work for you, I'm not sure what to suggest... After that, you get into a long string of /boot/loader.rc, /boot/loader.4th, ... and my Forth programming ability is pretty much non-existent. Tony -- Tony Landells Senior Network Engineer Ph: +61 3 9677 9319 Australian Clearing Services Pty Ltd Fax: +61 3 9677 9355 Level 4, Rialto North Tower 525 Collins Street Melbourne VIC 3000 Australia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message