ejecting a CD/DVD with drive button gives always an error message but still works

Bug #202931 reported by Jeremy LaCroix
20
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-volume-manager (Ubuntu)
Fix Released
Medium
Martin Pitt
nautilus (Ubuntu)
Invalid
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

In Hardy, every time I eject a CD or DVD, I get a message that says "Cannot unmount volume". The funny thing is, it does unmount and eject the CD.

Steps to reproduce:

1.) Mount a CD or DVD
2.) Copy files from the CD or DVD to a new location
3.) When the copying is all done, press the eject button on the drive.
4.) The error message will say it cannot unmount it, but it does and it ejects fine.

Tags: regression
Revision history for this message
unggnu (unggnu) wrote : Re: [Hardy] [regression] ejecting a CD/DVD with drive button gives always an error message but still works

I can confirm this. It happens with every CD/DVD which is inserted (even video DVDs which aren't mounted). A file operation isn't needed.
I am not sure if it is a hal or a gnome-volume-manager issue. This doesn't happen in Gutsy but in Hardy since some time and of course in current.
This is bug isn't really serious but it is annoying and of course confusing for new users.

Changed in gnome-volume-manager:
status: New → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Right, I can reproduce that here. I think nautilus umounts it faster, and g-v-m doesn't have the unmounting disabled yet.

Changed in gnome-volume-manager:
assignee: nobody → pitti
importance: Undecided → Medium
status: Confirmed → In Progress
Revision history for this message
Sebastien Bacher (seb128) wrote :

updating the title which was abusing keywords, tags should be used if required and mentionning the version to the description is enough, if a bug is open that's because it's there on hardy anyway otherwise it should be closed

Revision history for this message
Sofa (alexschultze) wrote :

Same here on latest Hardy 8.04.

The message comes with any CD loaded in the drive. It doesn't matter if you copy files from them.

Revision history for this message
Sebastien Bacher (seb128) wrote :

that's not a nautilus bug

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Invalid
Changed in gnome-volume-manager:
milestone: none → ubuntu-8.04
Revision history for this message
Bang Malley (bangmalley-deactivatedaccount) wrote :

this happens on my laptop (but doesn't happen on my desktop, weird). I'm trying to unmount usb flash drive.
And it says "Cannot unmount drivename" and "Cannot remove directory".
I have this problem since gutsy.

Revision history for this message
dennis1200 (dennis-fiser) wrote :

Confirmed on my Dell Inspiron 1525 running Hardy Beta. Are there any logs which might be helpful in diagnosing the problem?

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 202931] Re: ejecting a CD/DVD with drive button gives always an error message but still works

Hi,

dennis1200 [2008-03-27 3:14 -0000]:
> Confirmed on my Dell Inspiron 1525 running Hardy Beta. Are there any
> logs which might be helpful in diagnosing the problem?

Just for the record: I can replicate the problem, I do not need any
more logs or "me toos". I just did not get around yet to fix it, since
there are higher-priority bugs still. :)

Martin
--
Martin Pitt | http://www.piware.de
Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)

Martin Pitt (pitti)
Changed in gnome-volume-manager:
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-volume-manager - 2.22.1-1ubuntu3

