summaryrefslogtreecommitdiffstats
path: root/sys-utils/mount.8
Commit message (Collapse)AuthorAgeFilesLines
* removed double spaceChistyj Arkadij2019-08-041-1/+1
|
* fixed mount man page typo, "bythe" -> "by the"Chistyj Arkadij2019-08-041-1/+1
|
* mount: fix "maybe be" duplicationAustin English2019-05-151-4/+4
| | | | Signed-off-by: Austin English <austinenglish@gmail.com>
* Update mount.8MeggyCal2019-03-071-1/+1
| | | xfs is widely supported today
* mount.8: clarify (no)suid behavior on file capabilitiesPeter Wu2019-02-011-4/+4
| | | | | | | | | | Clarify that the nosuid option also affects file capabilities and that it only limits execution of programs. (setgid on directories still inherit the group regardless of the nosuid option.) The new text is taken from the mount(2) manual page from the man-pages project. Addresses: https://github.com/karelzak/util-linux/issues/482 Signed-off-by: Peter Wu <peter@lekensteyn.nl>
* mount: (man) add note about --all to remount descKarel Zak2019-01-211-0/+12
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: add support for MS_REMOUNT on --allKarel Zak2019-01-161-0/+4
| | | | | | | | | | | | | This patch add to support for remount-all operation to libmount and mount(8). For example: mount --all -o remount,ro -t vfat to remount read-only all VFAT filesystems. Addresses: https://github.com/karelzak/util-linux/issues/589 Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: add note about MS_BIND and _netdevKarel Zak2018-10-021-2/+5
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/697 Signed-off-by: Karel Zak <kzak@redhat.com>
* Fix man page typosJakub Wilk2018-08-161-3/+3
| | | | Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
* mount: add ext4 to some places to the man pageKarel Zak2018-08-101-4/+5
|
* man pages: Fix misuse of two-fonts-macros (BR, IR)Bjarni Ingi Gislason2018-08-061-3/+3
| | | | | | | | | | | Change a two-fonts-macro to the single font one, when there is only one genuine argument. Split a punctuation mark from the only argument to a two-fonts-marco. Remove an isolated two-fonts-macro. Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* mount: add details about mtab and --namespace to mount.8Karel Zak2018-07-191-6/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: add -N to man page helpers sectionKarel Zak2018-06-111-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: allow PID as --namespace argumentVaclav Dolezal2018-06-111-1/+3
| | | | | | | [[kzak@redhat.com: - update code] Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
* mount: document --namespace in man/helpVaclav Dolezal2018-06-111-0/+4
| | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
* libmount: accept another flags on MS_REMOUNT|MS_BINDKarel Zak2018-05-281-2/+3
| | | | | | | | | | | | | | | | | | | | | | The current libmount MS_REMOUNT|MS_BIND support is restricted to MS_RDONLY (read-only bind mount). This is too restrictive as Linux kernel supports bind-remount for arbitrary VFS flags. After this update you can use # mount /dev/sdc1 /mnt/A # mount --bind -onosuid,noexec /mnt/A /mnt/B # findmnt /dev/sdc1 -oTARGET,SOURCE,FS-OPTIONS,VFS-OPTIONS TARGET SOURCE FS-OPTIONS VFS-OPTIONS /mnt/A /dev/sdc1 rw,stripe=512,data=ordered rw,relatime /mnt/B /dev/sdc1 rw,stripe=512,data=ordered rw,nosuid,noexec,relatime The "mount --bind" is composed from two syscalls of course (1st is bind, 2nd is bind,remount,nosuid,noexec). Addresses: https://github.com/karelzak/util-linux/issues/637 Signed-off-by: Karel Zak <kzak@redhat.com>
* man: Use the correct macro for a font change of one argumentBjarni Ingi Gislason2018-05-231-10/+10
| | | | | | | | Use the correct macro (I, B) for the font change of one argument, not those that are used for alternating two fonts, like "BR", "IR", "RB", or "RI". Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* Update information about udf in mount manpagePali Rohár2018-04-191-10/+13
|
* mount: more notes about --options-* to man pageKarel Zak2018-04-091-1/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'mount-omode' of https://github.com/yontalcar/util-linuxKarel Zak2018-04-091-0/+22
|\ | | | | | | | | | | | | | | * 'mount-omode' of https://github.com/yontalcar/util-linux: mount: use string_to_bitmask() mount(8): clarify behavior of --options-mode mount: document --options-* in man/help mount: added options exposing libmount's optsmode
| * mount(8): clarify behavior of --options-modeVaclav Dolezal2018-02-141-0/+1
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
| * mount: document --options-* in man/helpVaclav Dolezal2018-02-081-0/+21
| | | | | | | | Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
* | mount: (man) be explicit about bind operationKarel Zak2018-03-191-1/+8
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | mount: (man) update mount options for UDFSteve Kenton2018-02-281-22/+67
| | | | | | | | | | Signed-off-by: Steve Kenton <skenton@ou.edu> Acked-by: Jan Kara <jack@suse.cz>
* | mount: add note about cached kernel table for --allKarel Zak2018-02-221-1/+5
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | mount: add note about "already mounted" behaviorKarel Zak2018-02-051-0/+7
|/ | | | | Addresses: https://github.com/karelzak/util-linux/issues/448 Signed-off-by: Karel Zak <kzak@redhat.com>
* mount(8): drop redundant filesystem-specific sectionsMike Frysinger2018-01-241-327/+8Star
| | | | | | | | | | | | | | | | | | Add a new section to the top of the filesystem-specific chapter to point people generally to the filesystem-specific man pages. This way we can delete all the redundant subsections that say the same thing. These subsections are deleted because they offer no options. Which is the same as all the filesystems the kernel supports but this man page doesn't explicitly list (of which there are a few). coherent minix ramfs romfs squashfs sysv xenix These subsections are deleted because they simply point to the respective <fs>(5) or mount.<fs>(8) page which we now document at the top. Some also discuss the syscall ABI, but that doesn't seem appropriate for this page. btrfs cifs ext2 ext3 ext4 nfs nfs4 proc smbfs tmpfs xfs Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Merge branch 'patch-2' of https://github.com/sourcejedi/util-linuxKarel Zak2018-01-221-2/+2
|\ | | | | | | | | * 'patch-2' of https://github.com/sourcejedi/util-linux: mount(8): umount does not (anymore?) say `none busy'
| * mount(8): umount does not (anymore?) say `none busy'Alan Jenkins2018-01-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The closest I can get is with `mount`, so refer to that instead. # mount none -t proc /proc mount: /proc: none already mounted or mount point busy. # umount /proc umount: /proc: target is busy. # (cd /root; umount proc) umount: /proc: target is busy. Signed-off-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
* | mount: be more accurate in man page about propagation flagsKarel Zak2018-01-221-7/+8
|/ | | | | Addresses: https://github.com/karelzak/util-linux/issues/565 Signed-off-by: Karel Zak <kzak@redhat.com>
* mount(8): point people to the proc(5) page for mount optionsMike Frysinger2018-01-191-3/+3
| | | | | | | This page is out of date wrt proc mount options, so point it to the proc(5) page which is kept up to date. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mount: add hint about -t and root perms to the man pageKarel Zak2017-11-221-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: add more details about UUIDs and LABELs to the man pageKarel Zak2017-11-161-5/+15
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Fixed typo in mount.8Liam Ryan2017-10-091-1/+1
| | | | Signed-off-by: Liam Ryan <liamryandev@gmail.com>
* docs: remove repeated word from mount(8) man pageSami Kerola2017-09-181-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* mount: remove extN from mount.8 man pageKarel Zak2017-07-101-348/+2Star
| | | | | | | | | | The e2fsprogs package contains ext4(5) man page with all necessary information. We do not have to duplicate effort and maintain copy of the extN mount options in our mount.8. (We already do the same for XFS.) Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: remove some old history from manpagesRuediger Meier2017-06-291-72/+16Star
| | | | | | | | We assume that users will have a kernel >= 2.6.0 and removel references to earlier kernels. There are still a few ones left. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* libmount: ignore "bind" from fstab on command line "remount"Karel Zak2017-06-201-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current code always apply all flags from /etc/fstab on remount. Unfortunately remount+bind has special semantic and it's impossible from command line to avoid interaction with the "bind" from fstab. Example, fstab: /dev/sda1 /bar ext4 defaults 0 1 /bar /foo none bind 0 0 Command line: # mount /foo -o remount,rw produces: mount(... MS_REMOUNT|MS_BIND ) syscall This changes the per-mountpoint (VFS) ro flag to rw, but doesn't change the filesystem itself. This patch forces libmount to ignore "bind" from fstab when "-o remount" specified on command line. If you need remount+bind semantic you have to specify the "bind" flag on command line. This allow to differentiate between # mount /foo -o remount,bind,rw --> mount(MS_REMOUNT|MS_BIND) and # mount /foo -o remount,rw --> mount(MS_REMOUNT) Suggested-by: NeilBrown <neilb@suse.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* mount: fix man page typo (--bind,ro)Karel Zak2017-06-191-1/+1
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/464 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: support MS_RDONLY on write-protected devicesKarel Zak2017-04-261-1/+5
| | | | | | | | This feature is supported by mount(8) only. It seems better move this code to libmount. The results is more simple mount(8) and the feature is accessible for all libmount users. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: revert X-* and x-* meaningKarel Zak2016-12-091-14/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Let's hope this is last change necessary to cleanup x-* usage: x-* persistent option, stored in utab, available for umount, etc. X-* fstab comment only mount(8) supports x-mount.mkdir= as well as newly recommended X-mount.mkdir= Advantages: * less invasive * does not require exception for x-systemd * does not require rename x-initrd to X-initrd The systemd and dracut users will get the new (=fixed) functionality without a change in fstab configuration. This is the primary goal. Disadvantages: * not 100% compatible libmount behavior, x-* options have not been previously stored in utab. The API is the same, options will be still available, but on x-* libmount will write to /run/mount/utab. For now it seems only systemd uses x-*, and they like this behavior, so... Addresses: https://github.com/systemd/systemd/pull/4515 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: mount(8): Wording fixMichael Kerrisk2016-12-091-1/+1
| | | | | | | The correct word here is "practice"; "manner" would not be well understood by most English speakers. Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* docs: various pages: Use 'UID" and "GID", not "uid" and "gid" in man pagesMichael Kerrisk2016-12-091-8/+8
| | | | Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* docs: various pages: Use "ID" not "id" in man pagesMichael Kerrisk2016-12-091-2/+2
| | | | | | | The correct abbreviation of identifier is is "ID" (as used in many pages), not "id" (as used in a few pages). Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* docs: various pages: Use consistent terminology (set-user-ID and set-group-ID)Michael Kerrisk2016-12-091-5/+5
| | | | | | | | | | Use consistent terminology for set-user-ID and set-group-ID bits. There's much inconsistency in the pages. "suid", "set-user-identifier", "setuid". Stick with one terminology, "set-user-ID" and set-grout-ID, as suggested in man-pages(7). Signed-off-by: <mtk.man-pages@gmail.com>
* docs: various pages: Format pathnames as italic (.I)Michael Kerrisk2016-12-091-4/+6
| | | | | | | | | In the majority of pages, pathnames are formatted as Italic, which is the norm. However, there are several cases where they are formatted as bold. This patch fixes a number of those exceptions. Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* libmount: use x-systemd options as X-*Karel Zak2016-12-081-0/+4
| | | | | | | | | | | | | | | | The previous patch introduces X-* options namespace for options that have to be maintained in user space. Unfortunately, systemd users already use mount options that are necessary by umount or another operations. The conclusion from discussion with systemd guys is to store all the systemd options in userspace. It seems better to add one line exception to libmount than force all fstab users to rename x-systemd to X-systemd. Addresses: https://github.com/systemd/systemd/pull/3904 Signed-off-by: Karel Zak <kzak@redhat.com>
* libmount: introduce X-* commentsKarel Zak2016-12-081-3/+10
| | | | | | | | | | | | | x-* are fstab only and not stored in userspace (utab). In some cases it's not optional solution because the option is also necessary for umount or another operations. The X-* is exactly the same as x-*, but stored to utab (or mtab on old systems). It's usually bad idea to store mount options in userspace, but it's better to provide any solution that force users to bypass mount(8) (and friends) and implement 3rd-party incompatible solutions. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: various pages: Use "system call" not "syscall"Michael Kerrisk2016-12-051-3/+4
| | | | | | A minor wording fix... Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>