Amiga Unix — 68040 · 68060

Manual pages › System administration commands (1M)

prtvtoc(1M)

print the VTOC of a block device

From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.

NAME

prtvtoc - print the VTOC of a block device

SYNOPSIS

/usr/sbin/prtvtoc 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.

The device name must be the file name of a raw device in the form of /dev/rdsk/c?d?s? or /dev/rdsk/c?t?d?s6?.

EXAMPLE

The command line entry and system response shown below are for a 72-megabyte hard disk:

 # prtvtoc /dev/rdsk/c1d0s6
* /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
*
*                           First    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
#

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

fmthard(1M).

CAVEAT

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