CD drive not eject after cd inserted them becomes unusable karmic

Bug #441338 reported by TommyBoy
154
This bug affects 30 people
Affects Status Importance Assigned to Milestone
devicekit-disks (Ubuntu)
Confirmed
Critical
Unassigned
Nominated for Karmic by Martin Meredith
Nominated for Lucid by r12056

Bug Description

Binary package hint: dbus

Possibly Related to #395814

Description: Ubuntu karmic (development branch)
Release: 9.10

Expected:

Pushing hardware button and running eject command/desktop icon eject command ejects cd when not locked.

Actual:

First open of CD drive ejects tray add in a cd in, mounts. Then unable to eject using the hardware button. Using the eject command/desktop icons will eject the CD. Once the CD is removed and closed the drive will no longer open using the hardware button / eject command. The renders the drive useless until a restart is completed,

Steps to reproduce:

Insert CD
eject using software / eject cmd / desktop icon as button does not work
close drive
drives can not be ejected , software/hardware

Notes:

No output from eject command, syslog or dmesg. This lock can be rest by resetting the x-session.

ProblemType: Bug
Architecture: i386
Date: Sat Oct 3 13:41:03 2009
DistroRelease: Ubuntu 9.10
Package: dbus 1.2.16-0ubuntu6
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: dbus
Uname: Linux 2.6.31-11-generic i686

Revision history for this message
TommyBoy (thomaslloyd) wrote :
Revision history for this message
snedex (snedex) wrote :

Tried to duplicate on Karmic 9.10 with external USB Drive
Hardware button does not cause unmount of CD once mounted, have to use the software eject command to open the drive. However, I am able to open the drive after ejecting a mounted CD and closing the drive.

Tested On
Architecture: i686
Date: Sat Oct 3 14:02:03 2009
DistroRelease: Ubuntu 9.10
Package: dbus 1.2.16-0ubuntu6
ProcEnviron:
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
SourcePackage: dbus
Uname: Linux 2.6.31-11-generic i686

Martin Meredith (mez)
Changed in dbus (Ubuntu):
importance: Undecided → Critical
milestone: none → ubuntu-9.10
Revision history for this message
Martin Meredith (mez) wrote :

This bug is happening for me also. I've marked this as critical as I think that not being able to use a CD drive, espescially for users who are new and would expect CDs to work (or anyone who actually still buys Music CDs!)

Changed in dbus (Ubuntu):
status: New → Confirmed
Revision history for this message
James Westby (james-w) wrote : Re: [Bug 441338] Re: CD drive not eject after cd inserted them becomes unusable karmic

On Sat Oct 03 13:52:53 UTC 2009 Martin Meredith wrote:
> This bug is happening for me also. I've marked this as critical as I
> think that not being able to use a CD drive, espescially for users who
> are new and would expect CDs to work (or anyone who actually still buys
> Music CDs!)

Why D-Bus? I'm not sure the evidence presented so far indicates that this
has anything to do with D-Bus. What led you to that conclusion?

Thanks,

James

Revision history for this message
TommyBoy (thomaslloyd) wrote :

My bad we discussed it at our ubuntu Jam session, me being new to the whole bug reporting process, now realise assigning unknown might have been better. Sorry.

Revision history for this message
manzur (sl-solaris) wrote :

I confirm, this is happening to me too, I have to log out in order to eject my dvds, please fix this, we are almost in the final release, if you need some detail please ask...

Revision history for this message
Eugene (gene-81) wrote :

Updated from 9.04 to 9.10 Beta on my notebook Acer 5102. So, after that my DVD-ROM is not even mounting any disks. So I can't use them and I need to reboot to eject the disk.

Revision history for this message
Richard Salsbury (richard-richardsalsbury) wrote :

I'm having the same problem as Eugene (#7): Ubuntu doesn't recognise any inserted music or data CD at all. In Nautilus the CD-ROM device disappears under computer:///, and no CD is shown in Nautilus or (for music CDs) Rhythmbox. I can't eject using the hardware button, but it does work with the 'eject' command.

The CD player was working with Karmic Alpha 4, and stopped working when I did a clean install of Alpha 6 (via CD, not through apt-get).

Each time I insert a CD, I get the following in dmesg:

[ 3278.677933] sr 1:0:0:0: [sr0] unaligned transfer

[ 3278.678061] sr 1:0:0:0: [sr0] unaligned transfer

[ 3278.678146] sr 1:0:0:0: [sr0] unaligned transfer

uname -a gives:

