mount(1M) mount(1M)
NAME [Toc] [Back]
mount, umount - mount and unmount file systems
SYNOPSIS [Toc] [Back]
/usr/sbin/mount [-l] [-p|-v]
/usr/sbin/mount -a [-F FStype] [-eQ]
/usr/sbin/mount [-F FStype] [-eQrV] [-o specific_options]
{special|directory}
/usr/sbin/mount [-F FStype] [-eQrV] [-o specific_options]
special directory
/usr/sbin/umount [-v] [-V] [-f] {special|directory}
/usr/sbin/umount -a [-F FStype] [-h host] [-v] [-f]
DESCRIPTION [Toc] [Back]
The mount command mounts file systems. Only a superuser can mount
file systems. Other users can use mount to list mounted file systems.
The mount command attaches special, a removable file system, to
directory, a directory on the file tree. directory, which must
already exist, will become the name of the root of the newly mounted
file system. special and directory must be given as absolute path
names. If either special or directory is omitted, mount attempts to
determine the missing value from an entry in the /etc/fstab file.
mount can be invoked on any removable file system, except /.
If mount is invoked without any arguments, it lists all of the mounted
file systems from the file system mount table, /etc/mnttab.
The umount command unmounts mounted file systems. Only a superuser
can unmount file systems.
Options (mount) [Toc] [Back]
The mount command recognizes the following options:
-a Attempt to mount all file systems described in
/etc/fstab. All optional fields in /etc/fstab
must be included and supported. If the -F option
is specified, all file systems in /etc/fstab with
that FStype are mounted. If noauto is specified
in an entry's option list, this entry is skipped.
File systems are not necessarily mounted in the
order listed in /etc/fstab.
-e Verbose mode. Write a message to the standard
output indicating which file system is being
mounted.
Hewlett-Packard Company - 1 - HP-UX 11i Version 2: Sep 2004
mount(1M) mount(1M)
-F FStype Specify FStype, the file system type on which to
operate. See fstyp(1M). If this option is not
included on the command line, then it is
determined from either /etc/fstab, by matching
special with an entry in that file, or from file
system statistics of special, obtained by
statfsdev() (see statfsdev(3C)).
-l Limit actions to local file systems only.
-o specific_options
Specify options specific to each file system type.
specific_options is a list of comma separated
suboptions and/or keyword/attribute pairs intended
for a FStype-specific version of the command. See
the FStype-specific manual entries for a
description of the specific_options supported, if
any.
-p Report the list of mounted file systems in the
/etc/fstab format.
-Q Prevent the display of error messages that result
from an attempt to mount already mounted file
systems.
-r Mount the specified file system as read-only.
Physically write-protected file systems must be
mounted in this way or errors occur when access
times are updated, whether or not any explicit
write is attempted.
-h Unmount only those file systems listed in
/etc/mnttab that are remote-mounted from host.
-v Report the regular output with file system type
and flags; however, the directory and special
fields are reversed.
-V Echo the completed command line, but perform no
other action. The command line is generated by
incorporating the user-specified options and other
information derived from /etc/fstab. This option
allows the user to verify the command line.
Options (umount) [Toc] [Back]
The umount command recognizes the following options:
-a Attempt to unmount all file systems described in
/etc/mnttab. All optional fields in /etc/mnttab
must be included and supported. If FStype is
Hewlett-Packard Company - 2 - HP-UX 11i Version 2: Sep 2004
mount(1M) mount(1M)
specified, all file systems in /etc/mnttab with
that FStype are unmounted. File systems are not
necessarily unmounted in the order listed in
/etc/mnttab.
-F FStype Specify FStype, the file system type on which to
operate. If this option is not included on the
command line, then it is determined from
/etc/mnttab by matching special with an entry in
that file. If no match is found, the command
fails.
-v Verbose mode. Write a message to standard output
indicating which file system is being unmounted.
-V Echo the completed command line, but perform no
other action. The command line is generated by
incorporating the user-specified options and other
information derived from /etc/fstab. This option
allows the user to verify the command line.
-f Forced unmount. Not supported by all file system
types. See file system type specific man pages
for more information.
EXAMPLES [Toc] [Back]
List the file systems currently mounted:
mount
Mount the HFS file system /dev/dsk/c1t2d0 at directory /home:
mount -F hfs /dev/dsk/c1t2d0 /home
Unmount the same file system:
umount /dev/dsk/c1t2d0
AUTHOR [Toc] [Back]
mount was developed by HP, AT&T, the University of California,
Berkeley, and Sun Microsystems.
FILES [Toc] [Back]
/etc/fstab Static information about the systems
/etc/mnttab Mounted file system table
SEE ALSO [Toc] [Back]
fsadm(1M), mount_cachefs(1M), mount_cdfs(1M), mount_hfs(1M),
mount_lofs(1M), mount_nfs(1M), mount_vxfs(1M), setmnt(1M), mount(2),
fstab(4), mnttab(4), fs_wrapper(5), quota(5).
Hewlett-Packard Company - 3 - HP-UX 11i Version 2: Sep 2004
mount(1M) mount(1M)
STANDARDS CONFORMANCE [Toc] [Back]
mount: SVID3
umount: SVID3
Hewlett-Packard Company - 4 - HP-UX 11i Version 2: Sep 2004 [ Back ] |