From owner-freebsd-current Sat Jul 6 13:56:16 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A269537B432 for ; Sat, 6 Jul 2002 13:56:04 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DBCA43E42 for ; Sat, 6 Jul 2002 13:56:03 -0700 (PDT) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) by srv1.cosmo-project.de (8.12.3/8.12.3) with ESMTP id g66KtsMa016731 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Sat, 6 Jul 2002 22:55:56 +0200 (CEST) (envelope-from ticso@cicely5.cicely.de) Received: from cicely5.cicely.de (localhost [IPv6:::1]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g66KtsFJ045086 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 6 Jul 2002 22:55:54 +0200 (CEST)?g (envelope-from ticso@cicely5.cicely.de) Received: (from ticso@localhost) by cicely5.cicely.de (8.12.1/8.12.1/Submit) id g66Ktrpo045085; Sat, 6 Jul 2002 22:55:53 +0200 (CEST)?g (envelope-from ticso) Date: Sat, 6 Jul 2002 22:55:52 +0200 From: Bernd Walter To: Chris Hedley Cc: current@FreeBSD.ORG Subject: Re: Possible solution to /tmp on md filesystem Message-ID: <20020706205552.GD23704@cicely5.cicely.de> Reply-To: ticso@cicely.de References: <20020706210223.H698-100000@teabag.cbhnet> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020706210223.H698-100000@teabag.cbhnet> X-Operating-System: FreeBSD cicely5.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jul 06, 2002 at 09:08:39PM +0100, Chris Hedley wrote: > Hi all, > > If anyone's still looking at the /tmp on md stuff, I've thrown together a > workaround/solution based on the "mount_md" idea. Okay, I know that using > a shell-script for a mount program may be seen as a Bad Thing and I'm not > sure I want to broadcast my duff shell-programming for all to see, but > I'll post it if anyone's interested. What I've done is to create a proto > file for disklabel to use based on the intended size of the filesystem as > specified in /etc/fstab which creates a normal multi-partition disc style > "a" partition which skips the first cylinder, newfses it and mounts the > result. Seems to work okay, although since it mucks about with disklabel > then I'd recommend some caution. > > If it turns out to be useful I'm happy to convert it into a rather more > robust C equivalent. This is, of course, based on the assumption that I > haven't entirely missed the point! :) I abused diskless_mount for md filesystems: [351]cicely5> cat /etc/rc.md DEV=`mdconfig -a -t swap -s 1400M` disklabel -r -w ${DEV} auto newfs /dev/${DEV}c tunefs -n enable /dev/${DEV}c mount /dev/${DEV}c /tmp chmod 1777 /tmp DEV=`mdconfig -a -t swap -s 800M` disklabel -r -w ${DEV} auto newfs /dev/${DEV}c tunefs -n enable /dev/${DEV}c mount /dev/${DEV}c /var/run chmod 755 /var/run [352]cicely5> grep rc.md /etc/rc.conf diskless_mount="/etc/rc.md" It's running fine on i386. md currently doesn't work on alpha because of 8k pagesize brokenness. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message