1prtvtoc(1M)             System Administration Commands             prtvtoc(1M)
2
3
4

NAME

6       prtvtoc - report information about a disk geometry and partitioning
7

SYNOPSIS

9       prtvtoc [-fhs] [-t vfstab] [-m mnttab] device
10
11

DESCRIPTION

13       The  prtvtoc command allows the contents of the label to be viewed. The
14       command can be used only by the super-user.
15
16
17       The device name can be the file name of a raw device  in  the  form  of
18       /dev/rdsk/c?t?d?s2  or  can  be  the file name of a block device in the
19       form of /dev/dsk/c?t?d?s2.
20

OPTIONS

22       The following options are supported:
23
24       -f           Report on the disk  free  space,  including  the  starting
25                    block  address  of  the  free space, number of blocks, and
26                    unused partitions.
27
28
29       -h           Omit the headers from the normal output.
30
31
32       -m mnttab    Use mnttab as the list of mounted filesystems, in place of
33                    /etc/mnttab.
34
35
36       -s           Omit  all  headers  but  the column header from the normal
37                    output.
38
39
40       -t vfstab    Use vfstab as the list of filesystem defaults, in place of
41                    /etc/vfstab.
42
43

EXAMPLES

45       Example 1 Using the prtvtoc Command
46
47
48       The  following  example uses the prtvtoc command on a 424-megabyte hard
49       disk:
50
51
52         example# prtvtoc /dev/rdsk/c0t3d0s2
53         * /dev/rdsk/c0t3d0s2 partition map
54         *
55         * Dimension:
56         *     512 bytes/sector
57         *      80 sectors/track
58         *       9 tracks/cylinder
59         *     720 sectors/cylinder
60         *    2500 cylinders
61         *    1151 accessible cylinders
62         *
63         * Flags:
64         *   1: unmountable
65         *  10: read-only
66         * *                           First    Sector   Last
67         * Partition   Tag   Flags   Sector   Count    Sector   Mount Directory
68              0         2     00          0    76320    76319   /
69              1         3     01      76320   132480   208799
70              2         5     00          0   828720   828719
71              5         6     00     208800   131760   340559   /opt
72              6         4     00     340560   447120   787679   /usr
73              7         8     00     787680    41040   828719   /export/home
74         example#
75
76
77
78
79       The data in the Tag column above indicates the type  of  partition,  as
80       follows:
81
82
83
84
85
86                 Name                          Number
87       UNASSIGNED                  0x00
88       BOOT                        0x01
89       ROOT                        0x02
90       SWAP                        0x03
91       USR                         0x04
92       BACKUP                      0x05
93       STAND                       0x06
94       VAR                         0x07
95       HOME                        0x08
96       ALTSCTR                      0x09
97       CACHE                       0x0a
98       RESERVED                    0x0b
99
100
101
102       The data in the Flags column above indicates how the partition is to be
103       mounted, as follows:
104
105
106
107
108
109       Name                        Number
110       MOUNTABLE, READ AND WRITE   0x00
111       NOT MOUNTABLE               0x01
112       MOUNTABLE, READ ONLY        0x10
113
114
115       Example 2 Using the prtvtoc Command with the -f Option
116
117
118       The following example uses the prtvtoc command with the -f option on  a
119       424-megabyte hard disk:
120
121
122         example# prtvtoc -f /dev/rdsk/c0t3d0s2
123         FREE_START=0 FREE_SIZE=0 FREE_COUNT=0 FREE_PART=34
124
125
126
127       Example 3 Using the prtvtoc Command on a Disk Over One Terabyte
128
129
130       The  following example uses uses the prtvtoc command on a disk over one
131       terabyte:.
132
133
134         example# prtvtoc /dev/rdsk/c1t1d0s2
135         * /dev/rdsk/c1t1d0s2 partition map
136         *
137         * Dimensions:
138         *     512 bytes/sector
139         * 3187630080 sectors
140         * 3187630013 accessible sectors
141         *
142         * Flags:
143         *   1: unmountable
144         *  10: read-only
145         *
146         *                          First     Sector    Last
147         * Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
148         0      2    00         34    262144    262177
149         1      3    01     262178    262144    524321
150         6      4    00     524322 3187089340 3187613661
151         8     11    00  3187613662     16384 318763004
152
153
154

ATTRIBUTES

156       See attributes(5) for descriptions of the following attributes:
157
158
159
160
161       ┌─────────────────────────────┬─────────────────────────────┐
162       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
163       ├─────────────────────────────┼─────────────────────────────┤
164       │Availability                 │SUNWcsu                      │
165       └─────────────────────────────┴─────────────────────────────┘
166

SEE ALSO

168       devinfo(1M), fmthard(1M), format(1M), mount(1M), attributes(5)
169

WARNINGS

171       The mount command does not check the "not mountable" bit.
172
173
174
175SunOS 5.11                        25 Jul 2002                      prtvtoc(1M)
Impressum