Sim, você pode fazer isso usando pmount
.
man pmount
NAME
pmount - mount arbitrary hotpluggable devices as normal user
pmount <device> [ label ]
Exemplo:
pmount /dev/sdb1 flash_drive
Isso montará o dispositivo /dev/sdb1
at /media/flash_drive
.
Política:
A montagem será bem-sucedida se todas as condições a seguir forem atendidas:
· device is a block device in /dev/
· device is not in /etc/fstab (if it is, pmount executes mount device
as the calling user to handle this transparently). See below for more
details.
· device is not already mounted according to /etc/mtab and /proc/mounts
· if the mount point already exists, there is no device already mounted
at it and the directory is empty
· device is removable (USB, FireWire, or MMC device, or
/sys/block/drive/removable is 1) or whitelisted in /etc/pmount.allow.
· device is not locked
Para desmontar o dispositivo, use pumount, da seguinte forma:
pumount <device>
Exemplo:
pumount /dev/sdb1