Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

mountall - mount file systems

&pagelevel(4)&pagelevel

mountall is used to mount file systems on the basis of a file_system_table (/etc/vfstab is the default file system table). The special file name "-" reads from the standard input. If you specify the hyphen then the standard input must possess the same format as /etc/vfstab.

Before the individual file systems are mounted, fsck performs a plausibility test to determine whether the system appears to be viable for mounting (not in the case of file systems of the type bs2fs or nfs). If the system is not viable for mounting, fsck corrects it before an attempt is made to mount it.
If only file_system_type is specified then mountall applies only to file systems of the specified type.
The file systems are mounted in the order ufs - bs2fs - nfs. This ensures that when the bs2fs file systems are mounted, the bs2fscontainer file system required for this purpose is already mounted in ufs.


Syntax


mountall[ -F file_system_type] [ -l-r | -b][file_system_table]

No option specified

mountall mounts all file systems for which the field automnt in the file system table is set to yes.

options

-F file_system_type

Specifies the type of file system to be mounted.

-l

Limits the process to local file systems (ufs and bs2fs).

-r

Limits the process to remote file system types (nfs).

-b

Limits the process to bs2fs file systems.

file_system_table

If file_system_table is not specified, mountall refers to /etc/vfstab.

Hint

If the -F option is specified together with one or more of the options -l, -r and -b and the options are mutually compatible, the -l, -r and -b options have priority. For example, mountall -F bs2fs -l and mountall -F ufs -l have the same effect as mountall -l: all local file systems (i.e. all ufs and bs2fs file systems) are mounted. The entries mountall -F bs2fs and mountall -b also lead to the same result: all bs2fs file systems are mounted.

Error

If the file systems are viable for mounting and error-free, no message is output. Error and warning messages are issued by fsck and mount or by mountall in the case of incorrect syntax.

File

/etc/vfstab

Default file system table.

See also

fsck, mount, umountall