Linux rich-desktop 2.6.31-11-generic #38-Ubuntu SMP Fri Oct 2 11:55:55 UTC 2009 i686 GNU/Linux

Revision history for this message
Wade Pedersen (wmpedersen) wrote :

I experience this problem after using brasero. I can burn several discs in a row successfully (while encountering this error - http://ubuntuforums.org/showthread.php?t=832544 ), but somehow the bug is triggered (possibly by period of inactivity) and the icon for the drive may or may not show in Nautilus and becomes impossible to mount/unmount/eject because of 'no media in the drive.'

Revision history for this message
Richard Salsbury (richard-richardsalsbury) wrote :

Update (from #8):

I did a "sudo aptitude safe-update" and reboot at about 9:15 GMT. The behaviour has changed:
(1) With data CDs (for example, the Karmic Alpha 6 CD), the disc is fully recognised and behaves as normal. However, the hardware eject button doesn't work (I have to eject via Nautilus or use the 'eject' command).
(2) Music CDs are still completely unrecognised. However, the hardware eject button _does_ work.

Revision history for this message
Stephen Williams (swilliams8) wrote :

I am having problems similar to the original bug post. After using my cd drive, it will refuse to eject via the drive eject button or "eject" command. It seems nautilus is somehow not releasing the cd drive (see below). If I kill nautilus, the cd drive will once again eject, using either the hardware eject button, or the "eject" command.

$eject -rv /dev/sr0

eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: unable to eject, last error: Input/output error

$fuser /dev/sr0

/dev/sr0: 26785

$ps -A

26785 ? 00:06:56 nautilus

Revision history for this message
James Whitlock (wiggleraway) wrote :
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Can anyone test and confirm this remains with the latest Karmic release candidate? I'm unfortunately unable to reproduce. If anyone else is able to reproduce still, please provide *exact* steps.

ogasawara@emiko:~$ cat /proc/version_signature
Ubuntu 2.6.31-14.47-generic

1) Insert CD, dmesg shows:

Oct 23 13:57:13 emiko kernel: [41689.670844] UDF-fs: No VRS found
Oct 23 13:57:13 emiko kernel: [41689.670852] UDF-fs: No partition found (1)
Oct 23 13:57:13 emiko kernel: [41689.720481] ISO 9660 Extensions: Microsoft Joliet Level 3
Oct 23 13:57:13 emiko kernel: [41689.899180] ISO 9660 Extensions: RRIP_1991A

2) verify media is mounted:

ogasawara@emiko:~$ mount | grep "/dev/sr0"
/dev/sr0 on /media/cdrom0 type iso9660 (ro,nosuid,nodev,utf8,user=ogasawara)

3) eject CD

ogasawara@emiko:~$ eject -rv /dev/sr0
eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command succeeded

4) remove cd, close drive, eject again

$ eject -rv /dev/sr0
eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command succeeded

affects: dbus (Ubuntu) → devicekit-disks (Ubuntu)
Revision history for this message
Matthias Rosenkranz (rose) wrote :

I followed Leann's steps with a DVD and a data CD and cannot reproduce the bug either. Eject works after watching/accessing parts of the DVD/CD. I did, however, see some errors in dmesg but they might be unrelated to this bug.

$ cat /proc/version_signature
Ubuntu 2.6.31-14.48-generic

1) dmesg. The "L-EC uncorrectable error" messages repeated a few times before the CD was mounted.
[ 6527.302493] sr 4:0:0:0: [sr0] Unhandled sense code
[ 6527.302497] sr 4:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 6527.302501] sr 4:0:0:0: [sr0] Sense Key : Medium Error [current]
[ 6527.302506] sr 4:0:0:0: [sr0] Add. Sense: L-EC uncorrectable error
[ 6527.302510] end_request: I/O error, dev sr0, sector 205576
[ 6527.302514] Buffer I/O error on device sr0, logical block 25697
[ 6528.522808] UDF-fs: No VRS found
[ 6528.522811] UDF-fs: No partition found (1)
[ 6528.568639] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 6528.958669] ISOFS: changing to secondary root

2) media mounted
$ mount | grep "/dev/sr0"
/dev/sr0 on /media/cdrom0 type udf (ro,nosuid,nodev,user=rose)

3) eject CD
$ eject -rv /dev/sr0
eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is mounted at `/media/cdrom0'
eject: unmounting device `/dev/sr0' from `/media/cdrom0'
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command succeeded

4) remove CD, close drive, eject again
$ eject -rv /dev/sr0
eject: device name is `/dev/sr0'
eject: expanded name is `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command succeeded

