MOUNT(1M)
NAME
mount, umount − mount and dismount file system
SYNOPSIS
/etc/mount [ special directory [ −r ] [ −f ] ]
/etc/mount -a
/etc/umount special
/etc/umount -a
HP-UX COMPATIBILITY
Level: HP-UX/EXTENDED
Origin: System V
DESCRIPTION
Mount announces to the system that a removable file system is present on the device special. The directory must exist already; it becomes the name of the root of the newly mounted file system. Directory must be given as an absolute path name.
These commands maintain a table of mounted devices in /etc/mnttab. If invoked with no arguments, mount prints the table.
The optional argument −r indicates that the file system is to be mounted read-only. Physically write-protected file systems must be mounted in this way or errors will occur when access times are updated, whether or not any explicit write is attempted.
Umount announces to the system that the removable file system previously mounted on device special is to be removed.
The −f option indicates that the file system should be mounted even if the file system clean flag indicates that the file system should be fsck’ed before mounting.
If the −a option is present for either mount or umount , and all of the optional fields in /etc/checklist are included and supported, all of the file systems described in /etc/checklist are attempted to be mounted or dismounted. In this case, special and directory are taken from /etc/checklist. The special file name used is the block special name from /etc/checklist.
HARDWARE DEPENDENCIES
Series 500:
Warning: if virtual memory is brought up on a volume other than the root volume, and if that volume is then mounted, it cannot be dismounted.
FILES
/etc/mnttabmount table
/etc/checklist file system table
SEE ALSO
fsclean(1M), mount(2), mnttab(5), checklist(5).
DIAGNOSTICS
Attempts to mount a currently-mounted volume under another name will result in an error [EBUSY].
special and directory names recorded in /etc/mnttab are truncated to MNTLEN bytes.
Umount complains if the special file is not mounted or if it is busy. The file system is busy if it contains an open file or some user’s working directory.
BUGS
Some degree of validation is done on the file system, however it is generally unwise to mount garbage file systems.
Hewlett-Packard — last mod. May 11, 2021