Subject: dd raw disk?
To: None <port-i386@netbsd.org>
From: Alex <xela@MIT.EDU>
List: port-i386
Date: 03/07/2002 10:04:20
I know how to copy a disk with a BIOS partition table, one NetBSD
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
boot disk) and the target is fresh from the factory, and dd
the one to the other.

Am I missing something, or is this just not possible with NetBSD?
The Linux guys tell me it's straightforward there, but if I can
avoid running a linux box I'll be happier.

TIA,

---Alex