/media entries for removable drives multiplicate by addition of underscores
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
NonfreeKernelMo
Package: nautilus 1:2.22.2-0ubuntu3
PackageArchitec
ProcEnviron:
PATH=/
LANG=es_ES.UTF-8
SHELL=/bin/bash
SourcePackage: nautilus
Uname: Linux 2.6.24-16-generic i686
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: 4039-42bb- ab52-bde108954e f9 /media/Omikron auto defaults, noatime, errors= remount- ro,user 0 0
UUID=9115728d-
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.