media automount fails to remove mountpoint on umount

Bug #119633 reported by Chris Pimlott
4
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

I have a 6th gen iPod, formatted from a Macintosh with iTunes, with the volume name "Chris's iPod".

When I plug it in via USB, it is correctly automounted in "/media/Chris's iPod/" and works fine. When I eject the device, every again functions fine, except that the empty mountpoint directory "/media/Chris's iPod/" is left behind.

On each subsequent automount, a new mountpoint directory is created by appending a "_" - i.e. "/media/Chris's iPod_/", "/media/Chris's iPod__/", "/media/Chris's iPod___". This quickly becomes messy. Manually removing the empty directories fixes this, but clearly this shouldn't be necessary.

I suspect the unmounting script is having a problem with the single quote character and/or the space character in the volume name.

Revision history for this message
Chris Pimlott (launchpad-chris) wrote :

Correction: On further inspection, the volume name and mountpoint name is "Chris’s iPod" - note the difference between "’" and "'".

Revision history for this message
Chris Pimlott (launchpad-chris) wrote :

Steps to replicate:

1. Connect iPod to a Mac
2. Restore the iPod (in iTunes, select the iPod, click Restore and follow the prompts)
3. Accept the default name suggested for the iPod - it should be of the form "<username>’s iPod"
4. Eject the iPod
5. Connect iPod to Ubuntu machine
6. Eject the iPod

Result: "/media/<username>’s iPod/" remains after unmount

Expected result: "/media/<username>’s iPod/" should no longer exist once device is unmounted

description: updated
Revision history for this message
Chris Pimlott (launchpad-chris) wrote :

Further testing suggests that it is the "’" character causing the problem. Naming the device "Foo Pod" works fine, but "Foo’Pod" does not.

Revision history for this message
thom (tsk) wrote :

Same problem here with a external USB-HD. One difference: it always leaves useless mountpoints. no exception on regualr/special characters).

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.