Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mount_hfs(1M) — HP-UX 10.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fsclean(1M)

mount(1M)

mkfs_hfs(1M)

fsadm_hfs(1M)

quotaon(1M)

mount(2)

fstab(4)

mnttab(4)

fs_wrapper(5)

quota(5)

mount_hfs(1M)

NAME

mount(hfs), umount(hfs) − mount and unmount an HFS file systems

SYNOPSIS

/usr/sbin/mount [−l] [−p|−v]

/usr/sbin/mount −a [−F hfs] [−eQ] [−f]

/usr/sbin/mount [−F hfs] [−eQrV] [−f] [−o specific_options] {special|directory}

/usr/sbin/mount [−F hfs] [−eQrV] [−f] [−o specific_options] special directory

/usr/sbin/umount −a [−F hfs] [−v]

/usr/sbin/umount [−v] [−V] {special|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 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)

mount 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 −F hfs is specified, all HFS file systems in /etc/fstab are mounted.  File systems are not necessarily mounted in the order listed in /etc/fstab. 

−e Verbose mode.  Write a message to standard output indicating which file system is being mounted. 

−f Force the file system to be mounted, even if the file system clean flag indicates that the file system should have fsck run on it before mounting (see fsck(1M)). This option is valid only on HFS file systems.

−F hfs Specify the HFS file system type (see fstyp(1M)).

−l Limit actions to local file systems only. 

−o specific_options
Specify options specific to the HFS file system type. specific_options is a list of comma separated suboptions and/or keyword/attribute pairs intended for the HFS specific module of the command. 

The following specific_options are valid on HFS file systems. 

defaults Use all default options.  When given, this must be the only option specified. 

rw Mount read-write (default). 

ro Mount read-only. 

suid Allow set-user-ID execution (default). 

nosuid Do not allow set-user-ID execution. 

behind Enable, where possible, asynchronous writes to disk.  This is the default on 700 systems. 

delayed Enable delayed or buffered writes to disk.  This is the default on 800 systems. 

fs_async Enable relaxed posting of file system metadata. 

no_fs_async Enable rigorous posting of file system metadata.  This is the default. 

largefiles Attempt to enable the creation of files greater than 2 gigabytes in size. File systems have to be created or configured to enable large files (see mkfs_hfs(1M) and fsadm_hfs(1M)). 

nolargefiles Attempt to disable the creation of files greater than 2 gigabytes in size. File systems have to be created or configured to disable large files. (see mkfs_hfs(1M) and fsadm_hfs(1M)). 

quota Enable disk quotas (valid only for rw file systems). 

noquota Disable disk quotas (default). 

Mounting with the quota option also enables quotas for the file system, unlike some other systems, which require the additional invocation of the quotaon command after the file system has been mounted (see quotaon(1M)). Running quotaon does no harm, but it is not necessary. 

−p Report the list of mounted file systems in the /etc/fstab format. 

−Q Prevent the display of error messages resulting from an attempt to mount already mounted file systems. 

−r Mount the specified file system as read-only.  This option is equivalent to the −o ro specific_option. 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.

−v Report the regular output with file system type and flags; however, directory and special fields are reversed. 

−V Echo the completed command line, but performs 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)

umount 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 −F hfs is specified, all HFS file systems in /etc/mnttab are unmounted.  File systems are not necessarily unmounted in the order listed in /etc/mnttab. 

−F hfs Specify the HFS file system type (see fstyp(1M)).

−v Verbose mode.  Write a message to standard output indicating which file system is being unmounted. 

−V Echo the completed command line, but performs 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. 

DIAGNOSTICS

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 logged-in user’s working directory. 

EXAMPLES

Mount a local HFS disk:

mount -F hfs /dev/dsk/c0d0s4 /usr

Unmount a local HFS disk:

umount /dev/dsk/c0d0s4

WARNINGS

Some degree of validation is done on the file system, however, it is generally unwise to mount file systems that are defective, corrupt, or of unknown origin. 

AUTHOR

mount was developed by HP, AT&T, the University of California, Berkeley, and Sun Microsystems. 

FILES

/etc/fstab Static information about the file systems

/etc/mnttab Mounted file system table

SEE ALSO

fsclean(1M), mount(1M), mkfs_hfs(1M), fsadm_hfs(1M), quotaon(1M), mount(2), fstab(4), mnttab(4), fs_wrapper(5), quota(5). 

STANDARDS COMPLIANCE

mount: SVID3
umount: SVID3

Hewlett-Packard Company  —  HP-UX Release 10.20:  July 1996

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