'\"! tbl|mmdoc
'\"macro stdmacro
.if n .pH g1a.prtvtoc @(#)prtvtoc	40.9 of 10/10/89
.\" Copyright 1989 AT&T
.nr X
.if \nX=0 .ds x} prtvtoc 1M "Essential Utilities" "\&"
.if \nX=1 .ds x} prtvtoc 1M "Essential Utilities"
.if \nX=2 .ds x} prtvtoc 1M "" "\&"
.if \nX=3 .ds x} prtvtoc "" "" "\&"
.TH \*(x}
.tr ~
.SH NAME
\f4prtvtoc\f1 \- print the VTOC of a block device
.SH SYNOPSIS
\f4/usr/sbin/prtvtoc\f1
\f2device\f1
.SH DESCRIPTION
The
\f4prtvtoc\fP
command allows the contents of the VTOC (volume table of contents) to be
viewed.  The command can be used only by the super-user.
.PP
The
.I device\^
name must be the file name of a raw device in the form of
\f4\/dev\/rdsk\/c?d?s?\^\f1
or \f4\/dev\/rdsk\/c?t?d?s6?\f1.
.PP
.SH EXAMPLE
The command line entry and system response shown below are
for a 72\(hymegabyte hard disk:
.if n .SC 10 6 29
.if t .SC 8 6 29
.sp 1v
.SB
\f4# prtvtoc /dev/rdsk/c1d0s6\f1
.nf
* \f4/dev/rdsk/c1d0s6 partition map
*
* Dimension:
*     512 bytes/sector
*      18 sectors/track
*      11 tracks/cylinder
*     198 sectors/cylinder
*     754 cylinders
*     754 accessible cylinders
*
* Flags:
* ~~1:~unmountable
* ~10:~read-only
*\f1
.TS
tab(:);
l l l l l l l
l l l l l l l
n n n n n n l.
* :::\f4First:Sector:Last
* Partition:Tag:Flags:Sector:Count:Sector:Mount~Directory
0:2:00:19040:23460:42499:/
1:3:01:100:18940:19039
2:4:00:29552:119344:148895:/usr
3:6:00:24552:5000:29551:/stand
6:0:01:0:148896:148895
7:1:01:0:100:99\f1
.TE
.fi
\f4#\f1
.sp 1v
.SE
.bp
Codes for TAG are:
.TS
center;
lf3 | lf3
l | l.
NAME	NUMBER
.sp .5v
=
.sp .5v
\f4UNASSIGNED	0
BOOT	1
ROOT	2
SWAP	3
USR	4
BACKUP	5
STAND	6\f1
.TE
.PP
FLAG indicates how the partition is to be mounted.
.TS
center;
lf3 | lf3
l | l.
NAME	NUMBER
.sp .5v
=
.sp .5v
\f4MOUNTABLE, READ AND WRITE	00
NOT MOUNTABLE	01
MOUNTABLE, READ ONLY	10\f1
.TE
.SH SEE ALSO
\f4fmthard\fP(1M).
.SH CAVEAT
The \f4mount\f1 command does not check the "not mountable" bit.
.\"	@(#)prtvtoc.1	1.1 of 2/20/84
.Ee
