[nflug] quick partition table mirroring
Cyber Source
peter at thecybersource.com
Fri Sep 5 23:41:36 EDT 2008
Individually I do partitions as such, with say /dev/sda1 mounted on
/mnt/disk and say /dev/sdb1 /mnt/orig with "tar cf - .|cd /mnt/disk &&
tar xf -)" while in the /mnt/orig dir.
Darin Perusich wrote:
>
> Mark Musone wrote:
>> I think sfdisk will give you what you want..specifically, the -d option:
>>
>> -d Dump the partitions of a device in a format useful
>> as input to sfdisk. For example,
>> % sfdisk -d /dev/hda > hda.out
>> % sfdisk /dev/hda < hda.out
>
> That's what I was looking for, thanks! Now if GNU would only build the
> equivalent into parted ;-).
>
More information about the nflug
mailing list