Nicer way to unmount automatically mounted drives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu |
Fix Released
|
Medium
|
James Henstridge |
Bug Description
We have the theory that file manager windows for devices are automatically
opened when you insert or connect a drive, that's great.
However this leaves no easy way to UNMOUNT the particular drives, other than
just brutally ripping them out/disconnecting them; which might cause writes to
be lost. This doesn't work for CDs, the eject button will be locked so they
won't come out.
The filesystems are currently relatively hidden (in Computer) and non-UNIX users
won't think that they need to do anything special, so won't think to look there.
We need to either:
1) automatically unmount a drive once all open windows on it are closed, this
would be the ideal utopian solution, let's do this if we can
2) provide better notification that there's a drive mounted, this could be:
a. put the drive icon on the desktop, where it's reasonably obvious (Mac style)
b. put an icon in the notification area for each additional mounted drive
offering a way to safely remove them (Windows style)
c. something else?
We could have a daemon in the user's session (not a root daemon), that polls for
open file descriptors on filesystems on devices in mtab. If all fd's are
closed, then umount it. Though, it may just be better to mount removeable
device with the sync option. Yes, writes will take longer. However it gives
the user the interface they naturally gravitate toward (removing a device is
simply removing the device).