[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    prtvtoc(1M) manual page Table of Contents

Name

prtvtoc - report information about a disk geometry and partitioning

Synopsis

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

Availability

SUNWcsu

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
*

* FirstSectorLast* PartitionTagFlagsSectorCountSectorMount Directory020007632076319/130176320132480208799250008287208287195600208800131760340559/opt6400340560447120787679/usr780078768041040828719/export/home
example#


Codes for TAG are:

NAMENUMBER
UNASSIGNED0
BOOT1
ROOT2
SWAP3
USR4
BACKUP5
VAR7
HOME8

FLAG indicates how the partition is to be mounted.

NAMENUMBER
MOUNTABLE, READ AND WRITE00
NOT MOUNTABLE01
MOUNTABLE, READ ONLY10

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#

See Also

devinfo(1M) , fmthard(1M) , format(1M)

Warnings

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


Table of Contents