Linux command
pumount 命令
安全
权限或系统影响较大,执行前请核对目标。
常用示例
Unmount device
pumount [/dev/sdb1]
Unmount by mount point
pumount [/media/usb]
Unmount by label
pumount [LABEL]
Lazy unmount
pumount --lazy [/dev/sdb1]
说明
pumount is the counterpart to pmount for unmounting removable devices without root privileges. It is a wrapper around the standard umount that permits normal users to unmount removable devices without a matching /etc/fstab entry. It handles encrypted dm-crypt/LUKS volumes and ensures proper cleanup. It also supports unmounting devices that have been brutally removed.
参数
- -l, --lazy
- Lazy unmount (detach filesystem now, clean up when no longer busy). Use with caution as it may cause data loss.
- --luks-force
- Force LUKS close even if pmount did not open the device.
- -d, --debug
- Enable verbose debug messages.
- --version
- Print version number and exit.
FAQ
What is the pumount command used for?
pumount is the counterpart to pmount for unmounting removable devices without root privileges. It is a wrapper around the standard umount that permits normal users to unmount removable devices without a matching /etc/fstab entry. It handles encrypted dm-crypt/LUKS volumes and ensures proper cleanup. It also supports unmounting devices that have been brutally removed.
How do I run a basic pumount example?
Run `pumount [/dev/sdb1]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --lazy do in pumount?
Lazy unmount (detach filesystem now, clean up when no longer busy). Use with caution as it may cause data loss.