In general, no. There is a master partition table which occupies the
first sector of the device and which could therefore be copied. However,
this master partition table may link to other "extended" partition tables
which can be anywhere on the drive.
I have not tested this, but I assume something like "dd if=/dev/hda
of=/dev/hdc bs=512 count=1" would work for only the master partition
table, but WOULD BE DANGEROUS.
If you want to automate partitioning, look instead at the "sfdisk" tool.
-- Mike
On Mon, 3 Apr 2000, Rainer Mager wrote:
> Hi all,
>
> Is there an easy way to copy the partition information from one disk to
> another disk that is exactly the same size? I'm guessing a dd on the right
> device might do this but the exact command would be appreciated.
> My goal is to not have to manually fdisk multiple disks before syncing them
> into an existing RAID-1 array.
>
> --Rainer