Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ prtvtoc(1M) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

dse(1M)

fmthard(1M)

vfstab(4)

mnttab(4)

prtvtoc(1M)  —  ADMINISTRATOR COMMANDS

NAME

prtvtoc − print the VTOC of a block device

SYNOPSIS

/sbin/prtvtoc [−f] [−h] [−s] [−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. 

This program is considered obsolete and its use discouraged.  Use dse(1M) instead. 

The −f option is used to force the printing of a line containing four whitespace separated strings suitable for use as shell variable assignments.  The first string is "FREE_START=number", where number represents the starting block of the first free block of the disk.  The second string is "FREE_SIZE=number", where number represents the number of blocks free in the free space starting at FREE_START.  The third string is "FREE_COUNT=number", where number represents the number of free spaces on the disk.  The fourth string is FREE_PART=string", where string is a list of characters, each character specifying a slice number the is currently unused. 

The −h option is used to suppress the printing of information headers and column headers. 

The −s option is used to suppress the printing of the information headers. 

The −t option is used to specify the pathname of the file to be used as the vfstab.  The vfstab contains the list of devices that should be mounted as file systems and the options related to the mount requests.  If this option is not used the default vfstab is /etc/vfstab. 

The −m option is used to specify the pathname of the file to be used as the mnttab.  The mnttab contains the list of file system known to be mounted.  If this option is not used the default vfstab is /etc/mnttab. 

The device name must be the filename of a raw device in the form of prefix_cXdYsZ, where prefix uniquely defines the type of device, X specifies the controller number (starting from zero) of the stated device type, Y specifies the logical device number (starting from zero) for the device attached to the stated controller, and Z specifies device dependent information. 

EXAMPLE

The command line entry and system response shown below are for a 72-megabyte hard disk: # prtvtoc /dev/rdsk/m328_c0d0s7

∗ /dev/rdsk/m328_c0d0s7 slice map
∗
∗ Dimension:
∗     512 bytes/sector
∗      18 sectors/track
∗      11 tracks/cylinder
∗     198 sectors/cylinder
∗     754 cylinders
∗     754 accessible cylinders
∗
∗ Flags:
∗  10: read-only
∗
∗ Unallocated space:
∗       First     Sector     Last
∗       Sector     Count     Sector
∗            0       100         99
∗

∗ First Sector Last
∗ Slice 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

#

Codes for TAG are:

NAME NUMBER
OTHER 0
BOOT 1
ROOT 2
SWAP 3
USR 4
VAR 5
STAND 6
FDISK 7
HOME 8
XTERM 9
USER1 10
USER2 11
USER3 12
DIAG 13
VXVM_PUB 14
VXVM_PRIV 15

FLAG indicates how the slice is to be mounted. 

NAME NUMBER
READ AND WRITE 00
READ ONLY 10

SEE ALSO

dse(1M), fmthard(1M), vfstab(4), mnttab(4)

CAVEAT

The unallocated space information contains all of the unallocated space on the device.  This may also include the space at the very beginning of the disk that is reserved by Motorola for media identification, boot blocks, and bad block location. 

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