Subject: Re: dd raw disk?
To: Alex <xela@MIT.EDU>
From: Wojciech Puchar <wojtek@chylonia.3miasto.net>
List: port-i386
Date: 03/07/2002 16:53:49
> partition, NetBSD disklabel, etc. using dd. (fdisk the new disk,
> disklabel, newfs, and foreach of the a, e, f, g, and h filesystems,
> dd onto it, then install bootblocks and then run fdisk again
> without actually changing anything but saving changes, lest the
> bios claim there's no partition table).  I suspect I could clone a
> disk that had a dos or linux partitions as well as a netbsd partition
> by dd'ing the netbsd d filesystem, though I haven't tried it.
>
> What I don't see is a way to take two identical disks where the
> source disk has some arbitrary bits on it (say a Mac or HPUX

if you have identical disks

dd if=/dev/rdisk1d of=/dev/rdisk2d bs=64k

with make 1:1 copy of everything