[nflug] quick partition table mirroring
Cyber Source
peter at thecybersource.com
Sat Sep 6 10:42:04 EDT 2008
Sorry, there would be a parenthesis " ( "required before "cd". Sloppy
syntax can be expected I suppose when replying at close to midnight
after a couple beers ;)
Cyber Source wrote:
> 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 ;-).
>>
> _______________________________________________
> nflug mailing list
> nflug at nflug.org
> http://www.nflug.org/mailman/listinfo/nflug
More information about the nflug
mailing list