LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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

PARAMETERS

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

INSTALL

sudo apt install pmount
copy
sudo dnf install pmount
copy
nix profile install nixpkgs#pmount
copy

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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid