Safely remove drive is not safe for SD card readers

Bug #706436 reported by Jonathan Marsden
132
This bug affects 21 people
Affects Status Importance Assigned to Milestone
Nautilus
Fix Released
Medium
One Hundred Papercuts
Fix Released
Medium
Unassigned
nautilus (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

Binary package hint: nautilus

RELEASE OF UBUNTU:

  Description: Ubuntu 10.04.1 LTS
  Release: 10.04

VERSION OF PACKAGE:

  nautilus:
  Installed: 1:2.30.1-0ubuntu1.1
  Candidate: 1:2.30.1-0ubuntu1.1
  Version table:
 *** 1:2.30.1-0ubuntu1.1 0
        500 http://mirrors.us.kernel.org/ubuntu/ lucid-updates/main Packages
        100 /var/lib/dpkg/status
     1:2.30.0-0ubuntu4 0
        500 http://mirrors.us.kernel.org/ubuntu/ lucid/main Packages

STEPS TO REPRODUCE:

 (1) Insert SD card
 (2) In nautilus, right click on the card and click on "Safely remove drive".
 (3) Remove and then re-insert SD card.

WHAT I EXPECTED TO HAPPEN:

  SD card should be prepared for removal, but inserting it or another SD card after that should work.

WHAT HAPPENED INSTEAD:

  SD card reader is left powered down and not on the USB bus, so new SDcard insertions are not seen by the system at all.

DESCRIPTION:

USB connected SD card readers and similar devices appear to the OS as being "external" or "removable" devices. This causes Nautilus to provide a right-click context menu item currently named "Safely remove drive".

Using that item triggers a call to DriveDetatch() which powers down the device and removes it from the USB bus. At this point, there is no way to use the device again until a reboot.

Attempts to handle this at lower technical kernel/gvfs layers have been only partially successful, in that users continue to follow Windows-derived "right-click, Safely remove" UI actions and so accidentally disable their devices.

Since clearly, in this situation, clicking on "Safely remove drive" is not at all safe (!), it would seem appropriate to rename this menu item to something less likely to be used accidentally by novice users who expect it to be safe.

SUGGESTED WORDING CHANGE:

One possible wording might be "Power down external device". This is unlikely to be mentally associated with the Windows "Safely remove" wording, and also makes it clear that this is intended for use with an *external* device, so hopefully fewer users will try it on a device that is in fact internal to their machine.

HISTORY:

This new bug report was triggered by discussion in bug #504440 and created at the suggestion of David Tombs.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: nautilus 1:2.30.1-0ubuntu1.1
ProcVersionSignature: Ubuntu 2.6.32-27.49-generic 2.6.32.26+drm33.12
Uname: Linux 2.6.32-27-generic x86_64
NonfreeKernelModules: fglrx
Architecture: amd64
Date: Sat Jan 22 14:35:28 2011
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: nautilus

Revision history for this message
Jonathan Marsden (jmarsden) wrote :
Revision history for this message
C de-Avillez (hggdh2) wrote :

Marking Confirmed/Wishlist -- this is a good suggestion, and would alleviate the misunderstanding on "safely remove...". Needs upstream check for similar bug.

Changed in nautilus (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

I did not find an upstream bug about the issue, but the wording "safely remove..." has been mentioned in the discussion that lead to the removal of the unmount option for drives already having eject and savely remove:
https://bugzilla.gnome.org/show_bug.cgi?id=598690#c8

C de-Avillez (hggdh2)
Changed in nautilus (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
David Tombs (dgtombs) wrote :

Thanks, Jonathan. Hopefully this will go somewhere now. :)

Changed in nautilus:
importance: Unknown → Medium
status: Unknown → In Progress
Revision history for this message
Anakin Starkiller (sunrider) wrote :

Does this bug still occurs with a newer kernel ?

Revision history for this message
Jonathan Marsden (jmarsden) wrote :

@Anakin Starkiller: I tested with the latest available kernel for Ubuntu 10.04.1 LTS. This is a supported release until April 2013 according to https://wiki.ubuntu.com/Releases .

(1) How would a newer kernel know that a device is lying about whether it is removable or not?

(2) Is there reason to believe it is fixed in 2.6.32-28-generic ?

(3) Are you aware of a newer kernel I should be using with this release of Ubuntu, that may solve this issue?

I'm not eager to upgrade a stable working machine just to test this, but I'm interested to know where any such "newer kernel" might be found.

Thanks.

Revision history for this message
saidimu apale (saidimu) wrote :

The issue is still there in kernel 2.6.35-26-generic, Ubuntu 10.10 (maverick)

saidimu

Revision history for this message
Anakin Starkiller (sunrider) wrote :

What about using "eject" instead of "safely remove..." ?

Revision history for this message
saidimu apale (saidimu) wrote :

AFAIK, "eject" has always worked (as per bug #504440) and still does.

This bug is meant to address the confusing UI issues, since the underlying technical issues can't/won't be fixed (bug #504440).

Revision history for this message
joopbraak (joopbraak) wrote :

This bug has nothing to do with any kernel version whatsoever.

Revision history for this message
steubens (steubens) wrote :

it's very easy to tell udev this, but you have to do it manually; i do the same to tell it what format the card reader can read, you'd need some list of major/minor versions and what they are to do this automatically, at least that's the conclusion i came to when i tried to figure out how to automate it

the key word here is udev though, that is where the properties are assigned

Revision history for this message
steubens (steubens) wrote :

specifically, http://hal.freedesktop.org/docs/udisks/udisks.7.html

setting ID_DRIVE_DETACHABLE to 0
and all the properties for ID_DRIVE_FLASH_SD (and friends)

a helper could probably be put together like the other helpers in udev to do this automatically based on the vendor, and detecting the media format

Revision history for this message
Ahmed Shams (ashams) wrote :

Confirmed in One Hundred Paper Cuts.

Changed in hundredpapercuts:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
hexafraction (rarkenin) wrote :

On Windows, the safely remove functionality has similar effects to this bug.

Changed in nautilus:
status: In Progress → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

is that still an issue?

Revision history for this message
Eddie Dunn (eddie-dunn) wrote :

Yes, I still have this problem on Ubuntu 12.04.

Highly annoying.

Changed in hundredpapercuts:
milestone: none → papercuts-nautilus
Changed in hundredpapercuts:
status: Confirmed → Triaged
assignee: nobody → Paper Cuts Ninja (papercuts-ninja)
Changed in hundredpapercuts:
assignee: Papercuts Ninjas (papercuts-ninja) → nobody
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue has been fixed in newer versions

Changed in nautilus (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Paul White (paulw2u) wrote :

Closing Papercuts task as all other tasks showing fixed.

Changed in hundredpapercuts:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.