Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Mar 2001 06:29:14 +0900 (JST)
From:      Hajimu UMEMOTO <ume@mahoroba.org>
To:        david@catwhisker.org
Cc:        current@freebsd.org
Subject:   Re: swap-backed md-based /tmp to replace mfs-based one
Message-ID:  <20010312.062914.92581299.ume@mahoroba.org>
In-Reply-To: <200103112117.f2BLHw561727@bunrab.catwhisker.org>
References:  <200103112117.f2BLHw561727@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> On Sun, 11 Mar 2001 13:17:58 -0800 (PST)
>>>>> David Wolfskill <david@catwhisker.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010312.062914.92581299.ume>