From owner-freebsd-current@FreeBSD.ORG Mon Jul 5 21:53:43 2004 Return-Path: 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 B8AF516A4CE for ; Mon, 5 Jul 2004 21:53:43 +0000 (GMT) Received: from smtp-gw-cl-d.dmv.com (smtp-gw-cl-d.dmv.com [216.240.97.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6055C43D41 for ; Mon, 5 Jul 2004 21:53:43 +0000 (GMT) (envelope-from sven@dmv.com) Received: from mail-gw-cl-a.dmv.com (mail-gw-cl-a.dmv.com [216.240.97.38]) i65LrfRv066834; Mon, 5 Jul 2004 17:53:41 -0400 (EDT) (envelope-from sven@dmv.com) Received: from [192.168.1.2] (dogpound.dyndns.org [64.45.134.154]) by mail-gw-cl-a.dmv.com (8.12.9/8.12.9) with ESMTP id i65Lrekg099385; Mon, 5 Jul 2004 17:53:41 -0400 (EDT) (envelope-from sven@dmv.com) Message-ID: <40E9CDE8.4050803@dmv.com> Date: Mon, 05 Jul 2004 17:53:44 -0400 From: Sven Willenberger User-Agent: Mozilla Thunderbird 0.7.1 (Windows/20040626) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Konstantin 'Kosta' Welke" References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.39 cc: freebsd-current@freebsd.org Subject: Re: moving /usr to another partition X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jul 2004 21:53:43 -0000 Konstantin 'Kosta' Welke wrote: > Hi! > > Diskspace is running low, so I'd like to move my /usr to another > disk. I was told that cp -Rv is not a good idea and i should use > dump instead. The problem is: That disk is big and half-full and > I don't want to empty it. Is it possible to let restore work to > a directory instead of a disk? Im not sure after reading the man > page, google doesnt know either and I dont want to find out "the > hard way". So i guessed it couldn't hurt to ask... > > If you have any hints or alternatives, please let me know! > I have done the following in the past: mount [new device] /usr2 cd /usr find . -print | cpio -pdumv /usr2 (perhaps do an fsck at this point) modify /etc/fstab to point to new /usr partition and reboot Sven