From owner-freebsd-questions Thu May 21 08:46:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA27180 for freebsd-questions-outgoing; Thu, 21 May 1998 08:46:38 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ultra1.dreamscape.com (ultra1.dreamscape.com [206.64.128.7]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA27150 for ; Thu, 21 May 1998 08:46:28 -0700 (PDT) (envelope-from aaron@csh.rit.edu) Received: from thud.homenet (ud6.dreamscape.com [207.198.13.103]) by ultra1.dreamscape.com (8.8.5/8.8.4) with ESMTP id LAA06578; Thu, 21 May 1998 11:46:15 -0400 (EDT) Received: (from aaron@localhost) by thud.homenet (8.8.7/8.8.7) id XAA01193; Wed, 20 May 1998 23:02:10 -0400 (EDT) (envelope-from aaron) Message-ID: <19980520230209.03820@homenet> Date: Wed, 20 May 1998 23:02:09 -0400 From: Aaron Jeremias Luz To: "Keith S.Huff" Cc: questions@FreeBSD.ORG Subject: Re: Moving filesystems to another drive References: <35630D3B.60AB51D4@ars.ml.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: <35630D3B.60AB51D4@ars.ml.org>; from Alex Osokin on Wed, May 20, 1998 at 05:05:00PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, May 20, 1998 at 05:05:00PM +0000, Alex Osokin wrote: > I'm was asking here some time ago about the same. > > Finally I got such solution: > Do disklabel and newfs on your new drive (you may type /stand/sysinstall as root then follow your intuition :)) > Then mount your / on new drive to /mnt for example and do > > tar cf - /etc | tar xvpf - -C /mnt > tar cf - /.... | tar xvpf - -C /mnt > > for every dir in your old / except /mnt :) Or you could just use tar -C / -cf - . | tar -C /mnt --exclude mnt/\* -xvpf - after you've mounted all your filesystems at the correct mount points. The --exclude switch is also useful if you don't want to copy over /home, /usr/src, /usr/ports/distfiles, or whatever. Have fun, Aaron To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message