Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Feb 95 20:07:31 -0500
From: (Chuck Bacon)
To: (Troy Curtiss)
Subject:   Re:  Cloning a hard disk/system
Message-ID:  <>

Next in thread | Raw E-Mail | Index | Archive | Help
> 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 -
	"Good is better than evil 'cause it's nicer".  --Li'l Abner

Want to link to this message? Use this URL: <>