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