about dd copy

By Donald Ford,2014-11-04 15:14
8 views 0
about dd copy

about dd copy 1.Do VTOC table

     prtvtoc /dev/dsk/c0t1d0s2 > /tmp/master.vtoc

    2.Loading the new VTOC on the new raw driveras c0t2d0

     fmthard -s /tmp/master.vtoc /dev/rdsk/c0t2d0s2

    3.using format to verify the VTOC table correct be changed on c0t2d0 4.Do dd copy

     cd usr/bin

    # dd bs=128k if=/dev/dsk/c0t1d0s0 of=/dev/dsk/c0t2d0s0

2008+1 records in

2008+1 records out

    # dd bs=128k if=/dev/dsk/c0t1d0s3 of=/dev/dsk/c0t2d0s3

10247+1 records in

10247+1 records out

    # dd bs=128k if=/dev/dsk/c0t1d0s4 of=/dev/dsk/c0t2d0s4

16399+1 records in

16399+1 records out

    # dd bs=128k if=/dev/dsk/c0t1d0s5 of=/dev/dsk/c0t2d0s5

32783+1 records in

32783+1 records out

    # dd bs=128k if=/dev/dsk/c0t1d0s6 of=/dev/dsk/c0t2d0s6

32783+1 records in

32783+1 records out

Since, copying the s0 from Gold master to Target HDD, the disk name and partition

    table will be copied along. Now the target drive will have disk name as Master drive.

    So, we need to rename the target drive as ST340014A. I.e.

     a. Master Gold Drive w/ ST340016A

     b. Target Drive is now as ST340016A, but it should be ST340014A

    5.Re-label the target HDD as original disk name

    shutdonw the system,Remove the Gold Master HDI as c0t1d0

     Install the new HDD onto the slave of primary IDE channel as c0t1d0 Loading the new

    VTOC on the new raw drive as c0t1d0

fmthard -s /tmp/master.vtoc /dev/rdsk/c0t1d0s2

    fmthard: New volume table of contents now in place.

    6. Loading original diskname into the new Gold Master Disk as c0t2d0

     # format

Searching for disks...done


     0. c0t0d0


     1. c0t1d0


     2. c0t2d0


Specify disk (enter its number): 2

selecting c0t2d0

[disk formatted, no defect list found]


     disk - select a disk

     type - select (define) a disk type

     partition - select (define) a partition table

     current - describe the current disk

     format - format and analyze the disk

     repair - repair a defective sector

     show - translate a disk address

     label - write label to the disk

     analyze - surface analysis

     defect - defect list management

     backup - search for backup labels

     verify - read and display labels

     save - save new disk/partition definitions

     volname - set 8-character volume name

     ! - execute , then return


format> type


     0. ST340014A

     1. ST320011A

     2. ST340016A

     3. other

Specify disk type (enter its number)[2]: 0

selecting c0t2d0

[disk formatted, no defect list found]

format> label

Ready to label disk, continue? Yes


Available drives type can be vary in number position, please select the proper one!

7. Checksum Integrity Verification procedure

#cd usr/bin

    # dd iseek=1 if=/dev/dsk/c0t2d0s0 2> /dev/null | /usr/bin/cksum

2562739075 263208448

    # dd bs=128k if=/dev/dsk/c0t2d0s4 2> /dev/null | /usr/bin/cksum

3309982960 2149539840

    # dd bs=128k if=/dev/dsk/c0t2d0s5 2> /dev/null | /usr/bin/cksum

156790990 4296990720

    # dd bs=128k if=/dev/dsk/c0t2d0s6 2> /dev/null | /usr/bin/cksum

1173205846 4296990720


Since using “iseek=1” to skip the first 512bytes of the s0, this will give

    “Identical checksum #” for all different model/brand drives



     Remove the New Gold Master HDI as c0t2d0

Report this document

For any questions or suggestions please email