up | Inhaltsverzeichniss | Kommentar

Manual page for prtvtoc(1M)

prtvtoc - report information about a disk geometry and partitioning

SYNOPSIS

prtvtoc [ -fhs ] [ -t vfstab ] [ -m mnttab ] device

DESCRIPTION

The prtvtoc command allows the contents of the VTOC (volume table of contents) to be viewed. The command can be used only by the super-user.

The device name can be the file name of a raw device in the form of /dev/rdsk/c?t?d?s2 or can be the file name of a block device in the form of /dev/dsk/c?t?d?s2.

OPTIONS

The following options are supported:
-f
Report on the disk free space, including the starting block address of the free space, number of blocks, and unused partitions.
-h
Omit the headers from the normal output.
-s
Omit all headers but the column header from the normal output.
-t vfstab
Use vfstab as the list of filesystem defaults, in place of /etc/vfstab.
-m mnttab
Use mnttab as the list of mounted filesystems, in place of /etc/mnttab.

EXAMPLES

The command line entry and system response shown below are for a 424­megabyte hard disk:

example# prtvtoc /dev/rdsk/c0t3d0s2
* /dev/rdsk/c0t3d0s2  partition map
*
* Dimension:
*     512 bytes/sector
*      80 sectors/track
*       9 tracks/cylinder
*     720 sectors/cylinder
*    2500 cylinders
*    1151 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*

* First Sector Last * Partition Tag Flags Sector Count Sector Mount Directory 0 2 00 0 76320 76319 / 1 3 01 76320 132480 208799 2 5 00 0 828720 828719 5 6 00 208800 131760 340559 /opt 6 4 00 340560 447120 787679 /usr 7 8 00 787680 41040 828719 /export/home
example#


Codes for TAG are:

                       NAME         NUMBER
                       UNASSIGNED   0
                       BOOT         1
                       ROOT         2
                       SWAP         3
                       USR          4
                       BACKUP       5
                       VAR          7
                       HOME         8

FLAG indicates how the partition is to be mounted.

               NAME                        NUMBER
               MOUNTABLE, READ AND WRITE   00
               NOT MOUNTABLE               01
               MOUNTABLE, READ ONLY        10

The following example shows output for the -f option for the same disk as above.

example# prtvtoc -f /dev/rdsk/c0t3d0s0
FREE_START=0 FREE_SIZE=0 FREE_COUNT=0 FREE_PART=4
example#

ATTRIBUTES

See attributes.5 for descriptions of the following attributes:

+---------------+-----------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+-----------------+
|Availability   | SUNWcsu         |
+---------------+-----------------+

SEE ALSO

devinfo.1m fmthard.1m format.1m attributes.5

WARNINGS

The mount command does not check the "not mountable" bit.


index | Inhaltsverzeichniss | Kommentar

Created by unroff & hp-tools. © by Hans-Peter Bischof. All Rights Reserved (1997).

Last modified 07/October/97