You are not logged in.
I use this Udev rule to automatically mount devices. However, I cannot unmount them using Thunar; the error being:
The volume "CENTRIOS" was probably mounted manually on the command line.
I can, however, unmount the device manually using sudo umount, which leaves me to believe the issue might be related to UDEV mounting as root?
This thread says to use ck-launch-session to start the WM, i.e.:
exec ck-launch-session xmonad
However, this didn't work for me.
Here's some relevant info:
$ ls -l /media
drwxrwxr-x 12 root users 16K Jan 1 1970 CENTRIOS
$ ls -l /dev/sdb1
brw-rw---- 1 root disk 8, 17 Mar 11 19:07 /dev/sdb1
$ groups
tty disk wheel cron video audio optical storage camera users vboxusers
Offline
have a look at this post.
Offline
Simply unplugging it? Not really a solution
Offline
use a script to unmount the device by passing a parameter.
or thro' udev write to a file what device and where it is mounting.
if you finsh the work use the first method by reading the file udev wrote..
Linux users are expected little bit attentive to their system so unplugging is not a problem atleast to me.
Offline
I have added an alternative ruleset to the udev wiki page that uses pmount instead of mount to facilitate user unmounting of udev-mounted devices.
Offline
@tomk - I installed pmount, used your udev ruleset and changed to my username, but it doesn't work right. On boot only one of my usb partitions (NTFS) is mounted and the other ext4 remains unmounted. And I still cannot unmount the NTFS partition in Thunar.
Offline
OK. I''m not using it at boot-time myself, nor am I using Thunar or any other gui filemanager. I can try a boot with something plugged in, but you'll need to look elsewhere for your Thunar issue.
My rules are based on xduugu's ruleset immediately above in the wiki page - does that one work for you?
Offline
Yes, xduugu's ruleset does mount my partitions however I cannot unmount them as user.
Offline
As expected. If I get to do a boot-time test, I'll let you know how it goes.
Slightly off topic, but if you want your drives mounted at boot-time, you could just use /etc/fstab.
Offline
anonymous_user - fyi I had to reboot, so I plugged in a stick (VFAT) and an external drive (EXT3). Both were automounted successfully at boot, and both can be unmounted as user with pmount.
Offline
Slightly off topic, but if you want your drives mounted at boot-time, you could just use /etc/fstab.
My USB drive is not ready at the time fstab is called. And if I mount them in rc.local, I think I would still need to be root to unmount them.
anonymous_user - fyi I had to reboot, so I plugged in a stick (VFAT) and an external drive (EXT3). Both were automounted successfully at boot, and both can be unmounted as user with pmount.
I tried disconnecting and reconncting my drive and the ext4 partition still doesn't automount.
Offline
The latest pmount release does not support ext4. You have to patch it.
Offline
^ Drats.
Offline
Or you could do a pmount git build.
Offline