HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

m
mount_nfs(1M) mount_nfs(1M)
NAME
mount_nfs: mount, umount - mount and unmount NFS file systems
SYNOPSIS
/usr/sbin/mount
[-l][-p|-v
]
/usr/sbin/mount -a
[-F nfs][-eQ
]
/usr/sbin/mount
[-F nfs][-eQrV][
-o specific_options]{host:path|directory}
/usr/sbin/mount
[-F nfs][-eQrV][
-o specific_options] host:path directory
/usr/sbin/umount -a
[-F nfs][-h
host][-v]
/usr/sbin/umount
[-v][-V]{host
:path|directory}
DESCRIPTION
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 host:path to directory. host is a remote system, path is a directory on this
remote system and directory is a directory on the local file tree. directory must already exist, be given as
an absolute path name and will become the name of the root of the newly mounted file system. If either
host:path 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
-r Mount the specified file system read-only.
-o specific_options
Set file system specific options according to a comma-separated list chosen from words below.
rw | ro resource is mounted read-write or read-only. The default is rw.
suid | nosuid
Setuid execution allowed or disallowed. The default is suid.
remount If a file system is mounted read-only, remounts the file system read-write.
bg | fg If the first attempt fails, retry in the background, or, in the foreground. The default is
fg.
quota Enables quota(1) to check whether the user is over quota on this file system; if the file
system has quotas enabled on the server, quotas will still be checked for operations on
this file system.
noquota Prevent quota(1) from checking whether the user exceeded the quota on this file sys-
tem; if the file system has quotas enabled on the server, quotas will still be checked
for operations on this file system.
retry=n The number of times to retry the mount operation. The default is 1.
vers=<NFS version number>
By default, the version of NFS protocol used between the client and the server is the
highest one available on both systems. If the NFS server does not support NFS Ver-
sion 3, then the NFS mount will use NFS Version 2 .
port=n Set server UDP port number to n (the default is the port customarily used for NFS
servers).
proto=<transp>
Use the transport protocol <transp> for this mount. Valid values for <transp> are tcp
(connection-oriented) and udp (connectionless). The default behavior is to attempt a
tcp connection. If the tcp connection attempt fails when defaulting to tcp, a udp con-
nection will be attempted.
grpid By default, the GID associated with a newly created file will obey the System V
semantics; that is, the GID is set to the effective GID of the calling process. This
Section 1M518 Hewlett-Packard Company 1 HP-UX 11i Version 1: September 2005