/media entries for removable drives multiplicate by addition of underscores

Bug #218599 reported by Irios
This bug report is a duplicate of:  Bug #212502: Old mountpoints are no longer removed. Edit Remove
2
Affects Status Importance Assigned to Milestone
Ubuntu
New
Undecided
Unassigned

Bug Description

I have a USB hard disk (NTFS format, named Omikron) and an iPod (VFAT, named iripod).

When I plug them in, an entry like /media/Omikron or /media/IRIPOD is created. If I cleanly unmount the drives, this entry under /media is erased, and the next time I plug the device in, it is regenerated with the same name. Even if I yank the USB cable, the device is unmounted and this entry is erased and reused the next time.

However, there are occasions when the entry under /media is not erased, and it is not reused the next time the device is plugged in or the system is booted with the device already plugged in. In these occasions, another entry is added with an underscore tagged to the end. I don't know exactly when does this happen, but over time they accumulate and when I noticed I had

/media/Omikron
/media/Omikron_
/media/Omikron__
/media/Omikron___
/media/Omikron____
/media/IRIPOD
/media/IRIPOD_
/media/IRIPOD__

and so on.

I imagine this happens when an unclean unmount is not detected for some reason, or for some reason the drive cannot be unmounted at shutdown, but I have so far been unable to knowingly force that to happen and have only observed its results a few days after manually erasing the offending entries under /media.

If I flick the on/off switch on the USB hard disk, /media/Omikron is erased, and the next time I plug the device in, it is regenerated with the same name.

ProblemType: Bug
Architecture: i386
Date: Thu Apr 17 12:25:38 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/nautilus
NonfreeKernelModules: nvidia
Package: nautilus 1:2.22.2-0ubuntu3
PackageArchitecture: i386
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 LANG=es_ES.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
Uname: Linux 2.6.24-16-generic i686

Tags: apport-bug
Revision history for this message
Irios (irios) wrote :
Revision history for this message
A. Bram Neijt (bneijt) wrote :

You can force this to happen by opening up a terminal and executing "sudo reboot". Any unclean umount will cause this. I have the same problem and havn't found any solution yet.

The weird thing is, is that the empty unused mount points are not reused, even though all the rights and permissions check out (if those where different, we would probably have a security hole).

A temporary fix for this is to assign the USB drive to a specific mount point using /etc/fstab:
UUID=9115728d-4039-42bb-ab52-bde108954ef9 /media/Omikron auto defaults,noatime,errors=remount-ro,user 0 0

Where the UUID can be found by doing the following:
- Plug in the device
- execute "mount" to find the device name (/dev/sdc1 or other)
- Find the uuid of the device: ls -l /dev/disk/by-uuid/

You can also verify the uuid via the properties dialogue of the mount point in nautilus, but for some weird reason you can't copy and paste it from there.

After setting up the special directory for that one drive, it should be put in the /media/Omikron directory even if that directory already exists.

Also note that I do not consider this a fix and this is still a bug in my opinion.

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.