---------------
gnome-volume-manager (2.22.1-1ubuntu3) hardy; urgency=low

  * debian/patches/00_disable_media_handling.patch: Disable handling of CD
    eject, nautilus does that now. (LP: #202931)
  * Add debian/patches/02_fix_autokeyboard_gconf.patch: Fix gconf option
    indexes, so that automount_media actually moves to the correct index and
    is properly ignored by debian/patches/00_disable_media_handling.patch.
    This should also fix a couple of other "configuration is ignored" bugs.
    (LP: #209586)
  * Add debian/patches/08_fix_scanner_support.patch: Fix getting device node
    from scanners, so that the autoscanner command works again. (LP: #36137)
  * Disable 95_ubuntu_auto_unmount_notifications.patch: It has never really
    worked reliably, it stopped working since automounting moved to nautilus
    and gvfs, and upstream won't accept it. As a side effect, this obsoletes
    the "incorrect string" bug. (LP: #160782)

 -- Martin Pitt <email address hidden> Mon, 31 Mar 2008 17:19:47 +0200

Changed in gnome-volume-manager:
status: Fix Committed → Fix Released
Revision history for this message
Giles Clermont (gilesclermont) wrote :

I have an upgraded from gutsy to hardy system. When ever it try to push the button on my dvd drive it will not open. If I try to unmount it with nautilus it errors out. I have version gnome-volume-manager (2.22.1-1ubuntu6). I tried to reinstall it from the alternet image I downloaded. (I used update manager to update from gutsy) still does not work. Tell me what you need and I will provide them. I am not new to linux but I am still learning and there is alot of things I don't know how to do and this is one of them. Thanks for your help.

Revision history for this message
Giles Clermont (gilesclermont) wrote :

sorry, forgot the tray does not eject at all. but gives the same message above. It did work in gutsy and when I boot the cd eject button works. If I want to access a cd or dvd it have to load it at boot.

Revision history for this message
Giles Clermont (gilesclermont) wrote :
Download full text (22.1 KiB)

output of dmesg
[code]
[25115.183419] ata4.00: status: { DRDY }
[25115.183434] ata4: soft resetting link
[25115.429551] ata4.00: configured for PIO0
[25115.429560] ata4: EH complete
[25120.428511] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[25120.428521] ata4.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[25120.428523] cdb 1e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[25120.428524] res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[25120.428527] ata4.00: status: { DRDY }
[25120.428542] ata4: soft resetting link
[25120.674657] ata4.00: configured for PIO0
[25120.674669] ata4: EH complete
[25120.674677] sr 3:0:0:0: ioctl_internal_command return code = 8000002
[25120.674679] : Sense Key : Aborted Command [current] [descriptor]
[25120.674682] : Add. Sense: No additional sense information
[25135.671907] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[25135.671917] ata4.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[25135.671919] cdb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[25135.671920] res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[25135.671923] ata4.00: status: { DRDY }
[25135.671938] ata4: soft resetting link
[25135.918059] ata4.00: configured for PIO0
[25135.918068] ata4: EH complete
[25150.915310] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[25150.915321] ata4.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[25150.915322] cdb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[25150.915323] res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[25150.915326] ata4.00: status: { DRDY }
[25150.915341] ata4: soft resetting link
[25151.161460] ata4.00: configured for PIO0
[25151.161470] ata4: EH complete
[25166.158712] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[25166.158723] ata4.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[25166.158724] cdb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[25166.158726] res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[25166.158728] ata4.00: status: { DRDY }
[25166.158743] ata4: soft resetting link
[25166.404861] ata4.00: configured for PIO0
[25166.404870] ata4: EH complete
[25181.402115] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[25181.402126] ata4.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[25181.402127] cdb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[25181.402129] res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[25181.402132] ata4.00: status: { DRDY }
[25181.402147] ata4: soft resetting link
[25181.648264] ata4.00: configured for PIO0
[25181.648277] ata4: EH complete
[25196.645515] ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x2 frozen
[25196.645526] ata4.00: cmd a0/00:00:00:00:00/00:00:00:00:00/a0 tag 0
[25196.645527] cdb 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[25196.645528] res 40/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x4 (timeout)
[25196.645531] ata4.00: status: { DRDY }
[25196.645547] ata4: soft resetting link
[25196.891664] ata4.00: configured for PIO0
[25196.891672] ata4: EH ...

Revision history for this message
Giles Clermont (gilesclermont) wrote :

after much searching with google someone suggested changing my fstab. So i did.

#/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0 (this is what I used in gutsy)
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

I changed the hdc to scd0 and now the eject button works. It auto mounts the cd and I can eject a mounted cd with nautilus, but when I use nautilus to eject the cd without a cd in it it errors out. At least I can now eject a cd and mount them. Did my fstab not get upgraded properly? (I want a edit button.....)

Revision history for this message
Martin Pitt (pitti) wrote :

The "Allow ejecting empty drives" issue is bug 203574.

The wrong fstab is indeed a problem, since the kernel now uses an SCSI driver for IDE CD-ROMs. The installer should be a bit more flexible about this and use /dev/cdrom preferably (or don't add an fstab entry for CD-ROMs on desktop at all). Please file a new bug about this against debian-installer.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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