On Solaris, you ‘clone’ a drive by doing this:
prtvtoc /dev/rdsk/c?t?d?s2 | fmthard -s - /dev/rdsk/c?t?d?s2
This copies drive A to drive B (partitions, etc) so you can, for example, make a RAID1 set.
I have been unaware of how to do this under Linux until today.
The command is sfdisk, thus:
sfdisk -d /dev/sda | /dev/sdb
See also this for an excellent tutorial on doing RAID-y things.



