Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Nov 2004 21:45:38 -0700 (MST)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        cswiger@mac.com
Cc:        freebsd-current@freebsd.org
Subject:   Re: USB Key Disk Boot
Message-ID:  <20041104.214538.34123012.imp@bsdimp.com>
In-Reply-To: <4188D543.3020501@mac.com>
References:  <BDAD4DA0.7BA10%joe@via.net> <4188D543.3020501@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <4188D543.3020501@mac.com>
            Chuck Swiger <cswiger@mac.com> writes:
: joe mcguckin wrote:
: [ ...top-posting recovered... ]
: > Most USB keys don't have a rw/ro switch. Is there a kernel flag you can set
: > to tell FreeBSD that boot device is flash and that writes should be kept to
: > a minimum?
: 
: Look at /etc/fstab, and consider the "ro" & "noatime" options.

You don't need both.  Just one or the other.

: > Can swap space be completely done away with?
: 
: Certainly.  It would be a very good idea to configure the system with more 
: than enough physical RAM, and to take some care selecting the software being 
: run on the system.
: 
: [ If you stick to small, simple C programs like natd, dhcpd, etc, you should 
: be fine.  Try to avoid complex systems and scripting languages like Perl-- for 
: example, trying to do SMTP + SpamAssassin + amavis + antivirus on a Compact 
: Flash-based host would be a bad idea. ]

You can also set sysctl vm.swap_enabled to 0.  This prevents one
warning.  Failure to do so results in no bad effects if you have no
swap partition apart from the warning the first time text working sets
need to be trimmed.

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041104.214538.34123012.imp>