Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

devinfo(1M)

format(1M)

fmthard(1M)

prtvtoc(1M)

NAME

prtvtoc − print the VTOC of a block device

SYNOPSIS

/usr/sbin/prtvtoc [ −fhs ] [ −t vfstab ] [ −m mnttab ] device

AVAILABILITY

SUNWcsr

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 must be the file name of a raw device in the form of /dev/rdsk/c?d?s2 or /dev/rdsk/c?t?d?s2. 

OPTIONS

−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 72-megabyte hard disk:

example# prtvtoc /dev/rdsk/c1d0s2
∗ /dev/rdsk/c1d0s2 (volume"<name>") 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
∗

∗ First Sector Last
∗ Partition Tag Flags Sector Count Sector Mount Directory
0 2 00 19040 23460 42499 /
1 3 01 100 18940 19039
2 0 01 0 148896 148895
6 4 00 29552 119344 148895 /usr
7 1 01 0 100 99

# Codes for TAG are:

NAME NUMBER


UNASSIGNED 0
BOOT 1
ROOT 2
SWAP 3
USR 4
BACKUP 5
STAND 6

FLAG indicates how the partition is to be mounted. 

NAME NUMBER


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

SEE ALSO

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

WARNINGS

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

SunOS 5.1/SPARC  —  Last change: 14 Sep 1992

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026