Skip Navigation Links | |
Exit Print View | |
Oracle Solaris 11.1 Administration: Devices and File Systems Oracle Solaris 11.1 Information Library |
1. Managing Removable Media (Tasks)
2. Writing CDs and DVDs (Tasks)
4. Dynamically Configuring Devices (Tasks)
5. Managing USB Devices (Tasks)
6. Using InfiniBand Devices (Overview/Tasks)
9. Administering Disks (Tasks)
SPARC: Setting up Disks (Task Map)
SPARC: Setting Up Disks for ZFS File Systems
SPARC: How to Set Up a Disk for a ZFS Root File System
SPARC: Creating a Disk Slice for a ZFS Root File System
SPARC: How to Create a Disk Slice for a ZFS Root File System
SPARC: How to Install Boot Blocks for a ZFS Root File System
SPARC: How to Set Up a Disk for a ZFS Non-Root File System
x86: Setting Up Disks for ZFS File Systems (Task Map)
x86: Setting Up Disks for ZFS File Systems
x86: How to Set Up a Disk for a ZFS Root File System
x86: Preparing a Disk for a ZFS Root File System
How to Recreate the ZFS Root Pool (EFI (GPT))
x86: How to Create a Disk Slice for a ZFS Root File System (VTOC)
x86: How to Replace a ZFS Root Pool Disk (EFI (GPT))
x86: How to Replace a ZFS Root Pool Disk (VTOC)
x86: How to Install Boot Blocks for a ZFS Root File System
x86: How to Set Up a Disk for a ZFS Non-Root File System
x86: Creating and Changing Solaris fdisk Partitions
x86: Guidelines for Creating an fdisk Partition
x86: How to Create a Solaris fdisk Partition
11. Configuring Storage Devices With COMSTAR (Tasks)
12. Configuring and Managing the Oracle Solaris Internet Storage Name Service (iSNS)
13. The format Utility (Reference)
14. Managing File Systems (Overview)
15. Creating and Mounting File Systems (Tasks)
16. Configuring Additional Swap Space (Tasks)
17. Copying Files and File Systems (Tasks)
Review the following sections for guidelines and examples of creating or changing Solaris fdisk partitions.
Follow these guidelines when you set up one or more fdisk partitions:
The disk can be divided into a maximum of four fdisk partitions. One of partitions must be a Solaris partition.
The Solaris partition must be made the active partition on the disk. The active partition is partition whose operating system will be booted by default at system startup.
Solaris fdisk partitions must begin on cylinder boundaries.
Solaris fdisk partitions must begin at cylinder 1, not cylinder 0, on the first disk because additional boot information, including the master boot record, is written in sector 0.
The Solaris fdisk partition can be the entire disk. Or, you might want to make it smaller to allow room for a DOS partition. You can also make a new fdisk partition on a disk without disturbing existing partitions (if sufficient space is available) to create a new partition.
x86 only - Solaris slices are also called partitions. Certain interfaces might refer to a slice as a partition.
fdisk partitions are supported only on x86 based systems. To avoid confusion, Oracle Solaris documentation tries to distinguish between fdisk partitions and the entities within the Solaris fdisk partition. These entities might be called slices or partitions.
Before You Begin
If you need information about fdisk partitions, see x86: Guidelines for Creating an fdisk Partition.
For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.
# format
A numbered list of disks is displayed.
For more information, see format(1M).
Specify disk (enter its number): disk-number
where disk-number is the number of the disk on which you want to create a Solaris fdisk partition.
format> fdisk
The fdisk menu that is displayed depends upon whether the disk has existing fdisk partitions.
No fdisk table exists. The default partition for the disk is: a 100% "SOLARIS System" partition Type "y" to accept the default partition, otherwise type "n" to edit the partition table. y
Type "y" to accept the default partition, otherwise type "n" to edit the partition table. n Total disk size is 17848 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Specify the active partition 3. Delete a partition 4. Change between Solaris and Solaris2 Partition IDs 5. Edit/View extended partitions 6. Exit (update disk configuration and exit) 7. Cancel (exit without updating disk configuration) Enter Selection:
Enter Selection: 1
Select the partition type to create: 1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other 5=DOS12 6=DOS16 7=DOSEXT 8=DOSBIG 9=DOS16LBA A=x86 Boot B=Diagnostic C=FAT32 D=FAT32LBA E=DOSEXTLBA F=EFI (Protective) G=EFI_SYS 0=Exit?
Specify the percentage of disk to use for this partition (or type "c" to specify the size in cylinders). nn
Should this become the active partition? If yes, it will be activated each time the computer is reset or turned on. Please type "y" or "n". y
The Enter Selection prompt is displayed after the fdisk partition is activated.
See steps 8–10 for instructions on creating an fdisk partition.
Selection: 6
format> label Ready to label disk, continue? yes format>
format> quit
Example 10-2 x86: Creating a Solaris fdisk Partition That Spans the Entire Drive
The following example uses the format utility's fdisk option to create a Solaris fdisk partition that spans the entire drive.
# format Searching for disks...done AVAILABLE DISK SELECTIONS: 0. c8t0d0 <SEAGATE-ST973401LSUN72G-0556 cyl 8921 alt 2 hd 255 sec 63> /pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@0,0 /dev/chassis/SYS/HD0/disk 1. c8t1d0 <SEAGATE-ST973401LSUN72G-0556 cyl 8921 alt 2 hd 255 sec 63> /pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@1,0 /dev/chassis/SYS/HD1/disk 2. c8t2d0 <SEAGATE-ST973401LSUN72G-0556-68.37GB> /pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@2,0 /dev/chassis/SYS/HD2/disk 3. c8t3d0 <SEAGATE-ST973401LSUN72G-0556 cyl 14087 alt 2 hd 24 sec 424> /pci@0,0/pci1022,7458@11/pci1000,3060@4/sd@3,0 /dev/chassis/SYS/HD3/disk Specify disk (enter its number): 3 selecting c8t3d0 [disk formatted] No Solaris fdisk partition found. format> fdisk No fdisk table exists. The default partitioning for your disk is: a 100% "SOLARIS System" partition. Type "y" to accept the default partition, otherwise type "n" to edit the partition table. y format> label Ready to label disk, continue? yes format> quit
The Solaris fdisk partition identifier on x86 systems has been changed from 130 (0x82) to 191 (0xbf). All Oracle Solaris commands, utilities, and drivers have been updated to work with either fdisk identifier. There is no change in fdisk functionality.
A new fdisk menu option enables you to switch back and forth between the new and old identifier. The fdisk identifier can be changed even when the file system that is contained in the partition is mounted.
Two type values in the fdisk menu reflect the old and new identifiers as follows:
Solaris identifies 0x82
Solaris2 identifies 0xbf
For example:
Total disk size is 39890 cylinders Cylinder size is 4032 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === 1 Active x86 Boot 1 6 6 0 2 Solaris2 7 39889 39883 100
SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Specify the active partition 3. Delete a partition 4. Change between Solaris and Solaris2 Partition IDs 5. Exit (update disk configuration and exit) 6. Cancel (exit without updating disk configuration) Enter Selection: 4
For example:
Total disk size is 39890 cylinders Cylinder size is 4032 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === 1 Active x86 Boot 1 6 6 0 2 Solaris 7 39889 39883 100 SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Specify the active partition 3. Delete a partition 4. Change between Solaris and Solaris2 Partition IDs 5. Exit (update disk configuration and exit) 6. Cancel (exit without updating disk configuration) Enter Selection: 4