fdisk disk_name type size |
fdisk defines how the fdisk partitions are set up on an x86 based system, and you can specify fdisk more than once. This is what happens by default with fdisk partitions on x86 based systems:
All fdisk partitions on the disk are preserved unless you specifically delete them with the fdisk keyword (if size is delete or 0). Also, all existing fdisk partitions are deleted when size is all.
A Solaris fdisk partition that contains a root file system is always designated as the active partition on the disk (an x86 based system boots from the active partition by default).
If no fdisk keyword is specified in a profile, the following fdisk keyword is specified during the installation:
fdisk all solaris maxfree
fdisk entries are processed in the order they are listed in the profile.
disk_name - Choose where the fdisk partition will be created or deleted:
cxtydz or cydz - A specific disk, for example, c0t3d0.
rootdisk - The variable that contains the value for the system's root disk, which is determined by the Solaris installation program (described on "How the System's Root Disk Is Determined").
all - All the selected disks.
type - Choose what type of fdisk partition will be created or deleted on the specified disk:
solaris - A Solaris fdisk partition (SUNIXOS fdisk type).
dosprimary - An alias for primary DOS fdisk partitions (not for extended or data DOS fdisk partitions). When deleting fdisk partitions (size is delete), dosprimary is an alias for the DOSHUGE, DOSOS12, and DOSOS16 fdisk types (they are all deleted). When creating an fdisk partition, dosprimary is an alias for the DOSHUGE fdisk partition (a DOSHUGE fdisk partition is created).
DDD - An integer fdisk partition. DDD is an integer number (valid values are 1 through 255).
This value can be specified only if size is delete.
0xHH - A hexadecimal fdisk partition. HH is a hexadecimal number (valid values are 01 through FF).
This value can be specified only if size is delete.
The following table shows the integer and hexadecimal numbers for some of the fdisk types:
fdisk Type |
DDD |
HH |
---|---|---|
DOSOS12 |
1 |
01 |
PCIXOS |
2 |
02 |
DOSOS16 |
4 |
04 |
EXTDOS |
5 |
05 |
DOSHUGE |
6 |
06 |
DOSDATA |
86 |
56 |
OTHEROS |
98 |
62 |
UNIXOS |
99 |
63 |
size - Choose one of the following:
DDD - An fdisk partition of size DDD (in Mbytes) is created on the specified disk. DDD must be an integer number, and the Solaris installation program automatically rounds the number up to the nearest cylinder boundary. If 0 is specified, it is the same as specifying delete.
all - An fdisk partition is created on the entire disk (all existing fdisk partitions will be deleted).
This value can be specified only if type is solaris.
maxfree - An fdisk partition is created in the largest contiguous free space on the specified disk. If an fdisk partition of the specified type already exists on the disk, the existing fdisk partition is used (a new fdisk partition is not created on the disk).
There must be at least one unused fdisk partition on the disk and the disk must have free space or the installation will fail. This value can be specified only if type is solaris or dosprimary.
delete - All fdisk partitions of the specified type are deleted on the specified disk.