Linux command
systemd-umount 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Unmount
systemd-umount [/mnt/usb]
Unmount
systemd-umount [/dev/sdb1]
Unmount
systemd-umount --discover [/dev/sdb1]
说明
systemd-umount is equivalent to systemd-mount --umount. It unmounts filesystems by creating transient systemd `.mount` units that handle the unmount operation. It can unmount by mount point path or device path. See the systemd-mount documentation for full details on options.
参数
- --discover
- Discover the mount point for a device automatically
- --no-block
- Do not wait for the unmount operation to complete
FAQ
What is the systemd-umount command used for?
systemd-umount is equivalent to systemd-mount --umount. It unmounts filesystems by creating transient systemd `.mount` units that handle the unmount operation. It can unmount by mount point path or device path. See the systemd-mount documentation for full details on options.
How do I run a basic systemd-umount example?
Run `systemd-umount [/mnt/usb]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --discover do in systemd-umount?
Discover the mount point for a device automatically