<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title><![CDATA[Unmount resolution]]></title>
    <link>http://brainstorm.ubuntu.com/item/72/</link>
    <description><![CDATA[When someone wants to unmount a volume and the mount point is used, he gets a message telling him that the volume can't be unmounted because an application uses it. The user has no idea which application is actually using it and can't remove the device.<br /><br />I propose that the popup tells him which application(s) is(are) using the device and propose to terminate them (that list should be kept up to date when the app. dies).<br />
<br />


<b>[4881 votes] Solution #1: Auto-generated solution of idea #72</b>
<br />

<br />
<br />



<b>[35 votes] Solution #2: Unmount timer</b>
<br />

<br />
<br />



]]></description>

    <language>en-us</language>
    <pubDate>Thu, 28 Feb 2008 16:35:22 +0000</pubDate>
    <lastBuildDate>Fri, 23 Oct 2009 06:42:16 +0000</lastBuildDate>
    <generator>QAPoll module</generator>
    <guid isPermaLink="true">http://brainstorm.ubuntu.com/idea/72/</guid>
        <item>
  <title>Comment from will_in_wi</title>
  <description><![CDATA[A starting point for this is the fuser -m command.]]></description>
  <pubDate>Thu, 28 Feb 2008 16:52:07 +0000</pubDate>
</item>
        <item>
  <title>Comment from ManiacHgh</title>
  <description><![CDATA["lsof | grep" also does the job.]]></description>
  <pubDate>Thu, 28 Feb 2008 18:55:09 +0000</pubDate>
</item>
        <item>
  <title>Comment from citronbleu-v</title>
  <description><![CDATA[Good idea ]]></description>
  <pubDate>Thu, 28 Feb 2008 20:48:00 +0000</pubDate>
