From owner-freebsd-questions Fri Feb 10 17:07:46 1995 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id RAA17472 for questions-outgoing; Fri, 10 Feb 1995 17:07:46 -0800 Received: from helix.nih.gov (helix.nih.gov [128.231.2.3]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id RAA17466 for ; Fri, 10 Feb 1995 17:07:45 -0800 Received: by helix.nih.gov (940715.SGI.52/1.35(m-sg-1.0)) id AA27242; Fri, 10 Feb 95 20:07:31 -0500 Date: Fri, 10 Feb 95 20:07:31 -0500 From: crtb@helix.nih.gov (Chuck Bacon) Message-Id: <9502110107.AA27242@helix.nih.gov> To: troyc@sandy.merix.com (Troy Curtiss) Subject: Re: Cloning a hard disk/system Cc: questions@FreeBSD.org Sender: questions-owner@FreeBSD.org Precedence: bulk > 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