Re: USB Key Disk Boot

From: M. Warner Losh <imp_at_bsdimp.com>
Date: Thu, 04 Nov 2004 21:45:38 -0700 (MST)
In message: <4188D543.3020501_at_mac.com>
            Chuck Swiger <cswiger_at_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
Received on Fri Nov 05 2004 - 03:46:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:21 UTC