USERMOUNT

Section: User Commands (1)
Index Return to Main Contents
 

NAME

usermount - mount filesystems  

SYNOPSIS

usermount [-fnprv] [-t type] [-o options] [[dev] dir]

 

DESCRIPTION

This manual descripes the mount command extended with support for user mountable filesystems. If both dev and dir is given, then the device dev is mounted on the directory dir which is possibly created only if there is a exact match in /etc/ufstab.

If only dev is missing, then the device matching that directory is looked up in /etc/ufstab.

If type is missing, the type of the mounting will be the one of the first matching entry in /etc/fstab. Otherwise, usermount will search a completely matching entry, with the same type, and only if found the mount will be done.

If no arguments are given to usermount then -p is assumed.

 

OPTIONS

-f
Fake an entry in /etc/mtab without actually mounting anything.
-n
Do not write an entry in /etc/mtab for the mount.
-p
Print the entry that would otherwise have been written to /etc/mtab on stdout.
-r
Mount the filesystem(s) read-only.
-v
Verbose.
-t type
Mount the filesystem(s) of the given type. Currently (Linux V1.0.9) the following types are supported: minix, msdos, proc, ext2, nfs, isofs, xfs, umsdos, sysv, depending on your kernel configuration. If no type is given, then the one of the first /etc/ufstab matching entry is assumed.

-o options
Mount the filesystem(s) with the given options. The options is a comma separated list of keywords containing no white space. The following options are supported for all filesystem types: (though they may not be implemented)

ro: read-only.

rw: read-write. This is default.

suid: Allow setuid bits on executables to take effect on the mounted volume. This is the default.

nosuid: Ignore setuid bits on executables on the mounted volume.

nodev: Disallow device files on the mounted volume.

noexec: Disallow execution of binaries directly from the mounted volume.

sync: Always keep the mounted volume sync'ed.

The defaults options for the normal user are nosuid,noexec,nodev that are mandatory! The -o option makes no difference for ordinary users (It's here for compatibility). The only way to have different mount options is to have it specified in /etc/ufstab.

Also, defaults in the options field of the /etc/ufstab means nosuid,noexec,nodev,ro instead of suid,rw as it does in /etc/fstab.

 

FILES

/etc/ufstab
Holds a table of filesystems, where they should be mounted, with what options and filesystem type.
/etc/mtab
Holds a table of currently mounted filesystems.
/etc/mtab~
A lock file, the existence of this file prevents mount from changing anything.

 

AUTHOR

This version of mount for Linux is written by Peter Orbaek <poe@daimi.aau.dk> and is freely distributable under the GNU General Public License. Later was modified (cutted down to only user filesystem mount) by Romano Giannetti <romano@sensores2.fis.ucm.es>.

 

SEE ALSO

userumount(1).


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
FILES
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 15:56:42 GMT, November 05, 2024