Bug 708819

Summary: Fedora 15 gets stuck when external drive is made safe to be removed or unmounted
Product: [Fedora] Fedora Reporter: Varuna Seneviratna <varunaseneviratna>
Component: ntfs-3gAssignee: Tom "spot" Callaway <tcallawa>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 15CC: dennis, jean-pierre.andre, p.sherman, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 18:55:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Varuna Seneviratna 2011-05-29 18:50:54 UTC
Error mounting: mount exited with exit code 11: ntfs-3g: Failed to access volume '/dev/sdc1': No such file or directory

ntfs-3g 2011.4.12 integrated FUSE 27 - Third Generation NTFS Driver
		Configuration type 1, XATTRS are on, POSIX ACLS are off

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2011 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options:  ro (read-only mount), remove_hiberfile, uid=, gid=,
          umask=, fmask=, dmask=, streams_interface=.
          Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.Connect the external Drive and Try to execute the command Safely Remove or Unmount and try to mount again

  
Actual results:
The computer gets stuck

Expected results:
Ability to access the external drive

Additional info:

Comment 1 Jean-Pierre André 2011-06-01 09:20:49 UTC
Can you provide more details :
1) How did you try to mount the device ? Paste the mount command or /etc/fstab entry if any. Anyway, paste the results of the two commands (as root) :

grep "Cmdline options" /var/log/messages
grep "Mount options" /var/log/messages

The error 11 you got means there was a syntax error in your (explicit or implicit) mount command.
2) How did you try to safely remove the device ? If the mount failed, you were not supposed to get an icon on your desktop.

Comment 2 Varuna Seneviratna 2011-06-04 18:21:19 UTC
@jean-pierre.andre
What usually happens is the computer gets stuck which is described in the bug
https://bugzilla.redhat.com/show_bug.cgi?id=710703 if I right click on the external drive icon and try to execute the Safely Remove Drive menu.But sometimes if the System does not get stuck what takes place is this bug when clicked on the drive icon

Now at this time the system got stuck and I pressed the restart button and got it started, then once again I right clicked on the Drive icon and executed the Safely Remove Drive menu, this time the system didn't get stuck But instead when clicked on the icon this error is given.The results for your commands at this time are

grep "Cmdline options" /var/log/messages
Jun  3 18:35:07 varuna ntfs-3g[7997]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  4 11:52:18 varuna ntfs-3g[2637]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  4 11:52:32 varuna ntfs-3g[2652]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  4 12:00:43 varuna ntfs-3g[1691]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  4 23:08:38 varuna ntfs-3g[2907]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  4 23:35:14 varuna ntfs-3g[1926]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  4 23:35:24 varuna ntfs-3g[1940]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  4 23:35:29 varuna ntfs-3g[1951]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177



[root@varuna ~]# grep "Mount options" /var/log/messages
Jun  3 18:35:07 varuna ntfs-3g[7997]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  4 11:52:18 varuna ntfs-3g[2637]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  4 11:52:32 varuna ntfs-3g[2652]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  4 12:00:43 varuna ntfs-3g[1691]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  4 23:08:38 varuna ntfs-3g[2907]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  4 23:35:14 varuna ntfs-3g[1926]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  4 23:35:24 varuna ntfs-3g[1940]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  4 23:35:29 varuna ntfs-3g[1951]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions

Comment 3 Jean-Pierre André 2011-06-05 08:23:21 UTC
@varuna
> this time the system didn't get stuck But instead
> when clicked on the icon this error is given
Do you mean the error shown in the initial message "Error mounting: mount exited with exit code 11" ? This is a mount error, not an unmount one.

In your log extract, I also see mounts at "Jun  4 11:52:18" and "Jun  4 11:52:32", and 14 seconds is somewhat short to see the icon appear on the desktop, click safely remove, unplug and plug again.

So I suspect that after safely removing, some process starts mounting again automatically. I have met that with older Fedora versions, however not leading to a kernel oops.

Until the problem is solved, you should issue an unmount command ("umount /dev/sdb1" as root) instead of clicking safely remove.

Comment 4 Varuna Seneviratna 2011-06-05 18:50:36 UTC
@jean
Do you say that if the Safely Remove Drive menu is successfully executed the Drive icon should disappear?.Jean even from the beginning the Drive icon never disappeared from the menu.Let me describe what I do to access the drive so you can get a picture of the sequence of events