Revision history for this message
unggnu (unggnu) wrote :

Software eject works fine but the problem is that the hardware button doesn't eject the cd anymore until it is unmounted or similar.
This wasn't the problem before Karmic.

Revision history for this message
Matthias Rosenkranz (rose) wrote :

Actually, using the hardware button I have a different problem.

1) Insert CD, check that it's mounted and usable.
2) press hardware eject button. CD is ejected but not unmounted. CD icon still on Gnome desktop
    $ mount | grep sr0
    /dev/sr0 on /media/cdrom0 type iso9660 (ro,nosuid,nodev,user=rose)
3) press hardware button again to insert CD, CD does not mount, many of the following errors in dmesg
    [ 915.023548] VFS: busy inodes on changed media or resized disk sr0

So the hardware button ejects the CD but does not unmount it.

Revision history for this message
ThOR27 (thor27-gmail) wrote :

Same happens here as Matthias said.

You can unmount after eject, this way it will work with next CD/DVD

Revision history for this message
EricDHH (ericdhh) wrote :

Same here on amd64. Have a writer and reader as master - slave on one ata cable.

If one drive ripping things, the insertion of a disc into other drive shoot the ripping down. The icon of the first drive disappears and i have to reboot to unlock it.

While burning a disc, the insertion in the other drive crash the writer software.

When inserting two discs, two sound-juicers appears and show only the first drive information. Only one icon appears and both discs are locked.

Eric

Revision history for this message
Ryan B (coffebean) wrote :

I have an amd64 box and am having the same trouble. The drive will open via the hardware button ounce and after drive access I have to eject via software eject, then the drive will not open at all.

Revision history for this message
Jon Elofson (jon-elofson) wrote :

Here is what happens for me
Insert DVD. It mounts on the desktop and Totem asks to play, I say no.
If I hit the eject button, the tray opens, ok so far.

Now, I go :$ mplayer dvd://1
and the video plays.

Hi eject button. Nothing happens.
Right click on the desktop icon and select eject works as expected.

Try eject from command line:

:~$ eject -rv /dev/sr1
eject: device name is `/dev/sr1'
eject: expanded name is `/dev/sr1'
eject: `/dev/sr1' is mounted at `/media/CN30NNW1'
eject: unmounting device `/dev/sr1' from `/media/CN30NNW1'
eject: unmount of `/media/CN30NNW1' failed

Hmm, but icon now gone from desktop....
Push eject button again. Disk comes out!

Try some more things...
Insert dvd
mplayer dvd://1
Push eject button. Nothing.
Nothing in /var/log/messages

$ umount /dev/sr1
No errors or messages
Icon gone from desktop

Now push eject. Drive opens fine

That's all I know :)

Revision history for this message
Twig (pfirth) wrote :

I also have the exact issue described. One thing I've noticed is that it affects burning .iso images in Brasero. I can do the following:

1) Insert blank cd
2) Blank CD icon appears on desktop
3) Try to burn .iso image to CD
4) Image fails to burn and disk fails to eject.
5) Eject will always work from the desktop but hardware eject does not.
6) Repeat the process and the image will never burn correctly.

However if prior to this process, I insert a playable DVD and then eject it, the image will consistently burn.

I will check whether the icon disappears from the desktop in step 4) above as I am not in a position to test at the moment.

Revision history for this message
David Rahrer (david-rahrer) wrote :

I'm having a mixture of all the above with 9.10 so I guess this not fixed before release. Reporting here stopped 11/19, any reason? Any solutions?

Revision history for this message
Sense Egbert Hofstede (sense) wrote :

Could this be a duplicate of bug #397734? It looks very similar to me and I'm inclined to mark this as a duplicate of that report, but maybe you disagree.

Revision history for this message
salemboot (salemboot) wrote :

Most the solutions available on the net say to diable automount therefore using autofs in it's place.

It's either a bug in Gnome or PolicyKit.

Perhaps the developers could write an acpi script to detect the eject button being pressed and issue the command 'eject /dev/srX'

Thanks....

Revision history for this message
krutoileshii (krutoileshii) wrote :

Got the same problem that happens consistently.

Another little side effect is that the icon of the previously mounted CD/DVD is still on the desktop along with the next 3 or 4 cd's

to eject, usually have to unmount through nautilus and then eject through it as well otherwise no results.

Martin Pitt (pitti)
Changed in devicekit-disks (Ubuntu):
milestone: ubuntu-9.10 → none
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.