From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 9 11:04:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 596D737B401 for ; Mon, 9 Jun 2003 11:04:55 -0700 (PDT) Received: from boreas.isi.edu (boreas.isi.edu [128.9.160.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id B186D43FBD for ; Mon, 9 Jun 2003 11:04:54 -0700 (PDT) (envelope-from faber@ISI.EDU) Received: from pun.isi.edu (pun.isi.edu [128.9.160.150]) by boreas.isi.edu (8.11.6p2/8.11.2) with ESMTP id h59I4r104537; Mon, 9 Jun 2003 11:04:53 -0700 (PDT) Received: from pun.isi.edu (localhost [127.0.0.1]) by pun.isi.edu (8.12.9/8.12.9) with ESMTP id h59I4qeA064001; Mon, 9 Jun 2003 11:04:52 -0700 (PDT) (envelope-from faber@pun.isi.edu) Received: (from faber@localhost) by pun.isi.edu (8.12.9/8.12.9/Submit) id h59I4qOV064000; Mon, 9 Jun 2003 11:04:52 -0700 (PDT) Date: Mon, 9 Jun 2003 11:04:52 -0700 From: Ted Faber To: romero3000@romero3000.com Message-ID: <20030609180452.GJ61917@pun.isi.edu> References: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hNG1vEeyG8BCaHbQ" Content-Disposition: inline In-Reply-To: <23893.209.236.210.66.1055178986.squirrel@mail.romero3000.com> User-Agent: Mutt/1.4.1i X-url: http://www.isi.edu/~faber cc: freebsd-hackers@freebsd.org Subject: Re: ramdisk?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2003 18:04:55 -0000 --hNG1vEeyG8BCaHbQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Jun 09, 2003 at 01:16:26PM -0400, romero3000@romero3000.com wrote: > (sorry about cross-posting this question. not sure which list is better) > > I want to to know how to create a ram file system for /var and /tmp so > that i can boot from flash memory and mount those two file systems on > ramfs. I've looked for howto's online but haven't found anything. any > suggestions???? On CURRENT: man vnconfig man vn I mount a swap backed fs (which I what I suspect you want) with: vnconfig -e -s labels -S ${vn_tmp_size} ${vn_tmp_device} && \ disklabel -r -w ${vn_tmp_device} auto && \ newfs /dev/${vn_tmp_device}c > /dev/null && \ mount -o nosuid -o nodev /dev/${vn_tmp_device}c /tmp && \ chmod 1777 /tmp N.B. I don't reserve the blocks on swap, which again is what I think you want. Good luck. --hNG1vEeyG8BCaHbQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+5MxEaUz3f+Zf+XsRAm1NAJ0TgLb8OMuThR2N7dKKkV+SQhmBpwCg3zGt 8yicHRHEJteyrqsV5DuxWsg= =I+vL -----END PGP SIGNATURE----- --hNG1vEeyG8BCaHbQ--