Yeah, that works, but with these extra hal policies the hard drives don't show up at all anymore, which is what I was really going for smile
My method does work with gnome 2.20 (gvm 2.17), just the way you would like it. Unfortunately gnome-volume-manager does not honor hal's request to disable automount, so that is why you need to patch gnome-volume-manager first.
Apparently, gnome 2.22 (gvm 2.22) honours the hal policy i used with gnome 2.20 (gvm 2.17) without patching gnome-volume-manager at all . I have yet to try that out though.
http://www.nabble.com/GNOME-2.22-has-be … #a16280245
The only other way i know of (without setting a policy in hal telling gvm not to autmount), is by using policykit to do temporary authorizations (like you can in mandriva 2008.1, fedora 9)
]]>Tick off "Mount removable drives when hotplugged", that's the one you want I think.
]]><?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="storage.hotpluggable" bool="false">
<match key="storage.removable" bool="false">
<merge key="storage.automount_enabled_hint" type="bool">false</merge>
</match>
</match>
</device>
<device>
<match key="volume.uuid" string="2E2C05502C05150D">
<merge key="volume.ignore" type="bool">true</merge>
</match>
<match key="volume.uuid" string="afba1791-11b8-496d-a232-04805eaef6b2">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>
Technically, the "storage.automount_enabled_hint" is not needed anymore, but it's not a bad thing to have it there.
I use UUID's to address my partitions, and that's pretty straight forward with the "volume.uuid" key, but for the people who want to use the normal partition names, I don't really know how that would work. There is a "volume.partition.number" key, but that only accepts a integer, and not a string like "sda6" for example.
You can find the UUID's of your partitions in /dev/disk/by-uuid/. Just do ls -l.
Thanks for all the help. One step closer to a perfect Arch system
]]>See :
http://wiki.archlinux.org/index.php/HAL
http://people.freedesktop.org/~david/ha … -spec.html
I did not want to go deeper into hal configuration, but I would be interested to know if you succeed this way and how you did it
]]>maybe add it to fstab with the noauto option? hal mounts everything that's not in the fstab...
You are right !
I have had the same problem as you and here is the solution :
Define a mount point in /etc/fstab for your volumes which is not in /media. gnome-volume-manger will mount every thing which is either not in /etc/fstab (through hal) or which has a mount point in /media.
Also use the option 'noauto' in /etc/fstab for that mount point to make sure the init process will not mount it at boot.
You might have a line like this in /etc/fstab :
/dev/sda1 /mnt/mywindows ntfs-3g defaults,noauto 0 0
where /dev/sda1 is your windows partition. You might also use UUIDs (see http://wiki.archlinux.org/index.php/Per … ce_naming)
I hope it helped !
]]>