LinuxCommandLibrary

pmount

Mount removable devices as regular user

TLDR

Mount device to /media/

$ pmount [/dev/sdb1]
copy
Mount with specific filesystem and label
$ pmount -t [ext4] [/dev/sdb1] [mylabel]
copy
Mount CD-ROM read-only
$ pmount -t iso9660 -r [/dev/cdrom]
copy
Mount NTFS with read-write
$ pmount -t ntfs -w [/dev/sdX]
copy
Display mounted removable devices
$ pmount
copy

SYNOPSIS

pmount [-t type] [-r|-w] device [label]

DESCRIPTION

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.
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.

PARAMETERS

-t, --type _fstype_

Filesystem type
-r, --read-only
Mount read-only
-w, --read-write
Force read-write mount
-u, --umask _mask_
Set umask for mount
-e, --exec
Allow execution of binaries
label
Mount point name under /media/

CAVEATS

Only works with removable devices. Mount point created automatically under /media/. Use pumount to unmount. Requires pmount package and appropriate permissions.

HISTORY

pmount was created to provide secure user mounting before udisks and modern desktop automounters. It remains useful for minimal systems or when automatic mounting is undesired.

SEE ALSO

pumount(1), mount(8), udisksctl(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community