• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pmount: command not found

by Deepika

pmount is a command-line utility that allows normal users to mount arbitrary hotpluggable devices, such as USB drives, external hard drives, and digital cameras, without requiring root privileges.

Traditionally, mounting a filesystem requires superuser (root) privileges because it involves accessing and modifying the system’s directory hierarchy. However, this is not always convenient or practical, especially for end-users who need to frequently access removable storage devices.

With pmount, users can mount hotpluggable devices using the mount point specified in the /etc/fstab file, or automatically determine a suitable mount point based on device properties such as the filesystem type and label.

pmount also provides a number of options for controlling the mount behavior, such as specifying the mount point or file system type, setting permissions and ownership on the mounted filesystem, and specifying custom mount options.

By allowing normal users to mount removable storage devices, pmount simplifies the process of accessing and using external storage, while also helping to improve the security of the system by limiting the exposure of privileged accounts.

If you encounter the below error while running the command pmount:

pmount: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install pmount
Ubuntu apt-get install pmount
Kali Linux apt-get install pmount
Fedora dnf install pmount
Raspbian apt-get install pmount

pmount Command Examples

1. Mount a device below `/media/` (using device as mount point):

# pmount /dev/to/block/device

2. Mount a device with a specific filesystem type to `/media/label`:

# pmount --type filesystem /dev/to/block/device label

3. Mount a CD-ROM (filesystem type ISO9660) in read-only mode:

# pmount --type iso9660 --read-only /dev/cdrom

4. Mount an NTFS-formatted disk, forcing read-write access:

# pmount --type ntfs --read-write /dev/sdX

5. Display all mounted removable devices:

# pmount

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Convert PuTTY’s private key (.ppk) to SSH key
  2. How to enable text colour in vi similar to vim in CentOS/RHEL
  3. CentOS / RHE 7 : How to Prevent Users from Using the Last 10 Passwords
  4. nslookup Command Examples in Linux
  5. lxterminal Command Examples in Linux
  6. Linux OS Service ‘ldap’
  7. id: command not found
  8. How to Disable VNC Server from Xinetd in CentOS/RHEL 7
  9. rpcinfo: can’t contact rpcbind: : RPC: Authentication error; why = Client credential too weak
  10. service Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright