Originally Posted by nass
The aim is to mount and umount a usb stick from the command line as a normal user and use it normally (read , modify , create new files etc).
I have simple operations for USB storage devices. As a user I just plug in one flash drive at a time so I have the following in fstab. I created a directory /mnt/flash.
/dev/sdc1 /mnt/flash auto noauto,users 0 0
As a normal user I plug in the flash drive and type "mount /mnt/flash
The option "users
" allows a normal user to mount and any user to umount. You could also use "user
" without the trailing 's
' to restrict umount to only the user that mounted the device.
Occasionally I have to run as root to umount something when I unplug the flash drive without unmounting it first.
Most users want all of this to happen automatically no matter which device (/dev/sdxx) is used. Others on this forum would have to help with the automatic stuff (Which I turn off in Xfce).
EDIT: I ran "fdisk -l
" (L) as root after plugging in the flash drive to find out the device (/dev/sdc1
) that the flash drive would occupy.