1 Click Activities at Left hand corner of the screen
        A Panel of icons appear from top to bottom in the Left hand side across the vertical border

2 Click the Files icon which is depicted by a two Horizontal Drawers placed vertically one on the other.

3 In the Files Windows at the left hand side there is the vertically positioned from top to bottom the set of icons categorized into
1 Devices 2 Computer 3 Network 
       The Devices section contains the Drives.When the mouse is placed on the icon and the on the Drive highlighted an eject emblem appears, If the eject emblem is clicked the system does not get stuck. But the Drive icon is shown in the disabled mode, the Drive shown in the disabled state is only relevant to the External High Capacity Hard Drive.The External High capacity Hard Drive can be accessed again by clicking on the Drive icon. But when the eject emblem of a 2GB USB Drive is clicked which is connected simultaneously as the External Hard Drive from a another USB port the icon of that 2GB Drive disappears and has to be removed and connected back for the Drive icon to appear.In the right click menu of the 2GB USB Drive there are two options 1 Safely Remove Drive 2 Eject, does both of them do the same thing?The right click menu of the External High Capacity Hard Drive has only one option of the 2, Safely Remove Drive only.Just a few moments ago I executed the Safely remove Drive on the External High capacity Hard Drive and the screen went black with displaying some blah, blah. I am again carrying out the commands you suggested and their results are below

grep "Cmdline options" /var/log/messages
Jun  5 23:08:24 varuna ntfs-3g[1941]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  5 23:23:45 varuna ntfs-3g[1788]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  5 23:23:56 varuna ntfs-3g[1803]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  5 23:40:51 varuna ntfs-3g[1876]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  5 23:42:09 varuna ntfs-3g[1895]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  5 23:42:22 varuna ntfs-3g[1924]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  5 23:42:31 varuna ntfs-3g[1935]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  5 23:42:36 varuna ntfs-3g[1947]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  5 23:44:04 varuna ntfs-3g[2014]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177
Jun  6 00:12:45 varuna ntfs-3g[2270]: Cmdline options: rw,nosuid,nodev,uhelper=udisks,uid=500,gid=500,dmask=0077,fmask=0177


grep "Mount options" /var/log/messages
Jun  5 23:08:24 varuna ntfs-3g[1941]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  5 23:23:45 varuna ntfs-3g[1788]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  5 23:23:56 varuna ntfs-3g[1803]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  5 23:40:51 varuna ntfs-3g[1876]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  5 23:42:09 varuna ntfs-3g[1895]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  5 23:42:22 varuna ntfs-3g[1924]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  5 23:42:31 varuna ntfs-3g[1935]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  5 23:42:36 varuna ntfs-3g[1947]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  5 23:44:04 varuna ntfs-3g[2014]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions
Jun  6 00:12:45 varuna ntfs-3g[2270]: Mount options: rw,nosuid,nodev,uhelper=udisks,allow_other,nonempty,atime,fsname=/dev/sdb1,blkdev,blksize=4096,default_permissions

Comment 5 Jean-Pierre André 2011-06-06 19:15:22 UTC
> Do you say that if the Safely Remove Drive menu is successfully
> executed the Drive icon should disappear?

I would expect so, but I am not using the same window manager as you, so I cannot be sure. Looks like your drive is remounted immediately, so the icon appears again. Your log extract show *mounts* (not *unmounts*) on June 5 at 23:42:09, 23:42:22, 23:42:31 and 23:42:36, four times in 25 seconds !

There may be useful information in /var/log/messages near the said lines, giving some clue about what is going wrong.

Comment 6 Varuna Seneviratna 2011-08-17 16:28:42 UTC
I am using Ubuntu now after being fed up by this problem.I would like to know the state of this problem now.Has it being solved?

Comment 7 Philip Sherman 2011-10-02 18:18:59 UTC
I have encountered the same problem on my 64bit F14 system with a 1Tb removable Western Digital disk drive. 

Unmounting the drive using the desktop icon's pop-up menu causes a kernel oops which freezes the system. only recovery available is to use the hardware power off feature.

My workaround is to have root unmount the drive. This has not failed since I started using it.

I may be able to get some additional documentation in a few days.

Comment 8 Fedora End Of Life 2012-08-07 18:55:46 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping