USB mounts in a new folder if left plugged in on shutdown

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

Bug Description

This is an annoying bug for me. I constantly forget to unplug my USB deive when I shut down the computer, and whenever I do this it creates a new folder inside media the next time I boot up.
For example, I plug my external USB drive in and it mounts at /media/disk. I then shut off the computer and realize that I left my USB drive plugged in (Oh, crap). So, when boot up next time, I end up with a folder /media/disk (Which is 'unreadable' according to the properties in nautilus) and a folder /media/disk_ where it is actually mounted.

What I have to do each time I forget:
Unmount the USB drive and manually delete the folder it was previously mounted in (In the command line... WITH sudo!) before mounting it again.

Revision history for this message
belak (kaleb-elwert) wrote :

Sorry, I forgot this;
I'm running Hardy Heron with all the newest updates (As of earlier today)

I think it also happens in Gutsy, but I can't remember for sure.

Sorry I didn't know what I needed to do for more info. I don't know what would be relevant.

Revision history for this message
Greg A (etulfetulf) wrote :

Thi has just started happening to me yesturday on Hardy Herron. On each reboot I end up with a "disk_" then "disk__" then "disk___". I think it is something to do with the permissions of the "/media/disk" 'file'?

This is really annoying because for example my document library is held on the USB disk and rhythmbox cannot find it if it has moved from /media/disk to /media/disk_ .

At first it was moving to disk-1 then disk-2 but changed the options to always mount under 'disk' (hence the disk_ and disk__).

Revision history for this message
Greg A (etulfetulf) wrote :

Sorry I forgot my way of fixing.

My way of 'fixing' this is each reboot I do "gksu nautilus" and delete all entries under /media/ that are unused and only accesible by root. Back in normal user nautilus I unmount the "disk_" and remount it.

Revision history for this message
belak (kaleb-elwert) wrote :

There might be a fix for this in the latest hal package... I'm not positive, but I think it's been fixed.

Revision history for this message
Greg A (etulfetulf) wrote :

I've rebooted a few times (clearing my /media folder each time) but it doesn't appear to have made any difference. Let me know if you see otherwise though!

Revision history for this message
belak (kaleb-elwert) wrote :

Yeah, I'm not positive because I just had a weird reboot. I'm not really sure it did reboot.

Sorry about that.

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.