Date: Wed, 29 Aug 2001 12:28:51 +1000 From: Tony Landells <ahl@austclear.com.au> To: "Kory Hamzeh" <kory@avatar.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Setting sysctl variables at boot time Message-ID: <200108290228.MAA21431@tungsten.austclear.com.au> In-Reply-To: Message from "Kory Hamzeh" <kory@avatar.com> of "Tue, 28 Aug 2001 18:46:33 MST." <007f01c1302c$6e83a4e0$14ce21c7@avatar.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <ahl@austclear.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108290228.MAA21431>