How to Partition a Hard Drive in Solaris |
1) The format utility is used
for partitioning Solaris UFS based file systems. It is an interactive
menu driven utility. |
# format |
2) Be sure you select the right
disk. Disk 1 is chosen here because it is not currently in use. You
CAN'T partition a disk with mounted filesystems. |
Specify disk (enter its number): 1 |
3) You are taken into the format
interactive menu. There are many options available within this menu.
Many, however, are not used on a daily basis. |
FORMAT MENU: |
4) The "partiton" option is
responsible for partitioning a disk. Type "partition" at the format
interactive prompt. |
format> partition
|
5) You are now taken to the
partition interactive menu. Notice the change in the prompt. |
|
6) The "modify" option is used
to partition an entire disk. Type "modify" at the partition prompt. |
partition> modify
|
7) There are two ways to
partition an entire disk. The first is to calculate by hand the
cylinder offsets of each partition. This can lead to overlapping
filesystems which will corrupt data. The "All Free Hog" option enables
partitioning of a disk by size (b, kb, mb, gb) and the utility
calculates the required cylinder offsets. |
Select partitioning base: |
8) Select the "All Free Hog"
option. |
Choose base (enter number) [0]? 1
|
9) The "All Free Hog" utility
will give a printout of the current size of the disk (reported by "Part
2"). Select "yes" to confirm that this is the correct disk. |
Part Tag Flag Cylinders Size Blocks |
10) Since free hog does the math for you based on the sizes you specify, any left over space will be made into partition 6. |
Free Hog partition[6]? 6 |
11) Enter sizes for each partition. If you do not want to use a specific partition, then just press |
Enter size of partition '0' [0b, 0c, 0.00mb, 0.00gb]: 1000mb |
12) Upon completion of the
partitioning, the "All Free Hog" utility will print the new
partitioning scheme. Notice that you were never prompted to fenter a size for partition 6. However, a size has been assigned. This is the "All Free Hog" utility taking all leftover space and placing it on partition 6. |
Part Tag Flag Cylinders Size Blocks |
13) Confirm the current
partitioning scheme by typing "yes". |
Okay to make this the current partition table[yes]? yes |
14) Give the partitioning table
a name. |
Enter table name (remember quotes): "darren"
|
15) Label the disk. This step is
the "point of no return". Up until this step, you can exit out of the
format utility without making any changes to the disk. |
Ready to label disk, continue? y
|
16) Quit out of the partitioning
menu. |
partition> quit
|
17) From within the format menu,
save the partitioning table to a file for later use. Save the label to
the /etc/format.dat system file. |
format> save |
18) Exit it out of the format menu to complete the exercise |
format> quit
|