[ previous ] [ next ] [ threads ]
 From:  Kendrick Vargas <ken at hudat dot com>
 To:  m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall-dev] Re: [m0n0wall] Re: [m0n0wall-dev] SUGGESTION: M0n0wall flashsize and Recommendedmemory
 Date:  Fri, 15 Sep 2006 17:34:21 -0400
Dan Bond wrote:
> Forgive my ignorance, but would FreeBSD run if everything except the
> configuration file was mounted ro? Honest question, because that sound
> very interesting but I can't see quite how that would be possible,
> however you are obviously right, would make turning off totally safe.

Well, I can't imagine it wouldn't run like that. At least I hope it COULD
run like that. I'm only particularly experienced with Linux, but I couldn't
imagine any reason why freebsd couldn't operate in the same fashion. This is
how those Live CD's operate. They don't load the whole of the CD into
memory, they simply mount the filesystem and then create a small ramdisk for
the things that need fast access or that need write access.

There's only a few things on any system that really need to write in order
for the system to run, and they could all be accommodated in a very small
space. Normally this is just the stuff in /var/run (or whatever the m0n0
equivalent is), which tends to be PID's for the running daemons (a few bytes
a piece), and stuff like the dhcpd lease file, etc. In the case of all those
files they'd be pointless after a hard power down anyways.

How many more shell and system debugging tools could you stick on m0n0 if
you partitioned a few meg more of space? Several years ago I could see a CF
card being, well... expensive. It's no longer really the case. Even on
NewEgg, a 512 meg CF is $13 + $5 shipping, which diminishes if you buy more
than 1 piece.