Thursday, January 12, 2012

How To Backup The Hard Disk Partition Table - Import To New Hard Disk

prtvtoc - Print the Volume of Table content
fmthard - Update the Vtoc(Volume Table of Content).
a)prtvtoc /dev/rdsk/c3d0t0s2 > /tmp/c3t0d0.vtoc
b)fmthard -s /tmp/c3t0d0.vtoc /dev/rdsk/c4d1tos2 

We can import the hard disk Directly in single Hard Disk
a)prtvtoc /dev/rdsk/cxtxdxs2 | fmthard -s - /dev/rdsk/cxtxdxs2 

Note - For backup and Restore we have to Mention the Slice 2 


Error Message :
-bash-3.00# fmthard -s /tmp/c0d1s2.vtoc /dev/rdsk/c1d1s2
fmthard: Partition 2 specifies the full disk and is not equal
full size of disk.  The full disk capacity is 16760832 sectors.
fmthard: Partition 2 specified as 16764928 sectors starting at 0
        does not fit. The full disk contains 16760832 sectors.
fmthard:  New volume table of contents now in place

While Update the vtoc if we get any error message even though both Hard Disk are the same disk space. To Resolve that issue. Just create the one partition In the new disk. then try it, it will work perfectly.

0 comments:

Flag counter

free counters