From owner-freebsd-questions@FreeBSD.ORG Sun Apr 9 04:57:00 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 7CE0F16A405 for ; Sun, 9 Apr 2006 04:57:00 +0000 (UTC) (envelope-from dhenin@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id D562A43D48 for ; Sun, 9 Apr 2006 04:56:59 +0000 (GMT) (envelope-from dhenin@gmail.com) Received: by nproxy.gmail.com with SMTP id m18so497201nfc for ; Sat, 08 Apr 2006 21:56:58 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=KsEC8UqHPgcWQ09T+V0E5aUnDop3HQTU9e03Y3HEtCWvdRxdT68UZJz03GBuqf25N9K+DNes1yXkQt3y9PQYVBxh1XK9ETKF5EfKbuq5NYY/jxFikfKUa5FYGU79jnZCfPaeswKhdFld5Dx+aT+P3pdDrGKq+RvI85YD7nOGi14= Received: by 10.49.49.7 with SMTP id b7mr528276nfk; Sat, 08 Apr 2006 21:56:58 -0700 (PDT) Received: by 10.48.216.14 with HTTP; Sat, 8 Apr 2006 21:56:58 -0700 (PDT) Message-ID: <12437d830604082156s39dde8d1y7c59a480be6b0a50@mail.gmail.com> Date: Sun, 9 Apr 2006 04:56:58 +0000 From: "=?ISO-8859-1?Q?Dh=E9nin_Jean-Jacques?=" Sender: dhenin@gmail.com To: freebsd-questions@freebsd.org, freebsd@hyperconx.com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200604061808.26586.list-freebsd-2004@morbius.sent.com> Cc: 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 04:57:00 -0000 I don't see what the trouble. If you want a /tmp directory on a disk, just do : $ cd /foo # the disk you want, may be / $ mkdir /tmp Thats all. 2006/4/9, Wil Hatfield : > Ok I screwed up on one of my machines and forgot to put the /tmp director= y > on its own slice. How can I do this on an existing system? Linux has this > procedure. Anything like it for FreeBSD? > > dd if=3D/dev/zero of=3DtmpMnt bs=3D1024 count=3D100000 > /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 > > 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.o= rg" > -- jjd