how to copy vtoc to a new disk?

Oliver Brakmann obrakmann at gmx.net
Wed Feb 2 16:32:53 UTC 2011


On 2011-02-02 03:54, Asif Iqbal wrote:
> How to apply the vtoc of /dev/sda to /dev/sdb ?
> 
> On solaris I do it like this
>    prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2
> 
> I am looking at the man page of sfdisk and but not quite sure the
> exact one liner

sfdisk -d /dev/sda | sfdisk /dev/sdb

HTH,
Oliver





More information about the ubuntu-server mailing list