atom feed5 messages in org.freebsd.freebsd-questionsRe: Moving filesystems to another drive
FromSent OnAttachments
ksh...@fast.netMay 19, 1998 8:56 pm 
Alex OsokinMay 20, 1998 10:04 am 
Doug WhiteMay 20, 1998 1:43 pm 
Aaron Jeremias LuzMay 20, 1998 8:01 pm 
Randall HopperMay 25, 1998 3:32 pm 
Subject:Re: Moving filesystems to another drive
From:Aaron Jeremias Luz (aar@csh.rit.edu)
Date:May 20, 1998 8:01:48 pm
List:org.freebsd.freebsd-questions

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 majo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message