Originally Posted by
sneax
I have made an entry for my removable usb hard disk, it mounts ok (but I have to do mound manually) is there a way so that it would mount the hard disk as soon as I plug it in (hotplug)? It was like that when installing ubuntu but ntfs-config broke that so I'm trying to remake my fstab.
That used to work for me, but after recently upgrading my server to Feisty, my fstab-listed vfat USB drive no longer automounts, either. I noticed that Feisty renamed a bunch of things. My disks changed names from hd* to sd*, and my external drive's symlink in /dev/disk/by-id was renamed. This renaming broke my fstab, of course (I refuse to use UUIDs, since IMO there is no sane reason to use such unreadable identifiers when suitable alternatives exist).
I believe that pmount is responsible for automounting.
I can also mount the usb stick fine as root but i want it to automount (hotplug) and be usable as user.
You didn't say what format your USB stick was. For vfat, I use the following in the options column of fstab:
Code:
uid=1000,gid=1000,umask=077
uid is your normal user's numeric user ID as listed in /etc/passwd. gid is for the group ID as listed in /etc/group. These control which user owns the files on disk. Finally, the umask sets up the permissions. Setting it to 000 would allow all users full control.
I have no issues with my ntfs-3g partition, so if that's the one you're having issues with, I don't know how to help you.
==================
By the way, if you still can't manage to get anything that's mentioned in fatab to be automounted, you might be able to hack the pmount source code to force pmount to use the options you want (which, last I checked were hard-coded), then re-compile pmount. This process, however, isn't for the faint of heart.
Bookmarks