Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getvol(1m) [opensolaris man page]

getvol(1M)						  System Administration Commands						getvol(1M)

NAME
getvol - verifies device accessibility SYNOPSIS
/usr/bin/getvol -n [-l label] device /usr/bin/getvol [-f | -F] [-ow] [-l label | -x label] device DESCRIPTION
getvol verifies that the specified device is accessible and that a volume of the appropriate medium has been inserted. The command is interactive and displays instructional prompts, describes errors, and shows required label information. OPTIONS
The following options are supported: -n Runs the command in non-interactive mode. The volume is assumed to be inserted upon command invocation. -l label Specifies that the label label must exist on the inserted volume (can be overridden by the -o option). -f Formats the volume after insertion, using the format command defined for this device in the device table. -F Formats the volume after insertion and places a file system on the device. Also uses the format command defined for this device in the device table. -o Allows the administrator to override a label check. -w Allows administrator to write a new label on the device. User is prompted to supply the label text. This option is ineffective if the -n option is enabled. -x label Specifies that the label label must exist on the device. This option should be used in place of the -l option when the label can only be verified by visual means. Use of the option causes a message to be displayed asking the administrator to visually verify that the label is indeed label. OPERANDS
The following operands are supported: device Specifies the device to be verified for accessibility. EXIT STATUS
The following exit values are returned: 0 Successful completion. 1 Command syntax was incorrect, invalid option was used, or an internal error occurred. 3 Device table could not be opened for reading. FILES
/etc/device.tab ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) NOTES
This command uses the device table to determine the characteristics of the device when performing the volume label checking. SunOS 5.11 5 Jul 1990 getvol(1M)

Check Out this Related Man Page

devattr(1M)						  System Administration Commands					       devattr(1M)

NAME
devattr - display device attributes SYNOPSIS
devattr [-v] device [attribute]... DESCRIPTION
devattr displays the values for a device's attributes. The display can be presented in two formats. Used without the -v option, only the attribute values are shown. Used with the -v option, the attributes are shown in an attribute=value format. When no attributes are given on the command line, all attributes for the specified device are displayed in alphabetical order by attribute name. If attributes are given on the command line, only those attributes are shown, displayed in command line order. OPTIONS
The following options are supported: -v Specifies verbose format. Attribute values are displayed in an attribute=value format. OPERANDS
The following operands are supported: attribute Defines which attribute, or attributes, should be shown. Default is to show all attributes for a device. See the putdev(1M) manual page for a complete listing and description of available attributes. device Defines the device whose attributes should be displayed. Can be the pathname of the device or the device alias. EXIT STATUS
The following exit values are returned: 0 successful completion. 1 Command syntax was incorrect, invalid option was used, or an internal error occurred. 2 Device table could not be opened for reading. 3 Requested device could not be found in the device table. 4 Requested attribute was not defined for the specified device. FILES
/etc/device.tab ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
getdev(1M), putdev(1M), attributes(5) SunOS 5.11 5 Jul 1990 devattr(1M)
Man Page