Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 May 1998 23:02:09 -0400
From:      Aaron Jeremias Luz <aaron@csh.rit.edu>
To:        "Keith S.Huff" <kshuff@fast.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: Moving filesystems to another drive
Message-ID:  <19980520230209.03820@homenet>
In-Reply-To: <35630D3B.60AB51D4@ars.ml.org>; from Alex Osokin on Wed, May 20, 1998 at 05:05:00PM %2B0000
References:  <Chameleon.980519210716.kshuff@kshuff.fast.net> <35630D3B.60AB51D4@ars.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980520230209.03820>