View previous topic :: View next topic |
Author |
Message |
hippie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Mar 2004 Posts: 41
|
Posted: Sun Apr 16, 2006 7:38 pm Post subject: ivman config |
|
|
Hi
I've trouble with ivman when using both my cdrecorders. Ivman tries to mount them at the same mount point, where do I change the mount point?
Ivman log:
MOUNTING OF FIRST CD
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/volume_label_NewCD
IvmConfig/IvmConfigCommon.c:150 (ivm_device_is_mountable) UDI /org/freedesktop/Hal/devices/volume_label_NewCD is device /dev/hdc
IvmConfig/IvmConfigCommon.c:253 (ivm_device_is_mountable) Device /dev/hdc appears to be mountable
manager.c:971 (ivm_media_changed) Giving other programs a chance to mount...
manager.c:982 (ivm_media_changed) Attempting to mount device /dev/hdc
manager.c:766 (ivm_run_command) Running: pmount -u 007 '/dev/hdc' 'cdrecorder'
manager.c:1032 (ivm_media_changed) Device /dev/hdc is mounted at /media/cdrecorder
IvmConfig/IvmConfigCommon.c:150 (ivm_device_is_mountable) UDI /org/freedesktop/Hal/devices/volume_label_NewCD is device /dev/hdc
IvmConfig/IvmConfigCommon.c:253 (ivm_device_is_mountable) Device /dev/hdc appears to be mountable
manager.c:823 (ivm_is_dvd) Checking for video DVD in device '/dev/hdc' mounted at '/media/cdrecorder'
manager.c:842 (ivm_is_dvd) /dev/hdc does not look like a video DVD
IvmConfig/IvmConfigCommon.c:150 (ivm_device_is_mountable) UDI /org/freedesktop/Hal/devices/volume_label_NewCD is device /dev/hdc
IvmConfig/IvmConfigCommon.c:253 (ivm_device_is_mountable) Device /dev/hdc appears to be mountable
hal_interface.c:142 (hal_device_property_modified) Mounted: /org/freedesktop/Hal/devices/volume_label_NewCD
hal_interface.c:156 (hal_device_property_modified) Devices table has 1 entries
hal_interface.c:281 (print_device) "/org/freedesktop/Hal/devices/volume_label_NewCD" "/dev/hdc"
IvmConfig/IvmConfigCommon.c:150 (ivm_device_is_mountable) UDI /org/freedesktop/Hal/devices/volume_label_NewCD is device /dev/hdc
IvmConfig/IvmConfigCommon.c:253 (ivm_device_is_mountable) Device /dev/hdc appears to be mountable
(NOT-) MOUNTING OF SECOND CD
hal_interface.c:47 (hal_device_added) New Device: /org/freedesktop/Hal/devices/volume_label_Soul_60s70s80s90
IvmConfig/IvmConfigCommon.c:150 (ivm_device_is_mountable) UDI /org/freedesktop/Hal/devices/volume_label_Soul_60s70s80s90 is device /dev/hdd
IvmConfig/IvmConfigCommon.c:253 (ivm_device_is_mountable) Device /dev/hdd appears to be mountable
manager.c:971 (ivm_media_changed) Giving other programs a chance to mount...
manager.c:982 (ivm_media_changed) Attempting to mount device /dev/hdd
manager.c:766 (ivm_run_command) Running: pmount -u 007 '/dev/hdd' 'cdrecorder'
Error: directory /media/cdrecorder is not empty
manager.c:998 (ivm_media_changed) /org/freedesktop/Hal/devices/volume_label_Soul_60s70s80s90 wasn't mounted, by us or by others...
IvmConfig/IvmConfigCommon.c:150 (ivm_device_is_mountable) UDI /org/freedesktop/Hal/devices/volume_label_Soul_60s70s80s90 is device /dev/hdd
IvmConfig/IvmConfigCommon.c:253 (ivm_device_is_mountable) Device /dev/hdd appears to be mountable |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
katswaio n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/580945820442da27a53b8e.jpg)
Joined: 28 Jan 2006 Posts: 21 Location: Iasi,ro
|
Posted: Sun Apr 16, 2006 11:36 pm Post subject: |
|
|
Hi
run 'lshal' to see the UDI of one of the cdrecorders.
for /dev/hdc, you wold do:
inside less search for the '/dev/hdc' string by typeing //dev/hdc. If you have mounted the drive, you might get multiple matches; consider the first one.
on my system I found this:
Code: |
udi = '/org/freedesktop/Hal/devices/storage_model_SAMSUNG_CD_R/RW_DRIVE_SW_252F'
info.addons = {'hald-addon-storage'} (string list)
storage.policy.desired_mount_point = 'cdrecorder' (string)
storage.policy.mount_filesystem = 'auto' (string)
storage.policy.should_mount = true (bool)
block.storage_device = '/org/freedesktop/Hal/devices/storage_model_SAMSUNG_CD_R/RW_DRIVE_SW_252F' (string)
info.udi = '/org/freedesktop/Hal/devices/storage_model_SAMSUNG_CD_R/RW_DRIVE_SW_252F' (string)
storage.cdrom.write_speed = 9173 (0x23d5) (int)
storage.cdrom.read_speed = 176 (0xb0) (int)
storage.cdrom.support_media_changed = true (bool)
storage.cdrom.dvdplusrdl = false (bool)
storage.cdrom.dvdplusrw = false (bool)
storage.cdrom.dvdplusr = false (bool)
storage.cdrom.dvdram = false (bool)
storage.cdrom.dvdrw = false (bool)
storage.cdrom.dvdr = false (bool)
storage.cdrom.dvd = false (bool)
storage.cdrom.cdrw = true (bool)
storage.cdrom.cdr = true (bool)
storage.firmware_version = 'R801' (string)
storage.requires_eject = true (bool)
storage.hotpluggable = false (bool)
info.capabilities = {'storage', 'block', 'storage.cdrom'} (string list)
info.category = 'storage' (string)
info.product = 'SAMSUNG CD-R/RW DRIVE SW-252F' (string)
storage.removable = true (bool)
storage.physical_device = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0' (string)
storage.drive_type = 'cdrom' (string)
storage.vendor = '' (string)
storage.model = 'SAMSUNG CD-R/RW DRIVE SW-252F' (string)
storage.automount_enabled_hint = true (bool)
storage.media_check_enabled = true (bool)
storage.no_partitions_hint = true (bool)
storage.bus = 'ide' (string)
block.is_volume = false (bool)
block.minor = 0 (0x0) (int)
block.major = 22 (0x16) (int)
block.device = '/dev/hdc' (string)
linux.hotplug_type = 3 (0x3) (int)
info.parent = '/org/freedesktop/Hal/devices/pci_1106_571_ide_1_0' (string)
linux.sysfs_path_device = '/sys/block/hdc' (string)
linux.sysfs_path = '/sys/block/hdc' (string)
|
note the following lines:
udi = '/org/freedesktop/Hal/devices/storage_model_SAMSUNG_CD_R/RW_DRIVE_SW_252F'
block.device = '/dev/hdc' (string)
storage.policy.desired_mount_point = 'cdrecorder' (string)
This tells you that /dev/hdc will be mounted to /media/cdrecorder.
You may change this with the hal-set-property command, like this
Code: |
[02:13:00 dorin@kd] $ sudo hal-set-property --udi /org/freedesktop/Hal/devices/storage_model_SAMSUNG_CD_R/RW_DRIVE_SW_252F --key storage.policy.desired_mount_point --string 'mycdrom'
|
I hope this works for you.
Reading the man page of ivman might also help.
Good luck! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mark_alec Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/153763560547ad83e5abc42.png)
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Mon Apr 17, 2006 1:16 am Post subject: |
|
|
Moved from Installing Gentoo to Kernel & Hardware. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hippie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Mar 2004 Posts: 41
|
Posted: Mon Apr 17, 2006 10:24 am Post subject: |
|
|
Thanx
It works fine, although the changes made by me disapeared when restarting the pc. I've try to put below text in /etc/hal/fdi/policy/10-local_settings to get it permenent, but it didn't work, suggestions?
Code: | <?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<!-- Set mountpint for /dev/hdc -->
<match key="block.device" string="/dev/hdc">
<merge key="storage.policy.desired_mount_point" type="string">cdrw</merge>
</match>
<!-- Set mountpint for /dev/hdd -->
<match key="block.device" string="/dev/hdd">
<merge key="storage.policy.desired_mount_point" type="string">dvdrw</merge>
</match>
</device>
</deviceinfo> |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
katswaio n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/580945820442da27a53b8e.jpg)
Joined: 28 Jan 2006 Posts: 21 Location: Iasi,ro
|
Posted: Mon Apr 17, 2006 2:56 pm Post subject: |
|
|
I don't have hal installed with doc use flag to check out the docs, but my guess is that you should have the same layout in /etc/hal/ as in the /usr/share/hal/ directory tree. Try moving that file to /etc/hal/fdi/policy/20thirdparty/10-storage-policy.fdi or /etc/hal/fdi/policy/10osvendor/10-storage-policy.fdi, than restart hald: Code: | /etc/init.d/hald restart |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hippie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Mar 2004 Posts: 41
|
Posted: Mon Apr 17, 2006 7:47 pm Post subject: |
|
|
I moved /usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi to /etc/hal/fdi/policy/10-storage-policy.fdi, and edited the prefered mount points (just after the cdrom match statement) to my prefered mount points and I had everything working fine.
Thanks
:-)
(Sorry for the questions, but ivman and hal isn't very well documentet) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|