FS#9821 - HAL does not automount CD/DVD drives,USB drives in kde(kdemod)

Attached to Project: Arch Linux
Opened by Prakash (praka123) - Wednesday, 12 March 2008, 04:27 GMT
Last edited by Aaron Griffin (phrakture) - Thursday, 13 March 2008, 16:29 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
I installed archlinux via ftp method,later installed Xorg and kdemod.
HAL starts fine.nothing wrong found.but,it fails to mount cd/dvd drives or USB drives.
my /etc/fstab DVD drive entry looks like below:

/dev/dvd /media/cdrom0 udf,iso9660 ro,user,noauto,unhide 0 0
Additional info:
* package version(s)
***extra/hal 0.5.10-1
*extra/hal-info 0.20071212-1

***extra/dbus 1.0.2-4
***extra/dbus-glib 0.74-1
***extra/dbus-qt3 0.62-3

* config and/or log files etc.
/etc/hal got no files except directories:
/etc/hal/fdi
oot /etc/hal/fdi # ls
information policy preprobe
^these directories and nothing,no config files inside
Steps to reproduce:
install via ftp method.install xorg,install as "pacman -S kdemod "

+++++++++++++++++++++++
Fix that woked for me:
as per archwiki,I have made a file:
/etc/hal/fdi/policy/preferences.fdi

with below contents and saved:
____________________________________
<?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>
<merge key="volume.ignore" type="bool">false</merge>
</match>
</match>
</device>

<device>
<match key="block.is_volume" bool="true">
<match key="volume.size" compare_lt="8000000000">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.policy.mount_option.sync" type="bool">true</merge>
<merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
</match>
<match key="@block.storage_device:storage.removable" bool="true">
<merge key="volume.policy.mount_option.sync" type="bool">true</merge>
<merge key="volume.policy.mount_option.noatime" type="bool">true</merge>
</match>
</match>
<match key="volume.size" compare_ge="8000000000">
<match key="@block.storage_device:storage.hotpluggable" bool="true">
<merge key="volume.policy.mount_option.sync" type="bool">false</merge>
<merge key="volume.policy.mount_option.noatime" type="bool">false</merge>
</match>
<match key="@block.storage_device:storage.removable" bool="true">
<merge key="volume.policy.mount_option.sync" type="bool">false</merge>
<merge key="volume.policy.mount_option.noatime" type="bool">false</merge>
</match>
</match>
</match>
</device>


</deviceinfo>

____________________________________

restarted archlinux,THIS fixed automount problem for me.
Hope developers will fix this!
Thank You!
This task depends upon

Closed by  Aaron Griffin (phrakture)
Thursday, 13 March 2008, 16:29 GMT
Reason for closing:  Fixed
Comment by Prakash (praka123) - Wednesday, 12 March 2008, 04:29 GMT
This problem is experienced with kdemod Kde users,I think.after making /etc/hal/fdi/policy/preferences.fdi file with the above contents ,from next restart onwards,everything works fine.
please fix this! :D
Comment by Jan M. (funkyou) - Wednesday, 12 March 2008, 16:38 GMT
This should not be necessary, take a look here:

http://www.kdemod.ath.cx/bbs/viewtopic.php?id=607

It would be interesting to know how praka123 solved this issue,
either by creating the policy or following my advice ;)
Comment by Prakash (praka123) - Thursday, 13 March 2008, 08:45 GMT
Hey!@funkyou:
I am the same praka123 (:D)
Yes,after a fresh install,I have to edit

file to include the codes. :(
Yes,my groups are before itself:
__________________________________
localhost:~# cat /mnt/etc/group |grep prakash
disk::6:root,prakash
wheel::10:root,prakash
log::19:root,prakash
games::50:prakash
network:x:90:prakash
video:x:91:prakash
audio::92:prakash
optical::93:prakash,hal
storage:x:95:prakash,hal
users::100:prakash
___________________________
including optical group.now I have installed arch via ftp method(minimal) +X+kdemod.in the other machine also(a c2d 1GB ) the same problem HAL does not automount any drives/usb drives :(

/etc/hal/fdi/policy/preferences.fdi with above contents are necessary :| for every new box :(
please fix.
Comment by Prakash (praka123) - Thursday, 13 March 2008, 15:46 GMT
heh!after kdemod updates(yesterday?) ,everything is fine.can close this bug report.
thank you to all :)

Loading...