← 返回命令列表

Linux command

pmount 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Mount

pmount [/dev/sdb1]

Example

pmount -t [ext4] [/dev/sdb1] [mylabel]

Example

pmount -t iso9660 -r [/dev/cdrom]

Example

pmount -t ntfs -w [/dev/sdX]

Example

pmount

说明

pmount allows regular users to mount removable devices without root privileges. It mounts to /media/ with the device name or specified label as mount point. Default mount flags are: async,atime,nodev,noexec,noauto,nosuid,user,rw. The tool enforces security restrictions: only devices in /media can be mounted, and dangerous options like suid are disabled. It's designed for desktop environments lacking automatic mounting.

参数

-t, --type _fstype_
Filesystem type
-r, --read-only
Mount read-only
-w, --read-write
Force read-write mount
-s, --sync
Mount with sync option (no write caching)
-A, --noatime
Mount with noatime option
-u, --umask _mask_
Set umask for mount
-e, --exec
Allow execution of binaries (default: noexec)
-c, --charset _charset_
Set I/O character set (default: utf8 in UTF-8 locale)
-d, --debug
Enable verbose debug messages
label
Mount point name under /media/

FAQ

What is the pmount command used for?

pmount allows regular users to mount removable devices without root privileges. It mounts to /media/ with the device name or specified label as mount point. Default mount flags are: async,atime,nodev,noexec,noauto,nosuid,user,rw. The tool enforces security restrictions: only devices in /media can be mounted, and dangerous options like suid are disabled. It's designed for desktop environments lacking automatic mounting.

How do I run a basic pmount example?

Run `pmount [/dev/sdb1]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -t, --type _fstype_ do in pmount?

Filesystem type