mount(8)
List supported filesystems
If the kernel is compiled with CONFIG_PROC_FS one can
list the supported filesystems via the following procfs node.
cat /proc/filesystems
Mount options
The mount operation allows to specify additional mout options.
- The
mount(8)manpage provides some generic options underFILESYSTEM-INDEPENDENT MOUNT OPTIONSas well as some filesystem specific options underFILESYSTEM-SPECIFIC MOUNT OPTIONS. - The manpage for the specific filesystems list additional mount options, as
for example
tmpfs(5).
Example: Mount tmpfs with given user id
This creates a in memory filesystems with a size limit where the root folder is
owned by uid=gid=1000.
sudo mount -t tmpfs -o size=1G,uid=1000,gid=1000,mode=0755 none ./tmp
Example: Bind mount
# Bind mount src onto dir, this does not rebind and recursive mountpoints.
mount --bind <src> <dst>
# Similar but rebind also recursive mountpoints.
mount --rbind <src> <dst>
# Mount file ./resolv.conf onto /etc/resolv.conf.
mount --bind ./resolv.conf /etc/resolv.conf
# Mount dir ./etc onto /etc.
mount --bind ./etc /etc