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

rmmount(1)							   User Commands							rmmount(1)

NAME
rmmount, rmumount - mounts and unmounts removable media SYNOPSIS
rmmount [-u] [-o options] [nickname | device] [mount_point] rmmount [-d] [-l] rmumount [nickname | mount_point | device] rmumount [-d] [-l] DESCRIPTION
The rmmount and rmumount utilities mount and unmount removable or hot-pluggable volumes. The optional argument can identify the volume by its volume label, mount point or block device path. rmmount can also take additional mount options if the user has sufficient privileges to override the default mount options. Unmounting removable media does not result in its ejection. Use eject(1) to optionally unmount and eject the media. OPTIONS
The following options are supported for rmmount and rmumount: -d Display the device path of the default device. This device is used if no arguments are supplied. -l Display the paths and nicknames of mountable devices. The following options are supported for rmmount only: -o options Display mount options. This option can only be used by users that have privileges to override the system default options. -u Unmounts the volume as opposed to mounting it. OPERANDS
The following operands are supported: device Specifies which device to mount or unmount, by the name it appears in the directory /dev. mount_point Specifies which device to mount or unmount, by the name it appears in the directory /dev. nickname Specifies which device to mount or unmount, by its nickname as known to this command. EXAMPLES
Example 1 Mounting a USB disk The following example mounts a USB disk with a volume label of PHOTOS: example% rmmount PHOTOS Example 2 Unmounting a pcfs Volume The following example unmounts a pcfs volume by device path: example% rmumount /dev/dsk/c4t0d0p0:1 EXIT STATUS
The following exit values are returned: 0 Successful completion. >0 An error occurred. FILES
/media Default mount root. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWrmvolmgr | +-----------------------------+-----------------------------+ |Interface Stability |Uncommitted | +-----------------------------+-----------------------------+ SEE ALSO
eject(1), attributes(5) SunOS 5.11 18 Sep 2006 rmmount(1)
Man Page