Information Technology Reference
In-Depth Information
Using the format Command to Partition a Disk
The format command can be used to create or modify a partition table. After
selecting a disk, the FORMAT MENU is displayed. From this menu, select
partition to display the PARTITION MENU , as shown in the following listing:
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
Existing partitions can be modified by selecting the partition number (0
through 7) and then entering tag, flags, starting cylinder, and a partition size
in bytes or cylinders. A predefined table can be selected and used.
Alternatively, an existing partition table can be used as a starting point to cre-
ate a custom table. Custom tables can be saved using the SAVE item of the
FORMAT MENU .
Using the prtvtoc Command to Display the VTOC
The prtvtoc command is used to display the VTOC of a physical disk drive.
In addition to displaying the partition table, it also displays the disk geome-
try. The following listing shows the output of the prtvtoc command:
# prtvtoc /dev/dsk/c0t1d0s0
* /dev/dsk/c0t1d0s0 partition map
*
* Dimensions:
* 512 bytes/sector
* 80 sectors/track
* 19 tracks/cylinder
* 1520 sectors/cylinder
* 3500 cylinders
* 2733 accessible cylinders
*
* Flags:
* 1: unmountable
* 10: read-only
*
* Firs Sector Last
* Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 0 4093360 4093359 /
2 5 00 0 4154160 4154159
7 8 00 4093360 60800 4154159 /export/home
#
Search WWH ::




Custom Search