Subject: Re: NetBSD on Compact Flash
To: None <current-users@NetBSD.org>
From: David Young <dyoung@pobox.com>
List: current-users
Date: 02/01/2004 00:40:12
--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Tue, Jan 20, 2004 at 11:04:14PM -0500, Jan Schaumann wrote:
> Hello all,
>
> Roberto (roberto at redix dot it) has kindly made available his ``NetBSD
> on Compact Flash'' documentation to me, and I put it online at
> http://www.netbsd.org/~jschauma/netbsd-solidstate.html and
> http://www.netbsd.org/~jschauma/netbsd-solidstate.pdf.
>
> If somebody would like to look over it and suggest a good place where to
> include it in our website, I'd appreciate it.
>
> Thanks!
Incidentally, I use the attached rc script to mount memory filesystems and
copy their contents from disk so that I can run NetBSD off of a CD-ROM
or a read-only CompactFlash. It should be pretty easy (almost trivial)
to use it for making "Live" CD-ROMs.
Should I check the script in?
Dave
--
David Young OJC Technologies
dyoung@ojctech.com Urbana, IL * (217) 278-3933
--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=mountcritmem
#!/bin/sh
#
# $NetBSD$
# $Id: mountcritmem 101 2003-11-08 22:18:51Z dyoung $
#
# PROVIDE: mountcritmem
# REQUIRE: root
# BEFORE: mountcritlocal
#
# Example /etc/fstab
#
# /dev/wd0a / ffs ro 0 0
# swap /tmp mfs rw,nodev,noexec,nosuid,noatime,-s=512k,-i=256 0 0
# swap /var mfs rw,-s=8192k,noatime,-i=256 0 0
# swap /home mfs rw,noatime,-s=128k 0 0
# swap /etc mfs rw,noatime,-s=2048k,-i=256 0 0
[ -d /permanent ] || mkdir /permanent
for d in $critical_filesystems_memory; do
[ -d /permanent/$d ] || mkdir /permanent/$d
mount -t null /$d /permanent/$d
mount /$d
cd /permanent/$d
pax -pe -rw . /$d
cd -
done
--sdtB3X0nJg68CQEu--