I would like to mount an external USB drive containing a NTFS filesystem automatically within GNOME as soon as I plug the drive into the computer.
I have the following system:
rpm -q centos-release
Linux pat 2.6.18-238.5.1.el5.centos.plus #1 SMP Mon Apr 4 18:19:56 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
I installed ntfs-3g and can manually read/write mount the drive using:
mount /dev/sdb1 /media/MyUSBDrive
/dev/sdb1 on /media/MyUSBDrive type fuseblk (rw,allow_other,blksize=4096)
If I run GNOME and plug in the drive then some automount procedure mounts the drive. However I can only read and cannot write as "normal" user:
touch: cannot touch „/media/MyUSBDrive/testfile02.txt“: Permission denied
Root can do it:
sudo touch /media/MyUSBDrive/testfile02.txt
Is there any way how I can set the automount procedure within GNOME so that it automatically mounts the drive rw for "normal" users?
I do not want a fixed destination mount point, that is I do not want to enter something like:
/dev/sdb1 /media/MyUSBDrive ntfs-3g rw,umask=0000,defaults 0 0
into /etc/fstab as I want to be able to plug in several USB drives named after their filesystem label (I want for example /media/PatsDrive /media/MyUSBDrive /media/SomeOtherDrive ...).
Can anyone help me? Thank you!