"requires_eject" property doesn't work for Nokia 770

Bug #24399 reported by Crispin Flowerday
This bug report is a duplicate of:  Bug #11517: Can not eject removable devices. Edit Remove
8
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Invalid
Medium
Martin Pitt

Bug Description

I have a Nokia 770 internet tablet, which can connect to the computer via a USB
cable, and when it does so, it exposes the RS-MMC card to the computer.

There was a patch added to the Ubuntu HAL in 0.5.3-0ubuntu8 which always sets
the "storage.requires_eject" property on the storage device. This causes
nautilus to display an error dialog when the volume is unmounted:

--
Unable to eject media
eject: unable to eject, last error: Invalid argument
--

Revision history for this message
Crispin Flowerday (crispin-flowerday-deactivatedaccount) wrote :

I managed to work around this using the following XML, which I put in
/usr/share/hal/fdi/policy/10osvendor/20-nokia770.fdi

<?xml version="1.0" encoding="UTF-8"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
  <!-- Don't eject the Nokia 770 -->
  <device>
    <match key="info.category" string="storage">
      <match key="storage.bus" string="usb">
        <match key="storage.model" string="770">
          <merge key="storage.requires_eject" type="bool">false</merge>
        </match>
      </match>
    </match>
  </device>
</deviceinfo>

Revision history for this message
Fred Blaise (chapeaurouge) wrote :

I have the same issue for my iPod.
I will adapt the workaround below to match the iPod strings.

Thanks.

Revision history for this message
Martin Pitt (pitti) wrote :

This is a long-standing and well-known bug, unfortunately it seems to be
nontrivial to fix.

This bug has been marked as a duplicate of bug 11517.

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.