xref: /titanic_50/usr/src/man/man1/rmmount.1 (revision 31c6d826a7f7a4ee7d83c8e99f25d82a4a248076)
te
Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
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.
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.
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]
RMMOUNT 1 "Sep 18, 2006"
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
Interface Stability Uncommitted
SEE ALSO

eject(1), attributes(5)