ivman does not mount usb hard drives

Bug #157324 reported by Arron
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
The Distro Bakery
New
Undecided
Unassigned

Bug Description

By default ivman does not mount usb hard drives, because they are not considered "removeable". I believe that this is to be fixed in a future version of ivman, but for now it will not mount. This can be fixed by creating "/etc/hal/fdi/policy/mountpolicies.fdi" and put this in it:

  <?xml version="1.0" encoding="ISO-8859-1"?>
  <!-- -*- SGML -*- -->
    <deviceinfo version="0.2">
      <device>
        <match key="info.category" string="storage">
          <match key="storage.hotpluggable" bool="true">
            <merge key="storage.policy.should_mount" type="bool">true</merge>
          </match>
        </match>
      </device>
    </deviceinfo>

I found this info at http://gentoo-wiki.com/HOWTO_ivman#USB_disks_don.27t_mount_.28fixed_in_0.6.14.29

Revision history for this message
Gerd Bavendiek (gerd-bavendiek) wrote :

This is true also for Gutsy.

Running ivman 0.6.14-2ubuntu on Gutsy like this

ivman -d --nofork

gives this for an USB disk:

IvmConfig/IvmConfigCommon.c:227 (ivm_device_is_mountable) Device /dev/sdc1 won't be mounted because no mount policy was specified on volume or storage device and storage device does not appear to be removable

I connected my disks to an SLES10 SP1 box with an older ivman. This older version worked flawlessly.
I compared lshal -lu on both systems. There is no significant difference AFAIK. I furthermore compared the xml files in /etc/ivman. There definitely is no difference which would count.

So: Despite the GENTOO wiki entry mentionend above, 0.6.14 did fix this.

Kind regards

Gerd

Revision history for this message
Leon (leonbo) wrote :

Is there already a fix for this? It's really anoying. Not automounting usb drivers is so '97!

Revision history for this message
Leon (leonbo) wrote :

The gentoo solution worked! But it was wrongly indented. So making that right fixed my problem!
cat /etc/hal/fdi/policy/mountpolicies.fdi

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <device>
    <match key="info.category" string="storage">
      <match key="storage.hotpluggable" bool="true">
        <merge key="storage.policy.should_mount" type="bool">true</merge>
      </match>
    </match>
  </device>
</deviceinfo>

Revision history for this message
mous16 (mous16-info) wrote :

This workaround doesn't work on Ubuntu Intrepid beta.
I've installed only the base system, and added Xorg, hal and fluxbox.

Revision history for this message
L Schmiedl (lutz-schmiedl) wrote :

he same on my system with Ubuntu Intrepid final with Openbox and Ivman. But I found a solution after
I read the following other bug report:

https://bugs.launchpad.net/ubuntu/+source/pmount/+bug/281367

Now I use gnome-mount instead pmount in my IvmConfigBase.xml:

<ivm:Option name="mountcommand" value="gnome-mount -d '$hal.block.device$'" />

<ivm:Option name="umountcommand" value="gnome-mount -u '$hal.block.device$'" />

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.