</item>
        <item>
  <title>Comment from rvalles</title>
  <description><![CDATA[Interestingly enough, some people at the kernel are working on something which could be useful to us.<br /><br />http://lwn.net/Articles/241889/<br />http://lwn.net/Articles/262377/<br />http://lwn.net/Articles/262528/<br /><br />With this, relatively sane forced unmount would be possible.]]></description>
  <pubDate>Thu, 28 Feb 2008 23:57:52 +0000</pubDate>
</item>
        <item>
  <title>Comment from pynej</title>
  <description><![CDATA[Though it would be nifty to see a list of programs using the device I am trying to unmount...  I see this as a useless feature.  I mean, what is it going to be for am average user, a file open in word, Etc.  <br /><br />If it's not obvious to them from their running programs then whats the point.  And if its something like /usr/bin/smdb, then what is telling them going to accomplish.  <br /><br />Furthermore this works the same way now as removing devices in use in Windows and OS X.  I just don't see the point to change it to give the user information that wont be useful.]]></description>
  <pubDate>Fri, 29 Feb 2008 00:44:45 +0000</pubDate>
</item>
        <item>
  <title>Comment from Limulus</title>
  <description><![CDATA[Is this the same as Ubuntu Bug #81239?<br />https://bugs.launchpad.net/ubuntu/+source/gnome-volume-manager/+bug/81239<br />Excerpt:<br /><br />---<br />Sometimes however for reasons unknown to me, something prevents me from unmounting it (right-clicking the icon for the disk on the desktop and selecting "Unmount Volume"). I don't know what and am not sure how to find out what because the error message is not very helpful:<br /><br />Cannot unmount volume<br />an application is preventing the volume from being unmounted.<br /><br />What would be nice is if it would identify the app(s) and ask if I want them closed and the drive unmounted.<br />---]]></description>
  <pubDate>Fri, 29 Feb 2008 01:49:30 +0000</pubDate>
</item>
        <item>
  <title>Comment from Thomas_Hinkle</title>
  <description><![CDATA[Just a note to say that I think not fixing this because Windows is also broken would be really stupid :)<br /><br />This is the kind of usability enhancement than I think would fit in really well with what I think of as the best in ubuntu. And it really is aggravating when you can't figure out what is causing the problem.]]></description>
  <pubDate>Fri, 29 Feb 2008 02:06:18 +0000</pubDate>
</item>
        <item>
  <title>Comment from ucantblamem</title>
  <description><![CDATA[I agree with Thomas - Windows is BAD benchmark. I really like this idea and I've thought for a long time that someone should do something about it.]]></description>
  <pubDate>Fri, 29 Feb 2008 02:31:12 +0000</pubDate>
</item>
        <item>
  <title>Comment from linuxoser</title>
  <description><![CDATA[I do like Vivien's idea, since ubuntu is the linux for humanbeing, it should do something easier for the users, a popup is a good idea.]]></description>
  <pubDate>Fri, 29 Feb 2008 03:51:06 +0000</pubDate>
</item>
        <item>
  <title>Comment from sdgr406</title>
  <description><![CDATA[I support this idea. It is very timely in my case as I just experienced this problem. I have had a USB flash drive connected to my computer for the past two days as Nautilus gives the error mentioned above.<br /><br />I know enough in Linux to have used the lsof command against /media/disk to see which application is preventing the volume from being unmounted. I have determined there is a single file descriptor and that the file has been opened in read mode. I have determined that the application preventing the volume from being unmounted is Nautilus itself. And none of this helps me.<br /><br />The file is a simple text file. I don't have the file open, I have not accessed the file in Nautilus and I can see no reason why the file has been opened by Nautilus. I just want it unmounted.<br /><br />Sure I understand that the file was opened in read mode and I can just go ahead and remove the drive. Or I can logout of my session and log back in again, therefore starting a new instance of Nautilus. I could probably even kill Nautilus and have the Gnome Session Manager start a new instance, redrawing my desktop in the process.<br /><br />However, none of this is user friendly. I should simply be able to select the Unmount option from the menu, be presented with the name of the application(s) accessing the file and be given an option to force the unmount process. Done.<br /><br />Thanks again for the suggestion and thanks for taking the time to read my post. I hope this idea is given consideration by the Ubuntu development team.]]></description>
  <pubDate>Fri, 29 Feb 2008 04:19:21 +0000</pubDate>
</item>
        <item>
  <title>Comment from Vadim P.</title>
  <description><![CDATA[Excellent idea. Often I'm left guessing for which applications to shut down.]]></description>
  <pubDate>Fri, 29 Feb 2008 05:20:06 +0000</pubDate>
</item>
        <item>
  <title>Comment from meshugga</title>
  <description><![CDATA[There is also the lack of an "unmount" option if one right-clicks on the volume in the file manager in the file view. why is that? why does it make a difference on which icon i click if it has the same name?<br /><br />also, it would be great if the same right-click-unmount behaviour could be applied to the "places" tab. i always end up looking for the "right" icon to unmount.]]></description>
  <pubDate>Fri, 29 Feb 2008 05:33:16 +0000</pubDate>
</item>
        <item>
  <title>Comment from Maulwurfsauge</title>
  <description><![CDATA[Good idea. You could even offer the user to terminate the application in that message.]]></description>
  <pubDate>Fri, 29 Feb 2008 08:32:58 +0000</pubDate>
</item>
        <item>
  <title>Comment from changlinn</title>
  <description><![CDATA[I agree with pynej this would more than likely be confusing for the end user maybe simply add a close all programs bubble, and have a button that says if this doesn't work click here that simply -fl's the unmount.]]></description>
  <pubDate>Fri, 29 Feb 2008 08:41:29 +0000</pubDate>
</item>
        <item>
  <title>Comment from zigzed</title>
  <description><![CDATA[I thought it's not very difficult to implement and more user friendly.<br /><br />Great Idea!]]></description>
  <pubDate>Fri, 29 Feb 2008 08:53:22 +0000</pubDate>
</item>
        <item>
  <title>Comment from sourcejedi</title>
  <description><![CDATA[I think K-ubuntu already does this, using lsof.]]></description>
  <pubDate>Fri, 29 Feb 2008 09:39:20 +0000</pubDate>
</item>
        <item>
  <title>Comment from nathan_s</title>
  <description><![CDATA[@changlinn<br /><br /><br />I'm all for simplicity, but consider this: what if the user has unsaved changed in OOo for files on the drive? Silently killing *some unknown application[s]* sounds dangerous to me.]]></description>
  <pubDate>Fri, 29 Feb 2008 10:10:51 +0000</pubDate>
</item>
        <item>
  <title>Comment from johno</title>
  <description><![CDATA[There's been an ongoing bug that means you can't unmount some usb volumes without root privileges.  This may be the cause of some of these problems.]]></description>
  <pubDate>Fri, 29 Feb 2008 11:47:44 +0000</pubDate>
</item>
        <item>
  <title>Comment from mthaddon</title>
  <description><![CDATA[By the way, "Unmounting a Volume" has confused two non-Linux users I know. They ended up just disconnecting an external drive first rather than risking doing something that they didn't understand. Perhaps "Eject" or "Unplug" would be a better description.]]></description>
  <pubDate>Fri, 29 Feb 2008 16:49:39 +0000</pubDate>
</item>
        <item>
  <title>Comment from J.B.Nicholson-Owens</title>
  <description><![CDATA[Relatedly, I'd like to see GNU/Linux distributions hold on to the cache for a device after a device is improperly unmounted (someone simply yanked out a USB drive, for instance) so that the OS can prompt the user allowing them the chance to put the device back on the computer and let the OS flush the cache (possibly rewriting blocks that didn't get written properly because the device was improperly unmounted) and then properly unmount the device.]]></description>
  <pubDate>Fri, 29 Feb 2008 19:21:19 +0000</pubDate>
</item>
        <item>
  <title>Comment from rawsausage</title>
  <description><![CDATA[People just yank out the usb drive in any case without taking a look at the screen at all. The popup is always too late. What JB above suggests is a novel and more pervasive approach to the same problem.<br />]]></description>
  <pubDate>Fri, 29 Feb 2008 21:29:37 +0000</pubDate>
</item>
        <item>
  <title>Comment from akiratheoni</title>
  <description><![CDATA[What JB suggests is perfect... I love that idea. Same with mthaddon. I noticed that Dapper had the option to 'Eject' a volume but Gutsy just 'unmounts' it, which I think would be slightly confusing. But I think this is something that should definitely be added.]]></description>
  <pubDate>Fri, 29 Feb 2008 21:35:44 +0000</pubDate>
</item>
        <item>
  <title>Comment from samuellb</title>
  <description><![CDATA[I think that the cases where the error occurs should be reduced. For example, applications should chdir('/') so that they don't lock the directory they were started from. Or when this is not desirable, the revokeat/frevoke system calls could be used.]]></description>
  <pubDate>Sat, 01 Mar 2008 00:00:14 +0000</pubDate>
</item>
        <item>
  <title>Comment from gecko_gp</title>
  <description><![CDATA[maybe instead (or also) of showing a list of aplications, it can show an option: "force quit" -> that close the aplications using the device.]]></description>
  <pubDate>Sat, 01 Mar 2008 00:00:18 +0000</pubDate>
</item>
        <item>
  <title>Comment from christopher_lees</title>
  <description><![CDATA[Not force-quit, but definitely list the programs that are still using the disk, and offer for one to select to quit. It's easy enough for an experienced user to find out already, but I think this would be a valuable usability addition to Gnome upstream.]]></description>
  <pubDate>Sat, 01 Mar 2008 11:44:10 +0000</pubDate>
</item>
        <item>
  <title>Comment from Cappy</title>
  <description><![CDATA[I also really like J.B.'s suggestion. If there was such an interface it should include in the prompt what changes will be made.<br /><br />For instance,<br />"Not finished saving the following file(s):<br />Report.odt (4kb unsaved)<br />Slideshow.odp (100kb unsaved)<br />Filesystem (FAT32) unsaved<br /><br />Data Loss Will Occur Unless The Device Is Plugged Back In"]]></description>
  <pubDate>Sat, 01 Mar 2008 15:11:06 +0000</pubDate>
</item>
        <item>
  <title>Comment from elbuntu</title>
  <description><![CDATA[The mount and unmount commands where designed at a time when you had to turn off the power to add or remove disks.<br /> <br />Now with all the hotpluggable and removable media such as dvd:s and usb disks it's just not acceptable that you can't get your cd out or can't remove your USB stick without fiddling with commands like lsof or fuser as root. <br />I have even experienced situations when neither fuser nor lsof (which usually is more reliable) could find any open files on the disk i wanted to remove, so i had to reboot the system to free the (mysterious) disk references.<br /><br />I think the kernel should have a new signal (SIGEJECT) to  send to all the processes that have open files, then wait a few seconds for them to save their data before terminating the processes that still has open files and then unmounting and perhaps ejecting the media.   <br /><br />Lots of applications had to become SIGEJECT aware but the ones that weren't would simply terminate without saving.<br /><br />Also i think programs like konqueror and nautilus should be coded so they always release the files they open as soon the user closes a wiev of a file or folder. Now you often have to restart them to close all the used files.<br />]]></description>
  <pubDate>Mon, 03 Mar 2008 00:43:41 +0000</pubDate>
</item>
        <item>
  <title>Comment from Xfactor</title>
  <description><![CDATA[SUPERB IDEA. GOOD. LOVE IT]]></description>
  <pubDate>Mon, 03 Mar 2008 14:52:14 +0000</pubDate>
</item>
        <item>
  <title>Comment from zayed</title>
  <description><![CDATA[I like this idea.]]></description>
  <pubDate>Thu, 06 Mar 2008 11:00:54 +0000</pubDate>
</item>
        <item>
  <title>Comment from Gilanel</title>
  <description><![CDATA[You've got my vote]]></description>
  <pubDate>Mon, 17 Mar 2008 12:03:25 +0000</pubDate>
</item>
        <item>
  <title>Comment from furat</title>
  <description><![CDATA[I think it will be nice if the user have the option to see the process using the file system or just force the umount <br />i.e choose between fuser -m /filesystem or fuser -mk /filesystem]]></description>
  <pubDate>Tue, 18 Mar 2008 02:52:04 +0000</pubDate>
</item>
        <item>
  <title>Comment from Warbo</title>
  <description><![CDATA[I think this could be done by the creation of a standard, probably DeviceKit ( http://lists.freedesktop.org/archives/hal/2008-May/011560.html) based. It would give devices a "used by" property, which other applications can call.<br /><br />For example, Nautilus, Rhythmbox and OpenOffice can all tell DeviceKit that they are using files on a USB drive, then when the user requests to unmount it Nautilus can change directory away (to Home or Computer or something), OpenOffice can ask the user whether they wish to save their document and Rhythmbox can silently remove the no-longer-accessible files from the playlist.<br /><br />The big problem with this idea is that it relies on applications adopting the standard, but whilst many niche programs may never get this support, the most-used, default, actively maintained and popular programs will, eg. standard GNOME, KDE, OpenOffice, AbiWord, Inkscape, GIMP, Gnumeric, Amarok, Exaile, etc. and these are the programs most likely to cause problems when removing a drive (ie. the number of programs which don't have such support AND which are widely used AND are in the hands of users who don't know about closing files before removing drives AND are used with files on removable drives AND cannot attract the interest of a developer to add the feature would be quite small)]]></description>
  <pubDate>Thu, 08 May 2008 14:41:25 +0000</pubDate>
</item>
        <item>
  <title>Comment from Auzy</title>
  <description><![CDATA[Nand and co.. Looks like we just lost another idea here: <br />http://brainstorm.ubuntu.com/idea/1515/<br /><br />NOT the same thing at all.. And its obvious]]></description>
  <pubDate>Tue, 10 Jun 2008 14:51:38 +0000</pubDate>
</item>
        <item>
  <title>Comment from Taxman</title>
  <description><![CDATA[Here's the link to the bug where it is being worked on. Comments and code welcome there I'm sure.<br />http://bugzilla.gnome.org/show_bug.cgi?id=528559]]></description>
  <pubDate>Wed, 16 Jul 2008 01:57:02 +0000</pubDate>
</item>
        <item>
  <title>Comment from pandaking</title>
  <description><![CDATA[This will be similar to the tool "Unlocker" for Windows?<br />If so great because I used it all the time, and I am needing it now in Linux!]]></description>
  <pubDate>Sat, 23 Aug 2008 13:51:09 +0000</pubDate>
</item>
        <item>
  <title>Comment from Sicart</title>
  <description><![CDATA[Same as pandaking: the Unlocker tool has done a lot to salvage what little sanity Microsoft left me. You can see it here: http://ccollomb.free.fr/unlocker]]></description>
  <pubDate>Mon, 27 Oct 2008 05:42:18 +0000</pubDate>
</item>
        <item>
  <title>Comment from booyabazooka</title>
  <description><![CDATA[Not being able to force an eject is a big problem.<br /><br />This situation has happened to me several times: The power goes out.  I my external hard drive on an emergency battery backup which will last maybe 4-8 minutes.  This drive WILL be shut off, regardless of how hard the OS protests that "an application" would like for it to stay mounted.<br /><br />It's just a terrible "I'm sorry, I can't do that, Dave" situation when I request an unmount and ubuntu says No. I'm about to reboot my machine just so I can unplug my drive... this is ridiculous.]]></description>
  <pubDate>Thu, 11 Dec 2008 21:47:27 +0000</pubDate>
</item>
        <item>
  <title>Comment from ben2talk</title>
  <description><![CDATA[I just discovered that killall nautilus will do it. I then restart it by launching 'Home Folder' keyboard shortcut.<br />I'm thinking about just having a script that will kill nautilus, wait 3 seconds, and then open my home folder.<br /><br />I'm finding Nautilus rather more buggy under jaunty than it was previously.]]></description>
  <pubDate>Sun, 07 Jun 2009 10:07:50 +0000</pubDate>
</item>
        <item>
  <title>Comment from ben2talk</title>
  <description><![CDATA[It's very quiet - Sicart wrote on the 27 Oct 08 at 05:42 	Report as spam / offensive <br /><br />Same as pandaking: the Unlocker tool has done a lot to salvage what little sanity Microsoft left me. You can see it here: http://ccollomb.free.fr/unlocker<br /><br />Did everyone promptly leave and upgrade to XP?]]></description>
  <pubDate>Sun, 07 Jun 2009 12:39:59 +0000</pubDate>
</item>
        <item>
  <title>Comment from BryanFRitt</title>
  <description><![CDATA[<br />http://ubuntuforums.org/showthread.php?t=1177702<br />When shutting down I (always) get this message <br />"<br />mount: / busy<br />mount: / busy<br />"<br />yes it is there twice in a row.<br /><br />It would be nice if mount/umount would display to the command line what is preventing a proper mount/umount.<br />If mount/umount said what was preventing a proper mount/umount, it would be alot easier to figure out what's going on during shutdown.<br />This could be added on as a mount/umount argument, or mount/umount could just default to work this way.<br /><br />p.s. feel free to respond to the ubuntu thread.<br />]]></description>
  <pubDate>Thu, 11 Jun 2009 03:55:44 +0000</pubDate>
</item>
        <item>
  <title>Comment from sucotronic</title>
  <description><![CDATA[It seems that the gnome bug is forgotten:<br />https://bugzilla.gnome.org/show_bug.cgi?id=528559<br />Modified:  	2008-11-17 04:21 UTC<br /><br />From the point of usability this feature is VERY important. If a new user try Ubuntu and when he was to unmount his usb key receives a not legible message, I think he won't talk very good of ubuntu.<br />The Ubuntu team could help gnome developers implementing this feature and sending them for approval.]]></description>
  <pubDate>Wed, 21 Oct 2009 18:28:17 +0000</pubDate>
</item>
      </channel>
</rss>
