Mount USB Drive Linux

Linux Blog  > Uncategorized >  Mount USB Drive Linux
0 Comments

Using pmount

There is a program called pmount available in the repositories which allows unprivileged users to mount drives as if they were using sudo, even without an entry in /etc/fstab. This is perfect for computers that have users without RootSudo access, like public terminals or thin clients.

pmount can be used with the same syntax as mount (but without sudo), or quite simply as follows:

pmount <device> [ label ]

Example:

  •  pmount /dev/sdb1 flash_drive

    This will mount the device /dev/sdb1 at /media/flash_drive.

If you leave off the label option, it will mount by default at /media/device.

To unmount the device, use pumount, like so:

pumount <device>

Example:

  •  pumount /dev/sdb1

Leave a Reply

Your email address will not be published. Required fields are marked *