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:
Locating a SPARC prtvtoc(1M) workstation with a disk that you want to test a profile against
Using the command to create the disk configuration file
Follow this procedure to create a disk configuration file.
Locate a workstation with a disk that you want to test a profile against.
Log on as a user who can assume the role root.
As root at label admin_low
,
launch a terminal and determine the device name for the workstation's disk.
Redirect the output of prtvtoc to create the disk configuration file:
$ prtvtoc /dev/rdsk/device_name > disk_config |
In this command,
Is the device name of the workstation's disk. device_name must be in the form cwtxdys2 or cwdys2.
Slice 2 must be specified in device_name.
Is the disk configuration file name.
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 |