From owner-freebsd-questions Tue Aug 28 23:41:29 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.avatar.com (ns1.avatar.com [199.33.206.1]) by hub.freebsd.org (Postfix) with ESMTP id DBB0237B401 for ; Tue, 28 Aug 2001 23:41:24 -0700 (PDT) (envelope-from kory@avatar.com) Received: from tomcat (tomcat.avatar.com [199.33.206.20]) by ns1.avatar.com (8.12.0.Beta8/8.12.0.Beta8) with SMTP id f7T6cnUM028845; Tue, 28 Aug 2001 23:38:50 -0700 (PDT) From: "Kory Hamzeh" To: "Tony Landells" Cc: Subject: RE: Setting sysctl variables at boot time Date: Tue, 28 Aug 2001 23:41:01 -0700 Message-ID: <009c01c13055$919fb1c0$14ce21c7@avatar.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <200108290228.MAA21431@tungsten.austclear.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal 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 Hi Tony, Putting in /boot/load.conf.local worked! Thanks. Putting in /boot/defaults/loader.conf or /boot/loader.conf does not however. I'm sure there is a very good reason for that. Thanks for your help! Kory > -----Original Message----- > From: owner-freebsd-questions@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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message