2 .\" Copyright 1989 AT&T Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH GETVOL 8 "Jul 5, 1990"
8 getvol \- verifies device accessibility
12 \fB/usr/bin/getvol\fR \fB-n\fR [\fB-l\fR \fIlabel\fR] \fIdevice\fR
17 \fB/usr/bin/getvol\fR [\fB-f\fR | \fB-F\fR] [\fB-ow\fR] [\fB-l\fR \fIlabel\fR | \fB-x\fR \fIlabel\fR] \fIdevice\fR
23 \fBgetvol\fR verifies that the specified device is accessible and that a volume
24 of the appropriate medium has been inserted. The command is interactive and
25 displays instructional prompts, describes errors, and shows required label
30 The following options are supported:
37 Runs the command in non-interactive mode. The volume is assumed to be inserted
38 upon command invocation.
44 \fB\fB-l\fR\fI label\fR\fR
47 Specifies that the label \fIlabel\fR must exist on the inserted volume (can be
48 overridden by the \fB-o\fR option).
57 Formats the volume after insertion, using the format command defined for this
58 device in the device table.
67 Formats the volume after insertion and places a file system on the device. Also
68 uses the format command defined for this device in the device table.
77 Allows the administrator to override a label check.
86 Allows administrator to write a new label on the device. User is prompted to
87 supply the label text. This option is ineffective if the \fB-n\fR option is
94 \fB\fB-x\fR\fI label\fR\fR
97 Specifies that the label \fIlabel\fR must exist on the device. This option
98 should be used in place of the \fB-l\fR option when the label can only be
99 verified by visual means. Use of the option causes a message to be displayed
100 asking the administrator to visually verify that the label is indeed
107 The following operands are supported:
114 Specifies the device to be verified for accessibility.
120 The following exit values are returned:
127 Successful completion.
136 Command syntax was incorrect, invalid option was used, or an internal error
146 Device table could not be opened for reading.
153 \fB\fB/etc/device.tab\fR\fR
166 This command uses the device table to determine the characteristics of the
167 device when performing the volume label checking.