From owner-freebsd-small Sun Aug 27 8: 6:47 2000 Delivered-To: freebsd-small@freebsd.org Received: from raven.webgroup.ch (webgroup.ch [194.191.122.98]) by hub.freebsd.org (Postfix) with ESMTP id 9094237B423; Sun, 27 Aug 2000 08:06:37 -0700 (PDT) Received: (from uucp@localhost) by raven.webgroup.ch (8.9.3/8.9.2/ast-20000114) with UUCP id RAA02775; Sun, 27 Aug 2000 17:06:03 +0200 (CEST) Received: by marabu.marabu.ch (8.7.5/20000528-ast-8.1) id RAA12041; Sun, 27 Aug 2000 17:04:46 +0200 (CEST) Message-Id: <200008271504.RAA12041@marabu.marabu.ch> MIME-Version: 1.0 (NeXT Mail 3.3 v124.8483.6) Content-Type: text/plain In-Reply-To: <20000826014750.F32393@diskfarm.firehouse.net> X-Nextstep-Mailer: Mail 3.3 (Enhance 2.0b6) Received: by NeXT.Mailer (1.124.8483.6) From: Adrian Steinmann Date: Sun, 27 Aug 2000 17:04:44 +0200 To: Alan Clegg , Greg Lehey , Warner Losh Subject: Re: read only / filesystem Cc: freebsd-questions , freebsd-small@FreeBSD.ORG References: <20000824002732.A45983@dogma.freebsd-uk.eu.org> <20000824101341.D66923@wantadilla.lemis.com> <20000824130404.A51338@dogma.freebsd-uk.eu.org> <20000825111535.F548@wantadilla.lemis.com> <20000824234917.A93373@mammalia.org> <20000826110117.F52219@wantadilla.lemis.com> <20000826014750.F32393@diskfarm.firehouse.net> X-Organization: Steinmann Consulting, Apollostrasse 21, 8032 Zurich X-Phone-Numbers: Switzerland, Tel +41 1 380 30 83 Fax +41 1 380 30 85 Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Lehey said: > Basically, I think our current layout isn't really suited to a > read-only root file system. Somebody should think out a better > approach (and wonder whether the change is worth the effort). Actually, if your not doing net-booting you can misappropriate those hooks to do it surprisingly non-intrusively! I'm using my /etc/rc.readonly script attached below which is invoked by adding/setting these entries in /etc/rc.conf: rootdev=fla0 root_rw_mount=NO diskless_mount=/etc/rc.readonly etc_size=1536 home_size=1024 var_size=32768 sio='cuaa1' ===== start of /etc/rc.readonly ===== # @(#) $Id: rc.readonly,v 1.63 2000/08/20 10:26:02 root Exp $ if [ -f /etc/defaults/rc.conf ]; then . /etc/defaults/rc.conf elif [ -f /etc/rc.conf ]; then . /etc/rc.conf fi echo -n "Making writable mfs filesystems:" mount_mfs -s ${var_size:=65536} -T qp120at dummy /var while [ -e /var/.readonly ]; do sleep 1; done for d in root log run db msgs cron cron/tabs spool spool/mqueue spool/lock \ tmp tmp/vi.recover at at/jobs at/spool do mkdir /var/$d && chmod 755 /var/$d done chmod 755 /var chmod 1777 /var/tmp /var/tmp/vi.recover chown daemon /var/at/jobs /var/at/spool touch /var/run/utmp && chmod 644 /var/run/utmp touch /var/log/wtmp && chmod 664 /var/log/wtmp chown uucp:dialer /var/spool/lock chmod 775 /var/spool/lock { cd /root && tar cBf - . | { cd /var/root && tar xBf -; }; } echo -n " var" cp /dev/MAKEDEV /var/tmp mount_mfs -s 256 -i 512 -T qp120at dummy /dev while [ -f /dev/.readonly ]; do sleep 1; done cp /var/tmp/MAKEDEV /dev && rm -f /var/tmp/MAKEDEV for d in std ${rootdev} ${rootdev}s1h vty12 pty0 ttyd0 ttyd1 cuaa1 $sio do { cd /dev && sh MAKEDEV $d; } done echo -n " dev" for d in etc home do { cd /$d && tar cBf - .; } > /var/tmp/$d.tar eval mount_mfs -s \${${d}_size:=1024} -T qp120at dummy /$d while [ -e /$d/.readonly ]; do sleep 1; done { cd /$d && tar xBf /var/tmp/$d.tar; } rm -f /var/tmp/$d.tar && echo -n " $d" done echo ===== end of /etc/rc.readonly ===== _________________________________________________________________________ Dr. Adrian Steinmann Steinmann Consulting Apollostrasse 21 8032 Zurich Tel +41 1 380 30 83 Fax +41 1 380 30 85 Mailto:ast@marabu.ch To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message From owner-freebsd-small Sat Sep 2 12:12:28 2000 Delivered-To: freebsd-small@freebsd.org Received: from web213.mail.yahoo.com (web213.mail.yahoo.com [128.11.68.113]) by hub.freebsd.org (Postfix) with SMTP id 949A637B422 for ; Sat, 2 Sep 2000 12:12:26 -0700 (PDT) Received: (qmail 20612 invoked by uid 60001); 2 Sep 2000 19:12:26 -0000 Message-ID: <20000902191226.20611.qmail@web213.mail.yahoo.com> Received: from [24.129.74.190] by web213.mail.yahoo.com; Sat, 02 Sep 2000 12:12:26 PDT Date: Sat, 2 Sep 2000 12:12:26 -0700 (PDT) From: bentley rhodes Reply-To: bentley3@mediaone.net Subject: pico To: freebsd-small@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG my real question is, does the router disk have a good firewall protection as the firewall disk? i saw on the picoBSD site...that said there were 3 different versions of the pico bsd? my question is, can i not download all three & put them on a hard drive? its going to be a 486..or must i use only one? pls respond below i'm not on the mailing list yet HodgePodge bentley3@mediaone.net http://www.jacksonville.net/~bentley3/ __________________________________________________ Do You Yahoo!? Yahoo! Mail - Free email you can access from anywhere! http://mail.yahoo.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message