Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mount(2) — HP-UX 5.50

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mount(1M)

umount(2)

MOUNT(2)  —  HP-UX

NAME

mount − mount a file system

SYNOPSIS

int mount (spec, dir, rwflag)
char ∗spec, ∗dir;
int rwflag;

DESCRIPTION

Mount requests that a removable file system contained on the block special device file identified by spec be mounted on the directory identified by dir. Spec and dir are pointers to path names. 

Upon successful completion, references to the file dir will refer to the root directory on the mounted file system. 

The low-order bit of rwflag is used to control write permission on the mounted file system; if 1, writing is forbidden, otherwise writing is permitted according to individual file accessibility. 

Mount may be invoked only by the super-user. 

RETURN VALUE

Upon successful completion a value of 0 is returned.  Otherwise, a value of −1 is returned and errno is set to indicate the error. 

ERRORS

Mount will fail if one or more of the following are true:

­[EPERM] The effective user ID is not super-user. 

­[ENOENT] The named file does not exist (for example, path is null or a component of path does not exist). 

­[ENOTDIR] A component of a path prefix is not a directory. 

­[ENOTBLK] Spec is not a block special device. 

­[ENXIO] The device associated with spec does not exist. 

­[ENOTDIR] Dir is not a directory. 

­[EFAULT] Spec or dir points outside the allocated address space of the process.  The reliable detection of this error will be implementation dependent. 

­[EBUSY] Dir is currently mounted on, is someone’s current working directory, or is otherwise busy. 

­[EBUSY] The device associated with spec is currently mounted. 

­[EBUSY] There are no more mount table entries. 

­[ENOENT] Spec or dir is null. 

­[EACCES] A component of the path prefix denies search permission. 

­[ENAMETOOLONG] Any of the named files exceeds MAXPATHLEN characters. 

WARNINGS

If mount is called from the program level (i.e. not called from mount(1M)), the table of mounted devices contained in /etc/mnttab is not updated. 

HARDWARE DEPENDENCIES

Integral PC
Normal users have all super-user capabilities.

SEE ALSO

mount(1M), umount(2). 

Hewlett-Packard Company  —  Version B.1,  May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026