From owner-freebsd-stable@FreeBSD.ORG Tue Dec 19 12:44:55 2006 Return-Path: X-Original-To: freebsd-stable@FreeBSD.ORG Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0FEF716A412 for ; Tue, 19 Dec 2006 12:44:55 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75E5143CA8 for ; Tue, 19 Dec 2006 12:44:52 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (slghcx@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id kBJCiGBE055639; Tue, 19 Dec 2006 13:44:22 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id kBJCiGf5055638; Tue, 19 Dec 2006 13:44:16 +0100 (CET) (envelope-from olli) Date: Tue, 19 Dec 2006 13:44:16 +0100 (CET) Message-Id: <200612191244.kBJCiGf5055638@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG, Trond.Endrestol@fagskolen.gjovik.no In-Reply-To: <20061217100614.R47398@ramstind.fig.ol.no> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Tue, 19 Dec 2006 13:44:27 +0100 (CET) Cc: Subject: Re: tmpmfs="YES" and going from single user to multi user mode X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-stable@FreeBSD.ORG, Trond.Endrestol@fagskolen.gjovik.no List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Dec 2006 12:44:55 -0000 Trond Endrestøl wrote: > After going to single user mode and back to multi user mode on a > system with tmpmfs="YES" in /etc/rc.conf, I wound up with these > filesystems: > > trond@enterprise:~>df > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 9195750 3179348 5280742 38% / > devfs 1 1 0 100% /dev > /dev/md0 63214 14 58144 0% /tmp > procfs 4 4 0 100% /proc > /dev/md1 63214 20 58138 0% /tmp > > There should either be a shutdown script that unmounts /tmp when > tmpmfs="YES" and /tmp is indeed mounted as a MFS, or the startup > script should check to see if /tmp is already mounted (as a MFS) > before attempting mount the MFS (again). That problem doesn't occur when you mount /tmp via /etc/fstab instead of tmpfs="YES" in /etc/rc.conf. I always prefer to use /etc/fstab for the above reason and others. And entry like the following will do (for a 64 MB /tmp): md /tmp mfs rw,nosuid,async,-s64m 0 0 Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Unix gives you just enough rope to hang yourself -- and then a couple of more feet, just to be sure." -- Eric Allman