From owner-freebsd-current Sun Mar 11 13:32:41 2001 Delivered-To: freebsd-current@freebsd.org Received: from light.imasy.or.jp (light.imasy.or.jp [202.227.24.4]) by hub.freebsd.org (Postfix) with ESMTP id 179B437B71A for ; Sun, 11 Mar 2001 13:32:38 -0800 (PST) (envelope-from ume@mahoroba.org) Received: (from uucp@localhost) by light.imasy.or.jp (8.11.3+3.4W/8.11.3/light) with UUCP id f2BLWWM01941; Mon, 12 Mar 2001 06:32:32 +0900 (JST) (envelope-from ume@mahoroba.org) Received: from peace.mahoroba.org (IDENT:J88B5QsaiBU54NpwTTkNQOIR81tefixbaBDHmscnOyq0XkfDEAxo6hJy3Ftl8BsE@peace.mahoroba.org [2001:200:301:0:200:f8ff:fe05:3eae]) by mail.mahoroba.org (8.11.3/8.11.3/chaos) with ESMTP/inet6 id f2BLTEu14669; Mon, 12 Mar 2001 06:29:14 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 12 Mar 2001 06:29:14 +0900 (JST) Message-Id: <20010312.062914.92581299.ume@mahoroba.org> To: david@catwhisker.org Cc: current@freebsd.org Subject: Re: swap-backed md-based /tmp to replace mfs-based one From: Hajimu UMEMOTO In-Reply-To: <200103112117.f2BLHw561727@bunrab.catwhisker.org> References: <200103112117.f2BLHw561727@bunrab.catwhisker.org> X-Mailer: xcite1.38> Mew version 1.95b97 on Emacs 20.7 / Mule 4.0 =?iso-2022-jp?B?KBskQjJWMWMbKEIp?= X-PGP-Public-Key: http://www.imasy.org/~ume/publickey.asc X-PGP-Fingerprint: 6B 0C 53 FC 5D D0 37 91 05 D0 B3 EF 36 9B 6A BC X-URL: http://www.imasy.org/~ume/ X-OS: FreeBSD 5.0-CURRENT Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> On Sun, 11 Mar 2001 13:17:58 -0800 (PST) >>>>> David Wolfskill said: david> Accordingly, I created the following shell script to accomplish a david> similar objective, based upon the above-mentioned example in the david> mdconfig man page. At present, I have it sitting in david> /usr/local/etc/rc.d, which isn't ideal, but I wanted to find out if david> anyone had better approaches for doing this, suggestions for david> improvement, or arguments that what I'm trying to do is misguided and david> shouldn't be done: I wrote following script obtained from manpage: #!/bin/sh mdconfig -a -t swap -s 128M -u 10 disklabel -r -w md10 auto newfs /dev/md10c tunefs -n enable /dev/md10c mount /dev/md10c /tmp chmod 1777 /tmp Then, I put diskless_mount="/etc/rc.mount_tmp" into /etc/rc.conf. -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message