Bug 182690 - gnome-mount does not remove floppy mountpoints
Summary: gnome-mount does not remove floppy mountpoints
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: hal
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: John (J5) Palmieri
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-02-24 02:03 UTC by Michal Jaegermann
Modified: 2013-03-13 04:49 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2006-03-01 19:42:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michal Jaegermann 2006-02-24 02:03:10 UTC
Description of problem:

After floppy was mounted, with a help of a floppy icon in a "Computer"
window, unmounting it via 'gnome-mount' leaves its mount point in /media.
In a result repeting this operation quickly fills /media with
/media/floppy, /media/floppy-1, /media/floppy-2, ...

To add insult to injury even when a non-root user was mounting that floppy
all these mountpoints are owned by 'root' so they cannot be cleaned up.

Version-Release number of selected component (if applicable):
gnome-mount-0.4-0.cvs20060213.1

How reproducible:
always

Comment 1 David Zeuthen 2006-02-25 00:22:40 UTC
Right, HAL should refuse to mount /dev/fd0 multiple times. Reassigning.

Comment 2 Michal Jaegermann 2006-02-25 01:46:32 UTC
I think that this is a misunderstanding.  /dev/fd0 is _not_ mounted multiple
times.  It is mounted, unmounted, mounted, unmounted, .... but every such
cycle via desktop (hence presumably through gnome-mount) leaves behind
an _unused_ mount point and the next cycle is not reusing it but creates
a new one; presumably under an assumption that that an old mountpoint will
vanish.  Why those which are unused cannot be "recycled" is a good question.
An implementation lacking in robustness, I guess.

If you are root then you can do 'rm -rf /media/floppy*' and start again
from scratch.  If you are not root then you are stuck.

Comment 3 Michal Jaegermann 2006-02-25 01:59:23 UTC
BTW - I noticed now that while 'gnome-mount -e -d /dev/fd0' leaves a stale
mountpoint behind this does not happen if 'gnome-umount -d /dev/fd0' is used
instead.  It looks that an icon menu, when it happens to work at all,
is using the first form, or an equivalent, and not the second one.

Also one would expect, looking at '--help', that all forms:

   gnome-mount -e -d /dev/fd0
   gnome-umount -d /dev/fd0
   gnome-umount -e -d /dev/fd0

will be equivalent.  They are not and the third one is silently doing nothing.

Comment 4 Michal Jaegermann 2006-03-01 19:42:02 UTC
The original problem seems to be gone.  I guess I will close that one and
for issues mentioned in comment #3 will open another report.


Note You need to log in before you can comment on or make changes to this bug.