Trusted Solaris Installation and Configuration

SPARC: How to Create a Disk Configuration File for a SPARC System

A disk configuration file is a file that represents a structure of a disk (for example, bytes/sector, flags, slices). Disk configuration files enable you to use pfinstall from a single workstation to test profiles on different sized disks.

Overview - The procedure to create a disk configuration file for a SPARC workstation involves:

  1. Locate a workstation with a disk that you want to test a profile against.

  2. Log on as a user who can assume the role root.

  3. As root at label admin_low, launch a terminal and determine the device name for the workstation's disk.

  4. Redirect the output of prtvtoc to create the disk configuration file:


    $ prtvtoc /dev/rdsk/device_name > disk_config
    

    In this command,

    /dev/rdsk/device_name

    Is the device name of the workstation's disk. device_name must be in the form cwtxdys2 or cwdys2.


    Note -

    Slice 2 must be specified in device_name.


    disk_config

    Is the disk configuration file name.

  5. Copy the disk configuration file to the JumpStart directory:


    $ cp disk_config jumpstart_dir_path
    

    You have completed creating a disk configuration file.

    The following example creates a disk configuration file, 104_test, on a workstation with a 104-Mbyte disk, whose device name is c0t3d0s2.


    $ prtvtoc /dev/rdsk/c0t3d0s2 > 104_test
    

    In this example, the 104_test file contains the following information:


    # cat 104_test
    
    * /dev/rdsk/c0t3d0s2 partition map
    
    *
    
    * Dimensions:
    
    *     512 bytes/sector
    
    *      35 sectors/track
    
    *       6 tracks/cylinder
    
    *     210 sectors/cylinder
    
    *    1019 cylinders
    
    *     974 accessible cylinders
    
    *
    
    * Flags:
    
    *   1: unmountable
    
    *  10: read-only
    
    *
    
    *                          First     Sector    Last
    
    * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
    
           0      2    00          0     16170     16169
    
           1      3    00      16170     28140     44309
    
           2      5    00          0    204540    204539
    
           6      4    01      44310    160230    204539