From owner-freebsd-questions@FreeBSD.ORG Sun Apr 9 05:26:34 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A683E16A402 for ; Sun, 9 Apr 2006 05:26:34 +0000 (UTC) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (hobbiton.shire.net [166.70.252.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6434E43D45 for ; Sun, 9 Apr 2006 05:26:34 +0000 (GMT) (envelope-from chad@shire.net) Received: from [67.171.127.191] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpa (Exim 4.51) id 1FSSRV-000ElG-PA; Sat, 08 Apr 2006 23:26:33 -0600 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v746.3) X-Priority: 3 (Normal) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "Chad Leigh -- Shire.Net LLC" Date: Sat, 8 Apr 2006 23:26:32 -0600 To: Wil Hatfield X-Mailer: Apple Mail (2.746.3) X-SA-Exim-Connect-IP: 67.171.127.191 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on hobbiton.shire.net); SAEximRunCond expanded to false Cc: freebsd-questions@freebsd.org Subject: Re: Partitioning on existing system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Apr 2006 05:26:34 -0000 On Apr 8, 2006, at 9:57 PM, Wil Hatfield wrote: > Ok I screwed up on one of my machines and forgot to put the /tmp > directory > on its own slice. How can I do this on an existing system? Linux > has this > procedure. Anything like it for FreeBSD? > > dd if=/dev/zero of=tmpMnt bs=1024 count=100000 > /sbin/mke2fs /dev/tmpMnt > cd / > cp -R /tmp /tmp_backup > mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp > chmod 1777 /tmp > cp -R /tmp_backup/* /tmp/ > rm -rf /tmp_backup this appears that you want a file backed image file mounted as your / tmp. This should be easy to do. Read the handbook for file-backed md (4) devices. I don't use them for /tmp but I run them with jails... I have about 60 such image files mounted now for example Read the handbook on md(4) devices and look up mdconfig(8) in the man pages Chad > > Any help is greatly appreciated. > > -- > Wil Hatfield > > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad at shire.net