prtvtoc(1M)                                                        prtvtoc(1M)


NAME
     prtvtoc - print disk volume header information

SYNOPSIS
     /etc/prtvtoc [[-aefhms] [-t fstab]] [rawdiskname]

DESCRIPTION
     prtvtoc prints a summary of the information in the volume header for a
     single disk or all of the local disks attached to a system (see vh(7M)).
     The command is usually used only by the superuser.

     The rawdiskname name should be the raw device filename of a disk volume
     header in the form /dev/rdsk/dks?d?vh.

     Note:  prtvtoc knows about the special file directory naming conventions,
     so the /dev/rdsk prefix can be omitted.

     If no name is given, the information for the root disk is printed.

     In single disk mode, prtvtoc prints information about the disk geometry
     (number of cylinders, heads, and so on), followed by information about
     the partitions.  For each partition, the type is indicated (for example,
     filesystem, raw data, and so on).  Cylinders can be non-integral values,
     as they may not correspond to actual physical values, for some drive
     types.  For filesystem partitions, prtvtoc shows if there is actually a
     filesystem on the partition, and if it is mounted, the mount point is
     shown.  Mount points shown in square brackets indicate the mount point of
     the logical volume the partition belongs to.

     The following options to prtvtoc can be used:

     -s         Print only the partition table, with headings but without the
                comments.

     -h         Print only the partition table, without headings and comments.
                Use this option when the output of the prtvtoc command is
                piped into another command.

     -t fstab   Use the file fstab instead of /etc/fstab.  This option is now
                ignored, as the file /etc/mtab is always used to find mount
                points.

     The following options create summaries from all disk volume headers:

     -a         Show abbreviated partition listings for all disks attached to
                the system.

     -m         List all partitions in use by local filesystems.  The listing
                includes partitions that belong to logical volumes.


     -e         Extended listing.  This combines the -a and -m options as well
                as reporting unallocated (free) partitions, and overlapping
                mounted partitions.

EXAMPLE
     The output below is for a SCSI system (root) disk obtained by invoking
     prtvtoc without parameters.  A change from earlier releases is that we no
     longer treat disk drives as though they were of fixed geometry (most SCSI
     disks no longer have fixed geometry), synthesizing a geometry that made
     the capacity work.  Now they are simply treated as a stream of blocks, so
     there is no longer any information about cylinders and other drive
     geometry, just partition information.

          Printing label for root disk

          * /dev/root (bootfile "/unix")
          *     512 bytes/sector
          Partition  Type  Fs   Start: sec    Size: sec   Mount Directory
           0          efs  yes        4608      4108800
           1          raw          4113408        81408
           8       volhdr                0         4608
          10       volume                0      4194816

     This next output is for a SCSI option disk obtained by invoking prtvtoc
     with drive dks0d2vh as the parameter.

          * /dev/rdsk/dks0d2vh (bootfile "/unix")
          *     512 bytes/sector
          Partition  Type  Fs   Start: sec    Size: sec   Mount Directory
           7          xfs  yes        4560      8684310   /usr/people
           8       volhdr                0         4560
          10       volume                0      8688870


SEE ALSO
     dvhtool(1M), fx(1M), dks(7M), vh(7M).


                                                                        Page 2