Software >> OS >> Unix >> Solaris >> commands >> dd >> How to clone a disk with EFI label


For example:

  1. Clone the disk with an EFI label. For example:

    # dd if=/dev/rdsk/c0t0d0 of=/dev/rdsk/c0t2d0 bs=128k
  2. Pipe the prtvtoc output of the disk to be copied to the fmthard command to create a new label for the cloned disk. For example:

    # prtvtoc /dev/rdsk/c0t0d0 | fmthard -s - /dev/rdsk/c0t2d0