Date: Fri, 10 Feb 95 20:07:31 -0500 From: crtb@helix.nih.gov (Chuck Bacon) To: troyc@sandy.merix.com (Troy Curtiss) Cc: questions@FreeBSD.org Subject: Re: Cloning a hard disk/system Message-ID: <9502110107.AA27242@helix.nih.gov>
index | next in thread | raw e-mail
> Any quick idea of how to do this??
How about back to back tar? Assuming the new disk has a filesystem,
and is otherwise empty (say the a partition):
# mount /dev/wd1a /mnt # Gotta put the new disk somewhere!
# cd / # (Assume new disk has a FS and ready)
# foreach f (`echo * | sed 's/mnt//'`)
# tar cf - $f | (cd /mnt; tar xvfp -)
# end
This gets a bit more involved if you have multiple partitions on the
original or the new disk, but can be handled analogously.
> Thanks,
> Troy
I'm sending this back to questions, because I'd like to hear if
there's a big flaw in it somewhere. I've copied some pretty big
directory trees this way, but not entire disks.
Chuck Bacon - crtb@helix.nih.gov
"Good is better than evil 'cause it's nicer". --Li'l Abner
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9502110107.AA27242>
