Home Explore Blog CI



man-pages

11th chunk of `mount.man`
f808548b83240a12c98b804b6894b6fc383e7ce5ff1d56e70000000100000fa2
    specify the filesystem types on which no action should be taken. The
           prefix no has no effect when specified in an /etc/fstab entry.

           The prefix no can be meaningful with the -a option. For example, the
           command

           mount -a -t nomsdos,smbfs

           mounts all filesystems except those of type msdos and smbfs.

           For most types all the mount program has to do is issue a simple
           mount(2) system call, and no detailed knowledge of the filesystem
           type is required. For a few types however (like nfs, nfs4, cifs,
           smbfs, ncpfs) an ad hoc code is necessary. The nfs, nfs4, cifs,
           smbfs, and ncpfs filesystems have a separate mount program. In order
           to make it possible to treat all types in a uniform way, mount will
           execute the program /sbin/mount.type (if that exists) when called
           with type type. Since different versions of the smbmount program
           have different calling conventions, /sbin/mount.smbfs may have to be
           a shell script that sets up the desired call.

       -U, --uuid uuid
           Mount the partition that has the specified uuid.

       -v, --verbose
           Verbose mode.

       -w, --rw, --read-write
           Mount the filesystem read/write. Read-write is the kernel default
           and the mount default is to try read-only if the previous mount(2)
           syscall with read-write flags on write-protected devices failed.

           A synonym is -o rw.

           Note that specifying -w on the command line forces mount to never
           try read-only mount on write-protected devices or already mounted
           read-only filesystems.

       -h, --help
           Display help text and exit.

       -V, --version
           Print version and exit.

FILESYSTEM-INDEPENDENT MOUNT OPTIONS
       Some of these options are only useful when they appear in the /etc/fstab
       file.

       Some of these options could be enabled or disabled by default in the
       system kernel. To check the current setting see the options in
       /proc/mounts. Note that filesystems also have per-filesystem specific
       default mount options (see for example tune2fs -l output for extN
       filesystems).

       The options nosuid, noexec, nodiratime, relatime, noatime, strictatime,
       and nosymfollow are interpreted only by the abstract VFS kernel layer
       and applied to the mountpoint node rather than to the filesystem itself.
       Try:

              findmnt -o TARGET,VFS-OPTIONS,FS-OPTIONS

       to get a complete overview of filesystems and VFS options.

       The read-only setting (ro or rw) is interpreted by VFS and the
       filesystem and depends on how the option is specified on the mount(8)
       command line. The default is to interpret it on the filesystem level.
       The operation "-o bind,remount,ro" is applied only to the VFS
       mountpoint, and operation "-o remount,ro" is applied to VFS and
       filesystem superblock. This semantic allows create a read-only
       mountpoint but keeps the filesystem writable from another mountpoint.

       Since v2.39 libmount can use a new kernel mount interface to set the VFS
       options recursive. For backward compatibility, this feature is not
       enabled by default, although recursive operation (e.g. rbind) has been
       requested. The new option argument "recursive" could be specified, for
       example:

              mount -orbind,ro=recursive,noexec=recursive,nosuid /foo /bar

       recursively binds filesystems from /foo to /bar, /bar, and all submounts
       will be read-only and noexec, but only /bar itself will be "nosuid". The
       "recursive" optional argument for VFS mount options is an EXPERIMENTAL
       feature.

       The following options apply to any filesystem that is being mounted (but
       not every filesystem actually honors them - e.g., the sync option today
       has

Title: Mount Command Options: -U to -V and Filesystem-Independent Options
Summary
This section describes the remaining command-line options for the `mount` command and delves into filesystem-independent mount options. Options covered include: * `-U`: Mounts a partition by UUID. * `-v`: Enables verbose mode. * `-w`, `--rw`, `--read-write`: Mounts the filesystem read/write. * `-h`, `--help`: Displays help text. * `-V`, `--version`: Prints version information. It also describes filesystem-independent mount options. Some options are more useful in `/etc/fstab` and can be enabled/disabled by default in the kernel. The options `nosuid`, `noexec`, `nodiratime`, `relatime`, `noatime`, `strictatime`, and `nosymfollow` are interpreted by the VFS kernel layer. Starting with v2.39 libmount provides a new kernel mount interface that allows recursively applying VFS mount options, which is an experimental feature.