{
    "content": [
        {
            "type": "text",
            "text": "# systemd-umount (man)\n\n## NAME\n\nsystemd-mount, systemd-umount - Establish and destroy transient mount or auto-mount points\n\n## SYNOPSIS\n\nsystemd-mount [OPTIONS...] WHAT [WHERE]\nsystemd-mount [OPTIONS...] --list\nsystemd-mount [OPTIONS...] --umount WHAT|WHERE...\n\n## DESCRIPTION\n\nsystemd-mount may be used to create and start a transient .mount or .automount unit of the\nfile system WHAT on the mount point WHERE.\n\n## TLDR\n\n> This command is an alias of `systemd-mount --umount`.\n\n- View documentation for the original command:\n  `tldr systemd-mount`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (22 subsections)\n- **EXIT STATUS**\n- **THE UDEV DATABASE**\n- **EXAMPLE**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "systemd-umount",
        "section": "",
        "mode": "man",
        "summary": "systemd-mount, systemd-umount - Establish and destroy transient mount or auto-mount points",
        "synopsis": "systemd-mount [OPTIONS...] WHAT [WHERE]\nsystemd-mount [OPTIONS...] --list\nsystemd-mount [OPTIONS...] --umount WHAT|WHERE...",
        "tldr_summary": "This command is an alias of `systemd-mount --umount`.",
        "tldr_examples": [
            {
                "description": "View documentation for the original command",
                "command": "tldr systemd-mount"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": "--no-block",
                "arg": null,
                "description": "Do not synchronously wait for the requested operation to finish. If this is not specified, the job will be verified, enqueued and systemd-mount will wait until the mount or automount unit's start-up is completed. By passing this argument, it is only verified and enqueued."
            },
            {
                "flag": "-l",
                "long": "--full",
                "arg": null,
                "description": "Do not ellipsize the output when --list is specified."
            },
            {
                "flag": "",
                "long": "--no-pager",
                "arg": null,
                "description": "Do not pipe output into a pager."
            },
            {
                "flag": "",
                "long": "--no-legend",
                "arg": null,
                "description": "Do not print the legend, i.e. column headers and the footer with hints."
            },
            {
                "flag": "",
                "long": "--no-ask-password",
                "arg": null,
                "description": "Do not query the user for authentication for privileged operations. --quiet, -q Suppresses additional informational output while running."
            },
            {
                "flag": "",
                "long": "--discover",
                "arg": null,
                "description": "Enable probing of the mount source. This switch is implied if a single argument is specified on the command line. If passed, additional metadata is read from the device to enhance the unit to create. For example, a descriptive string for the transient units is generated from the file system label and device model. Moreover if a removable block device (e.g. USB stick) is detected an automount unit instead of a regular mount unit is created, with a short idle timeout, in order to ensure the file-system is placed in a clean state quickly after each access. --type=, -t Specifies the file system type to mount (e.g. \"vfat\" or \"ext4\"). If omitted or set to \"auto\", the file system type is determined automatically. --options=, -o Additional mount options for the mount point. --owner=USER Let the specified user USER own the mounted file system. This is done by appending uid= and gid= options to the list of mount options. Only certain file systems support this option."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Takes a boolean argument, defaults to on. Controls whether to run a file system check immediately before the mount operation. In the automount case (see --automount= below) the check will be run the moment the first access to the device is made, which might slightly delay the access."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Provide a description for the mount or automount unit. See Description= in systemd.unit(5). --property=, -p Sets a unit property for the mount unit that is created. This takes an assignment in the same format as systemctl(1)'s set-property command."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Takes a boolean argument. Controls whether to create an automount point or a regular mount point. If true an automount point is created that is backed by the actual file system at the time of first access. If false a plain mount point is created that is backed by the actual file system immediately. Automount points have the benefit that the file system stays unmounted and hence in clean state until it is first accessed. In automount mode the --timeout-idle-sec= switch (see below) may be used to ensure the mount point is unmounted automatically after the last access and an idle period passed. If this switch is not specified it defaults to false. If not specified and --discover is used (or only a single argument passed, which implies --discover, see above), and the file system block device is detected to be removable, it is set to true, in order to increase the chance that the file system is in a fully clean state if the device is unplugged abruptly."
            },
            {
                "flag": "-A",
                "long": null,
                "arg": null,
                "description": "Equivalent to --automount=yes."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Takes a time value that controls the idle timeout in automount mode. If set to \"infinity\" (the default) no automatic unmounts are done. Otherwise the file system backing the automount point is detached after the last access and the idle timeout passed. See systemd.time(7) for details on the time syntax supported. This option has no effect if only a regular mount is established, and automounting is not used. Note that if --discover is used (or only a single argument passed, which implies --discover, see above), and the file system block device is detected to be removable, --timeout-idle-sec=1s is implied."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Similar to --property=, but applies additional properties to the automount unit created, instead of the mount unit."
            },
            {
                "flag": "",
                "long": "--bind-device",
                "arg": null,
                "description": "This option only has an effect in automount mode, and controls whether the automount unit shall be bound to the backing device's lifetime. If set, the automount point will be removed automatically when the backing device vanishes. By default the automount point stays around, and subsequent accesses will block until backing device is replugged. This option has no effect in case of non-device mounts, such as network or virtual file system mounts. Note that if --discover is used (or only a single argument passed, which implies --discover, see above), and the file system block device is detected to be removable, this option is implied."
            },
            {
                "flag": "",
                "long": "--list",
                "arg": null,
                "description": "Instead of establishing a mount or automount point, print a terse list of block devices containing file systems that may be mounted with \"systemd-mount\", along with useful metadata such as labels, etc."
            },
            {
                "flag": "-u",
                "long": "--umount",
                "arg": null,
                "description": "Stop the mount and automount units corresponding to the specified mount points WHERE or the devices WHAT. systemd-mount with this option or systemd-umount can take multiple arguments which can be mount points, devices, /etc/fstab style node names, or backing files corresponding to loop devices, like systemd-mount --umount /path/to/umount /dev/sda1 UUID=xxxxxx-xxxx LABEL=xxxxx /path/to/disk.img. Note that when -H or -M is specified, only absolute paths to mount points are supported."
            },
            {
                "flag": "-G",
                "long": "--collect",
                "arg": null,
                "description": "Unload the transient unit after it completed, even if it failed. Normally, without this option, all mount units that mount and failed are kept in memory until the user explicitly resets their failure state with systemctl reset-failed or an equivalent command. On the other hand, units that stopped successfully are unloaded immediately. If this option is turned on the \"garbage collection\" of units is more aggressive, and unloads units regardless if they exited successfully or failed. This option is a shortcut for --property=CollectMode=inactive-or-failed, see the explanation for CollectMode= in systemd.unit(5) for further information."
            },
            {
                "flag": "",
                "long": "--user",
                "arg": null,
                "description": "Talk to the service manager of the calling user, rather than the service manager of the system."
            },
            {
                "flag": "",
                "long": "--system",
                "arg": null,
                "description": "Talk to the service manager of the system. This is the implied default."
            },
            {
                "flag": "-H",
                "long": null,
                "arg": null,
                "description": "Execute the operation remotely. Specify a hostname, or a username and hostname separated by \"@\", to connect to. The hostname may optionally be suffixed by a port ssh is listening on, separated by \":\", and then a container name, separated by \"/\", which connects directly to a specific container on the specified host. This will use SSH to talk to the remote machine manager instance. Container names may be enumerated with machinectl -H HOST. Put IPv6 addresses in brackets."
            },
            {
                "flag": "-M",
                "long": null,
                "arg": null,
                "description": "Execute operation on a local container. Specify a container name to connect to, optionally prefixed by a user name to connect as and a separating \"@\" character. If the special string \".host\" is used in place of the container name, a connection to the local system is made (which is useful to connect to a specific user's user bus: \"--user --machine=lennart@.host\"). If the \"@\" syntax is not used, the connection is made as root user. If the \"@\" syntax is used either the left hand side or the right hand side may be omitted (but not both) in which case the local user name and \".host\" are implied."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Print a short help text and exit."
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Print a short version string and exit."
            }
        ],
        "examples": [
            "Use a udev rule like the following to automatically mount all USB storage plugged in:",
            "ACTION==\"add\", SUBSYSTEMS==\"usb\", SUBSYSTEM==\"block\", ENV{IDFSUSAGE}==\"filesystem\", \\",
            "RUN{program}+=\"/usr/bin/systemd-mount --no-block --automount=yes --collect $devnode\""
        ],
        "see_also": [
            {
                "name": "systemd",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
            },
            {
                "name": "mount",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/mount/8/json"
            },
            {
                "name": "systemctl",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemctl/1/json"
            },
            {
                "name": "systemd.unit",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/systemd.unit/5/json"
            },
            {
                "name": "systemd.mount",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/systemd.mount/5/json"
            },
            {
                "name": "systemd.automount",
                "section": "5",
                "url": "https://www.chedong.com/phpMan.php/man/systemd.automount/5/json"
            },
            {
                "name": "systemd-run",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemd-run/1/json"
            },
            {
                "name": "SYSTEMD-MOUNT",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/SYSTEMD-MOUNT/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 31,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "--no-block",
                        "lines": 5,
                        "long": "--no-block"
                    },
                    {
                        "name": "-l --full",
                        "lines": 2,
                        "flag": "-l",
                        "long": "--full"
                    },
                    {
                        "name": "--no-pager",
                        "lines": 2,
                        "long": "--no-pager"
                    },
                    {
                        "name": "--no-legend",
                        "lines": 2,
                        "long": "--no-legend"
                    },
                    {
                        "name": "--no-ask-password",
                        "lines": 5,
                        "long": "--no-ask-password"
                    },
                    {
                        "name": "--discover",
                        "lines": 20,
                        "long": "--discover"
                    },
                    {
                        "name": "--fsck=",
                        "lines": 5
                    },
                    {
                        "name": "--description=",
                        "lines": 7
                    },
                    {
                        "name": "--automount=",
                        "lines": 14
                    },
                    {
                        "name": "-A",
                        "lines": 2,
                        "flag": "-A"
                    },
                    {
                        "name": "--timeout-idle-sec=",
                        "lines": 10
                    },
                    {
                        "name": "--automount-property=",
                        "lines": 3
                    },
                    {
                        "name": "--bind-device",
                        "lines": 11,
                        "long": "--bind-device"
                    },
                    {
                        "name": "--list",
                        "lines": 4,
                        "long": "--list"
                    },
                    {
                        "name": "-u --umount",
                        "lines": 7,
                        "flag": "-u",
                        "long": "--umount"
                    },
                    {
                        "name": "-G --collect",
                        "lines": 9,
                        "flag": "-G",
                        "long": "--collect"
                    },
                    {
                        "name": "--user",
                        "lines": 3,
                        "long": "--user"
                    },
                    {
                        "name": "--system",
                        "lines": 2,
                        "long": "--system"
                    },
                    {
                        "name": "-H --host=",
                        "lines": 7,
                        "flag": "-H"
                    },
                    {
                        "name": "-M --machine=",
                        "lines": 8,
                        "flag": "-M"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "THE UDEV DATABASE",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "EXAMPLE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "systemd-mount, systemd-umount - Establish and destroy transient mount or auto-mount points\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "systemd-mount [OPTIONS...] WHAT [WHERE]\n\nsystemd-mount [OPTIONS...] --list\n\nsystemd-mount [OPTIONS...] --umount WHAT|WHERE...\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "systemd-mount may be used to create and start a transient .mount or .automount unit of the\nfile system WHAT on the mount point WHERE.\n\nIn many ways, systemd-mount is similar to the lower-level mount(8) command, however instead\nof executing the mount operation directly and immediately, systemd-mount schedules it through\nthe service manager job queue, so that it may pull in further dependencies (such as parent\nmounts, or a file system checker to execute a priori), and may make use of the auto-mounting\nlogic.\n\nThe command takes either one or two arguments. If only one argument is specified it should\nrefer to a block device or regular file containing a file system (e.g.  \"/dev/sdb1\" or\n\"/path/to/disk.img\"). The block device or image file is then probed for a file system label\nand other metadata, and is mounted to a directory below /run/media/system/ whose name is\ngenerated from the file system label. In this mode the block device or image file must exist\nat the time of invocation of the command, so that it may be probed. If the device is found to\nbe a removable block device (e.g. a USB stick), an automount point is created instead of a\nregular mount point (i.e. the --automount= option is implied, see below).\n\nIf two arguments are specified, the first indicates the mount source (the WHAT) and the\nsecond indicates the path to mount it on (the WHERE). In this mode no probing of the source\nis attempted, and a backing device node doesn't have to exist. However, if this mode is\ncombined with --discover, device node probing for additional metadata is enabled, and – much\nlike in the single-argument case discussed above – the specified device has to exist at the\ntime of invocation of the command.\n\nUse the --list command to show a terse table of all local, known block devices with file\nsystems that may be mounted with this command.\n\nsystemd-umount can be used to unmount a mount or automount point. It is the same as\nsystemd-mount --umount.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "The following options are understood:\n",
                "subsections": [
                    {
                        "name": "--no-block",
                        "content": "Do not synchronously wait for the requested operation to finish. If this is not\nspecified, the job will be verified, enqueued and systemd-mount will wait until the mount\nor automount unit's start-up is completed. By passing this argument, it is only verified\nand enqueued.\n",
                        "long": "--no-block"
                    },
                    {
                        "name": "-l --full",
                        "content": "Do not ellipsize the output when --list is specified.\n",
                        "flag": "-l",
                        "long": "--full"
                    },
                    {
                        "name": "--no-pager",
                        "content": "Do not pipe output into a pager.\n",
                        "long": "--no-pager"
                    },
                    {
                        "name": "--no-legend",
                        "content": "Do not print the legend, i.e. column headers and the footer with hints.\n",
                        "long": "--no-legend"
                    },
                    {
                        "name": "--no-ask-password",
                        "content": "Do not query the user for authentication for privileged operations.\n\n--quiet, -q\nSuppresses additional informational output while running.\n",
                        "long": "--no-ask-password"
                    },
                    {
                        "name": "--discover",
                        "content": "Enable probing of the mount source. This switch is implied if a single argument is\nspecified on the command line. If passed, additional metadata is read from the device to\nenhance the unit to create. For example, a descriptive string for the transient units is\ngenerated from the file system label and device model. Moreover if a removable block\ndevice (e.g. USB stick) is detected an automount unit instead of a regular mount unit is\ncreated, with a short idle timeout, in order to ensure the file-system is placed in a\nclean state quickly after each access.\n\n--type=, -t\nSpecifies the file system type to mount (e.g.  \"vfat\" or \"ext4\"). If omitted or set to\n\"auto\", the file system type is determined automatically.\n\n--options=, -o\nAdditional mount options for the mount point.\n\n--owner=USER\nLet the specified user USER own the mounted file system. This is done by appending uid=\nand gid= options to the list of mount options. Only certain file systems support this\noption.\n",
                        "long": "--discover"
                    },
                    {
                        "name": "--fsck=",
                        "content": "Takes a boolean argument, defaults to on. Controls whether to run a file system check\nimmediately before the mount operation. In the automount case (see --automount= below)\nthe check will be run the moment the first access to the device is made, which might\nslightly delay the access.\n"
                    },
                    {
                        "name": "--description=",
                        "content": "Provide a description for the mount or automount unit. See Description= in\nsystemd.unit(5).\n\n--property=, -p\nSets a unit property for the mount unit that is created. This takes an assignment in the\nsame format as systemctl(1)'s set-property command.\n"
                    },
                    {
                        "name": "--automount=",
                        "content": "Takes a boolean argument. Controls whether to create an automount point or a regular\nmount point. If true an automount point is created that is backed by the actual file\nsystem at the time of first access. If false a plain mount point is created that is\nbacked by the actual file system immediately. Automount points have the benefit that the\nfile system stays unmounted and hence in clean state until it is first accessed. In\nautomount mode the --timeout-idle-sec= switch (see below) may be used to ensure the mount\npoint is unmounted automatically after the last access and an idle period passed.\n\nIf this switch is not specified it defaults to false. If not specified and --discover is\nused (or only a single argument passed, which implies --discover, see above), and the\nfile system block device is detected to be removable, it is set to true, in order to\nincrease the chance that the file system is in a fully clean state if the device is\nunplugged abruptly.\n"
                    },
                    {
                        "name": "-A",
                        "content": "Equivalent to --automount=yes.\n",
                        "flag": "-A"
                    },
                    {
                        "name": "--timeout-idle-sec=",
                        "content": "Takes a time value that controls the idle timeout in automount mode. If set to \"infinity\"\n(the default) no automatic unmounts are done. Otherwise the file system backing the\nautomount point is detached after the last access and the idle timeout passed. See\nsystemd.time(7) for details on the time syntax supported. This option has no effect if\nonly a regular mount is established, and automounting is not used.\n\nNote that if --discover is used (or only a single argument passed, which implies\n--discover, see above), and the file system block device is detected to be removable,\n--timeout-idle-sec=1s is implied.\n"
                    },
                    {
                        "name": "--automount-property=",
                        "content": "Similar to --property=, but applies additional properties to the automount unit created,\ninstead of the mount unit.\n"
                    },
                    {
                        "name": "--bind-device",
                        "content": "This option only has an effect in automount mode, and controls whether the automount unit\nshall be bound to the backing device's lifetime. If set, the automount point will be\nremoved automatically when the backing device vanishes. By default the automount point\nstays around, and subsequent accesses will block until backing device is replugged. This\noption has no effect in case of non-device mounts, such as network or virtual file system\nmounts.\n\nNote that if --discover is used (or only a single argument passed, which implies\n--discover, see above), and the file system block device is detected to be removable,\nthis option is implied.\n",
                        "long": "--bind-device"
                    },
                    {
                        "name": "--list",
                        "content": "Instead of establishing a mount or automount point, print a terse list of block devices\ncontaining file systems that may be mounted with \"systemd-mount\", along with useful\nmetadata such as labels, etc.\n",
                        "long": "--list"
                    },
                    {
                        "name": "-u --umount",
                        "content": "Stop the mount and automount units corresponding to the specified mount points WHERE or\nthe devices WHAT.  systemd-mount with this option or systemd-umount can take multiple\narguments which can be mount points, devices, /etc/fstab style node names, or backing\nfiles corresponding to loop devices, like systemd-mount --umount /path/to/umount\n/dev/sda1 UUID=xxxxxx-xxxx LABEL=xxxxx /path/to/disk.img. Note that when -H or -M is\nspecified, only absolute paths to mount points are supported.\n",
                        "flag": "-u",
                        "long": "--umount"
                    },
                    {
                        "name": "-G --collect",
                        "content": "Unload the transient unit after it completed, even if it failed. Normally, without this\noption, all mount units that mount and failed are kept in memory until the user\nexplicitly resets their failure state with systemctl reset-failed or an equivalent\ncommand. On the other hand, units that stopped successfully are unloaded immediately. If\nthis option is turned on the \"garbage collection\" of units is more aggressive, and\nunloads units regardless if they exited successfully or failed. This option is a shortcut\nfor --property=CollectMode=inactive-or-failed, see the explanation for CollectMode= in\nsystemd.unit(5) for further information.\n",
                        "flag": "-G",
                        "long": "--collect"
                    },
                    {
                        "name": "--user",
                        "content": "Talk to the service manager of the calling user, rather than the service manager of the\nsystem.\n",
                        "long": "--user"
                    },
                    {
                        "name": "--system",
                        "content": "Talk to the service manager of the system. This is the implied default.\n",
                        "long": "--system"
                    },
                    {
                        "name": "-H --host=",
                        "content": "Execute the operation remotely. Specify a hostname, or a username and hostname separated\nby \"@\", to connect to. The hostname may optionally be suffixed by a port ssh is listening\non, separated by \":\", and then a container name, separated by \"/\", which connects\ndirectly to a specific container on the specified host. This will use SSH to talk to the\nremote machine manager instance. Container names may be enumerated with machinectl -H\nHOST. Put IPv6 addresses in brackets.\n",
                        "flag": "-H"
                    },
                    {
                        "name": "-M --machine=",
                        "content": "Execute operation on a local container. Specify a container name to connect to,\noptionally prefixed by a user name to connect as and a separating \"@\" character. If the\nspecial string \".host\" is used in place of the container name, a connection to the local\nsystem is made (which is useful to connect to a specific user's user bus: \"--user\n--machine=lennart@.host\"). If the \"@\" syntax is not used, the connection is made as root\nuser. If the \"@\" syntax is used either the left hand side or the right hand side may be\nomitted (but not both) in which case the local user name and \".host\" are implied.\n",
                        "flag": "-M"
                    },
                    {
                        "name": "-h --help",
                        "content": "Print a short help text and exit.\n",
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "content": "Print a short version string and exit.\n",
                        "long": "--version"
                    }
                ]
            },
            "EXIT STATUS": {
                "content": "On success, 0 is returned, a non-zero failure code otherwise.\n",
                "subsections": []
            },
            "THE UDEV DATABASE": {
                "content": "If --discover is used, systemd-mount honors a couple of additional udev properties of block\ndevices:\n\nSYSTEMDMOUNTOPTIONS=\nThe mount options to use, if --options= is not used.\n\nSYSTEMDMOUNTWHERE=\nThe file system path to place the mount point at, instead of the automatically generated\none.\n",
                "subsections": []
            },
            "EXAMPLE": {
                "content": "Use a udev rule like the following to automatically mount all USB storage plugged in:\n\nACTION==\"add\", SUBSYSTEMS==\"usb\", SUBSYSTEM==\"block\", ENV{IDFSUSAGE}==\"filesystem\", \\\nRUN{program}+=\"/usr/bin/systemd-mount --no-block --automount=yes --collect $devnode\"\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "systemd(1), mount(8), systemctl(1), systemd.unit(5), systemd.mount(5), systemd.automount(5),\nsystemd-run(1)\n\n\n\nsystemd 249                                                                         SYSTEMD-MOUNT(1)",
                "subsections": []
            }
        }
    }
}