Solstice DiskSuite 4.2.1 User's Guide

Working With Disk Drives

If you need to repartition a disk drive, for example, after a disk replacement, you can create a script using the fmthard(1M) command to quickly recreate the VTOC (Volume Table of Contents) information on the disk.

How to Use fmthard(1M)

  1. Use the prtvtoc(1M) command to get a listing of partitioning information for a disk.


    # prtvtoc /dev/rdsk/c2t0d0s0 > /tmp/vtoc
    

    In this example, the information for disk c2t0d0 is redirected to a file on disk.

  2. Create and run a script similar to the following, making use of the fmthard(1M) command.


    for i in 1 2 3 5
    do
    fmthard -s /tmp/vtoc /dev/rdsk/c2t${i}d0s2
    done