DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Installation and Upgrading

NetBSD Installation and Upgrading Have trouble getting NetBSD on your toaster?

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 20th January 2010
mgreen mgreen is offline
New User
 
Join Date: Jan 2010
Posts: 6
Thanked 0 Times in 0 Posts
Unhappy afterboot questions following new installation

Hello
I am well experienced in FreeBSD and Unix but recently did my first NetBSD install. It went like a dream - except for one obscure problem. I found the idea of the "afterboot" manpage very usefull. Everything was explained just fine and worked first time when I followed the instructions - except setting my DomainName server. The instructions state "put an entry in /etc/resolv.conf", ( eg nameserver 192.168.1.99 ). I did this but it didn't work. I racked my brains and wasted several hours reading and trying everything I could find on the web. This took 3 times longer than the install itself. Finally I discovered the problem. Whatever looks at "resolv.conf" will NOT tolerate white space at the start of the line. It doesn't take SPACES or TABS at the start of the line. The "afterboot" instructions however show the example entries as being seemingly in the middle of the line. This error ( of mine) was first noted when I read /var/log/messages after my first boot. It causes the time sync daemon to go wrong - obviously in retrospect it couldn't get a name lookup to contact the clock server but at the time that wasn't clear. Only when I attempted to ping a host outside my network did it become obvious that there was no name lookup working.

The "afterboot" manpage needs (when someone has time) to be augmented with a warning of this gotcha. This seems like a trivial thing and I rather enjoyed the hunt for this problem, but it did stand out as a blot on an otherwise excellent installation procedure.

One other thing surprised me. The install offered to partion the disk automatically, but to my surprise didn't allocate a swap partition, which leads to warnings on boot about "No swap space allocated". I wasn't too annoyed because I had just previously been ranting about PCBSD install, which doesn't let you put your swap on a second disk. The "afterboot" man page should warn you that if you have got this situation you should either partition a swap on your second disk, or create a swap file (or 2) and put an entry in /etc/fstab . It should explain about "swapctl" .

I have three questions about swap.
How much slower is a swap file than a swap partition ?
Does NetBSD stripe swap across multiple swap areas ?
Other Unix often says "always try to have two or more swap areas", whereas NetBSD seems to be suggesting you use the "priority" field which would cause normally the use of only one area even though you may have multiple swap areas.
What is the best advice on this?
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Two PF questions sparker OpenBSD Security 5 9th November 2009 08:01 AM
Some Questions ?? ultranothing OpenBSD Security 6 4th September 2009 04:59 PM
A few questions on OpenBSD? php111 OpenBSD General 24 1st November 2008 09:18 AM
rc.conf questions starbuck FreeBSD General 2 29th July 2008 06:16 PM
Some questions about installation of OpenBSD aleunix OpenBSD Installation and Upgrading 20 15th June 2008 11:57 AM


All times are GMT. The time now is 07:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick