ejecting cd/dvd sometimes fails

Bug #986845 reported by Michael Mess
46
This bug affects 10 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned
udev (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Since upgrading from ubuntu 10.04 to ubuntu 12.04 the eject command sometimes fails to eject the drive:

michael@quad:~/download$ eject
eject: unable to eject, last error: Inappropriate ioctl for device

This happens when there is no medium in the drive.
Expected behaviour would be to open the drive so that a medium can be inserted.

Sometimes this also happens with a medium in the drive.
In this case pressing "Eject" at the drive ejects the medium, thus the medium in the drive was not locked.

dmesg does not show any errors when eject failed.

michael@quad:~$ lsb_release -rd
Description: Ubuntu 12.04 LTS
Release: 12.04

michael@quad:~$ cat /proc/version_signature
Ubuntu 3.2.0-23.36-generic-pae 3.2.14

michael@quad:~$ uname -a
Linux quad 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: eject 2.1.5+deb1+cvs20081104-9
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
Uname: Linux 3.2.0-23-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu5
Architecture: i386
Date: Sun Apr 22 14:51:13 2012
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=en_US
 SHELL=/bin/bash
SourcePackage: eject
UpgradeStatus: Upgraded to precise on 2012-04-18 (3 days ago)
---
ApportVersion: 2.0.1-0ubuntu5
Architecture: i386
DistroRelease: Ubuntu 12.04
NonfreeKernelModules: nvidia
Package: linux
PackageArchitecture: i386
ProcEnviron:
 TERM=xterm
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
Tags: precise
Uname: Linux 3.2.0-23-generic-pae i686
UpgradeStatus: Upgraded to precise on 2012-04-18 (6 days ago)
UserGroups: Debian-exim adm admin audio cdrom dialout dip floppy fuse lpadmin mythtv plugdev sambashare video

Revision history for this message
Michael Mess (michael-michaelmess) wrote :
Revision history for this message
Michael Mess (michael-michaelmess) wrote :

When eject -t fails, retrying many times does not help, but pressing eject at the drive works.

When eject works, with no medium, the commands

eject
eject -t
eject -T

work as expected and retrying multiple times do not show any problems.

Sometimes eject may report Input/output error:

michael@quad:~$ eject -T
ioctl: Input/output error

Retrying then may work.

Revision history for this message
Michael Mess (michael-michaelmess) wrote :
Revision history for this message
Michael Mess (michael-michaelmess) wrote :
Revision history for this message
Michael Mess (michael-michaelmess) wrote :

Strace output implys that it is a kernel bug.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 986845

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Michael Mess (michael-michaelmess) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Michael Mess (michael-michaelmess) wrote :

Tried again, it can still be reproduced.

michael@quad:~$ eject -t
michael@quad:~$ eject
michael@quad:~$ eject -t
michael@quad:~$ eject
michael@quad:~$ eject -t
michael@quad:~$ eject
eject: Kann nicht auswerfen! Letzter Fehler: Unpassender IOCTL (I/O-Control) für das Gerät
michael@quad:~$ eject
eject: Kann nicht auswerfen! Letzter Fehler: Unpassender IOCTL (I/O-Control) für das Gerät
michael@quad:~$ eject
eject: Kann nicht auswerfen! Letzter Fehler: Unpassender IOCTL (I/O-Control) für das Gerät
michael@quad:~$ eject
eject: Kann nicht auswerfen! Letzter Fehler: Unpassender IOCTL (I/O-Control) für das Gerät
michael@quad:~$ eject
eject: Kann nicht auswerfen! Letzter Fehler: Unpassender IOCTL (I/O-Control) für das Gerät
michael@quad:~$ eject
eject: Kann nicht auswerfen! Letzter Fehler: Unpassender IOCTL (I/O-Control) für das Gerät

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in eject (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Michael Mess, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the kernel in the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested and remove the tag:
needs-upstream-testing

This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the text:
needs-upstream-testing

If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested.

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested.

If you are unable to test the mainline kernel, please comment as to why specifically you were unable to test it and add the following tags:
kernel-unable-to-test-upstream
kernel-unable-to-test-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested.

Please let us know your results. Thank you for your understanding.

Helpful Bug Reporting Links:
https://help.ubuntu.com/community/ReportingBugs#Bug_Reporting_Etiquette
https://help.ubuntu.com/community/ReportingBugs#A3._Make_sure_the_bug_hasn.27t_already_been_reported
https://help.ubuntu.com/community/ReportingBugs#Adding_Apport_Debug_Information_to_an_Existing_Launchpad_Bug
https://help.ubuntu.com/community/ReportingBugs#Adding_Additional_Attachments_to_an_Existing_Launchpad_Bug

no longer affects: eject (Ubuntu)
Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Michael Mess (michael-michaelmess) wrote :

With the current updated kernel (from update manager) I have just tried to reproduce the issue, but it didn't reappear.

So I hope that the issue is already fixed, but I am not 100% sure, because I have ejected the drive only around 20 times with no issue, but maybe the bug could reappear later.

michael@quad:~$ uname -a
Linux quad 3.2.0-27-generic-pae #43-Ubuntu SMP Fri Jul 6 15:06:05 UTC 2012 i686 i686 i386 GNU/Linux

So if you have encountered the problem before, please do some tests after installing the latest updates and rebooting the machine.
If anyone still encounters this problem after installing the latest updates, please let us know, then we can do further testing.

Revision history for this message
joshyg6 (josheg) wrote :

I still have this issue...

Revision history for this message
penalvch (penalvch) wrote :

joshyg6, could you please file a new report by executing the following in a terminal:
ubuntu-bug linux

For more on this, please see the Ubuntu Bug Control and Ubuntu Bug Squad article:
https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue

and Ubuntu Community article:
https://help.ubuntu.com/community/ReportingBugs#Bug_Reporting_Etiquette

When opening up the new report, please feel free to subscribe me to it. Thank you for your understanding.

Helpful Bug Reporting Links:
https://help.ubuntu.com/community/ReportingBugs#A3._Make_sure_the_bug_hasn.27t_already_been_reported
https://help.ubuntu.com/community/ReportingBugs#Adding_Apport_Debug_Information_to_an_Existing_Launchpad_Bug
https://help.ubuntu.com/community/ReportingBugs#Adding_Additional_Attachments_to_an_Existing_Launchpad_Bug

Revision history for this message
penalvch (penalvch) wrote :

Michael Mess, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/986845/comments/11 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
joshyg6 (josheg) wrote : apport information

AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu11
Architecture: i386
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf9cf4000 irq 46'
   Mixer name : 'Realtek ALC1200'
   Components : 'HDA:10ec0888,103c2a6f,00100101'
   Controls : 48
   Simple ctrls : 22
Card1.Amixer.info:
 Card hw:1 'camera'/'USB camera at usb-0000:00:1d.3-1, full speed'
   Mixer name : 'USB Mixer'
   Components : 'USB045e:00f5'
   Controls : 3
   Simple ctrls : 2
Card2.Amixer.info:
 Card hw:2 'VX5000'/'Microsoft Microsoft LifeCam VX-5000 at usb-0000:00:1d.7-5.3.4, high speed'
   Mixer name : 'USB Mixer'
   Components : 'USB045e:0728'
   Controls : 3
   Simple ctrls : 2
DistroRelease: Ubuntu 12.04
HibernationDevice: RESUME=UUID=de9723c1-612d-4f7a-a318-c93f0d89f190
MachineType: HP-Pavilion KC880AAR-ABA m9150f
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-27-generic-pae root=UUID=7b8ff73b-6fae-4e4d-9a18-7108615253f0 ro vga=771 quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.2.0-27.43-generic-pae 3.2.21
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-27-generic-pae N/A
 linux-backports-modules-3.2.0-27-generic-pae N/A
 linux-firmware 1.79
Tags: precise
Uname: Linux 3.2.0-27-generic-pae i686
UpgradeStatus: Upgraded to precise on 2012-07-15 (22 days ago)
UserGroups: adm admin audio cdrom debian-tor dialout dip floppy fuse lpadmin plugdev sambashare vboxusers video
WifiSyslog:

WpaSupplicantLog:

dmi.bios.date: 03/28/2008
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 5.22
dmi.board.name: Benicia
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: 1.01
dmi.chassis.asset.tag: Asset-1234567890
dmi.chassis.type: 3
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr5.22:bd03/28/2008:svnHP-Pavilion:pnKC880AAR-ABAm9150f:pvr:rvnASUSTeKComputerINC.:rnBenicia:rvr1.01:cvnHewlett-Packard:ct3:cvrChassisVersion:
dmi.product.name: KC880AAR-ABA m9150f
dmi.sys.vendor: HP-Pavilion

Revision history for this message
joshyg6 (josheg) wrote : AcpiTables.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : AlsaDevices.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : AplayDevices.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : ArecordDevices.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : AudioDevicesInUse.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : BootDmesg.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : CRDA.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : Card2.Amixer.values.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : CurrentDmesg.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : IwConfig.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : Lspci.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : Lsusb.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : PciMultimedia.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : ProcInterrupts.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : ProcModules.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : PulseList.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : Re: [Bug 986845] Re: ejecting cd/dvd sometimes fails
Download full text (4.9 KiB)

I ran the command.. It should be attached to this bug.. It still exists..

On Tue, Aug 7, 2012 at 2:31 PM, Christopher M. Penalver
<email address hidden> wrote:
> joshyg6, this bug was reported a while ago and there hasn't been any
> activity in it recently. We were wondering if this is still an issue? If
> so, could you please test for this with the latest development release
> of Ubuntu? ISO CD images are available from
> http://cdimage.ubuntu.com/releases/ .
>
> If it remains an issue, could you please run the following command in
> the development release from a Terminal
> (Applications->Accessories->Terminal), as it will automatically gather
> and attach updated debug information to this report:
>
> apport-collect -p linux <replace-with-bug-number>
>
> Also, could you please test the latest upstream kernel available following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Please do not test the kernel in the daily folder, but the one all the way at the bottom. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested and remove the tag:
> needs-upstream-testing
>
> This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the text:
> needs-upstream-testing
>
> If this bug is fixed in the mainline kernel, please add the following tags:
> kernel-fixed-upstream
> kernel-fixed-upstream-VERSION-NUMBER
>
> where VERSION-NUMBER is the version number of the kernel you tested.
>
> If the mainline kernel does not fix this bug, please add the following tags:
> kernel-bug-exists-upstream
> kernel-bug-exists-upstream-VERSION-NUMBER
>
> where VERSION-NUMBER is the version number of the kernel you tested.
>
> If you are unable to test the mainline kernel, please comment as to why specifically you were unable to test it and add the following tags:
> kernel-unable-to-test-upstream
> kernel-unable-to-test-upstream-VERSION-NUMBER
>
> where VERSION-NUMBER is the version number of the kernel you tested.
>
> Please let us know your results. Thank you for your understanding.
>
> Helpful Bug Reporting Links:
> https://help.ubuntu.com/community/ReportingBugs#Bug_Reporting_Etiquette
> https://help.ubuntu.com/community/ReportingBugs#A3._Make_sure_the_bug_hasn.27t_already_been_reported
> https://help.ubuntu.com/community/ReportingBugs#Adding_Apport_Debug_Information_to_an_Existing_Launchpad_Bug
> https://help.ubuntu.com/community/ReportingBugs#Adding_Additional_Attachments_to_an_Existing_Launchpad_Bug
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/986845
>
> Title:
> ejecting cd/dvd sometimes fails
>
> Status in “linux” package in Ubuntu:
> Invalid
>
> Bug description:
> Since upgrading from ubuntu 10.04 to ubuntu 12.04 the eject command
> sometimes fails to eject the drive:
>
> michael@quad:~/download$ eject
> eject: unable to eject, last error: Inappropriate ioctl for device
>
> This happens when there is no medium in the drive.
> Expected behaviour would be to open the drive so tha...

Read more...

Revision history for this message
joshyg6 (josheg) wrote : RfKill.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : UdevDb.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote : UdevLog.txt

apport information

Revision history for this message
joshyg6 (josheg) wrote :
Download full text (3.2 KiB)

It was not fixed.. It still exists.. I ran the apport command you asked..

On Tue, Aug 7, 2012 at 2:33 PM, Christopher M. Penalver
<email address hidden> wrote:
> Michael Mess, this bug report is being closed due to your last comment
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/986845/comments/11
> regarding this being fixed with an update. For future reference you can
> manage the status of your own bugs by clicking on the current status in
> the yellow line and then choosing a new status in the revealed drop down
> box. You can learn more about bug statuses at
> https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time
> to report this bug and helping to make Ubuntu better. Please submit any
> future bugs you may find.
>
> ** Changed in: linux (Ubuntu)
> Status: Incomplete => Invalid
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/986845
>
> Title:
> ejecting cd/dvd sometimes fails
>
> Status in “linux” package in Ubuntu:
> Invalid
>
> Bug description:
> Since upgrading from ubuntu 10.04 to ubuntu 12.04 the eject command
> sometimes fails to eject the drive:
>
> michael@quad:~/download$ eject
> eject: unable to eject, last error: Inappropriate ioctl for device
>
> This happens when there is no medium in the drive.
> Expected behaviour would be to open the drive so that a medium can be inserted.
>
> Sometimes this also happens with a medium in the drive.
> In this case pressing "Eject" at the drive ejects the medium, thus the medium in the drive was not locked.
>
> dmesg does not show any errors when eject failed.
>
> michael@quad:~$ lsb_release -rd
> Description: Ubuntu 12.04 LTS
> Release: 12.04
>
> michael@quad:~$ cat /proc/version_signature
> Ubuntu 3.2.0-23.36-generic-pae 3.2.14
>
> michael@quad:~$ uname -a
> Linux quad 3.2.0-23-generic-pae #36-Ubuntu SMP Tue Apr 10 22:19:09 UTC 2012 i686 i686 i386 GNU/Linux
>
> ProblemType: Bug
> DistroRelease: Ubuntu 12.04
> Package: eject 2.1.5+deb1+cvs20081104-9
> ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
> Uname: Linux 3.2.0-23-generic-pae i686
> NonfreeKernelModules: nvidia
> ApportVersion: 2.0.1-0ubuntu5
> Architecture: i386
> Date: Sun Apr 22 14:51:13 2012
> ProcEnviron:
> TERM=xterm
> PATH=(custom, user)
> LANG=en_US
> SHELL=/bin/bash
> SourcePackage: eject
> UpgradeStatus: Upgraded to precise on 2012-04-18 (3 days ago)
> ---
> ApportVersion: 2.0.1-0ubuntu5
> Architecture: i386
> DistroRelease: Ubuntu 12.04
> NonfreeKernelModules: nvidia
> Package: linux
> PackageArchitecture: i386
> ProcEnviron:
> TERM=xterm
> PATH=(custom, user)
> LANG=de_DE.UTF-8
> SHELL=/bin/bash
> ProcVersionSignature: Ubuntu 3.2.0-23.36-generic-pae 3.2.14
> Tags: precise
> Uname: Linux 3.2.0-23-generic-pae i686
> UpgradeStatus: Upgraded to precise on 2012-04-18 (6 days ago)
> UserGroups: Debian-exim adm admin audio cdrom dialout dip floppy fuse lpadmin mythtv plugdev sambashare video
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+sour...

Read more...

Revision history for this message
penalvch (penalvch) wrote :
Revision history for this message
joshyg6 (josheg) wrote :

I just did what you requested and ran the commands.. It isn't a different bug.. It's the same issue..

Revision history for this message
Chris Pick (cpick) wrote :

This is likely a duplicate of bug #875543.

James (jamesphipps2000)
Changed in linux (Ubuntu):
status: Invalid → Confirmed
description: updated
Revision history for this message
Ads20000 (ads20000) wrote :

Chris is right, it is a direct duplicate (other than release), all that time and no-one noticed :/ oh well

penalvch (penalvch)
Changed in linux (Ubuntu):
status: Confirmed → Invalid
penalvch (penalvch)
Changed in udev (Ubuntu):
status: New → Invalid
Revision history for this message
jasleen (jasleen-7956) wrote :
LAZA (laza74)
tags: added: trusty
penalvch (penalvch)
tags: removed: trusty
Revision history for this message
David Seal (seal-david) wrote :

Are there any updates on this bug? I am affected by it.

Revision history for this message
penalvch (penalvch) wrote :

David Seal, as this bug report is closed, you wouldn't be affected by it as it is not scoped to you, your hardware, or your problem. So your problem and hardware may be tracked, please file a new report with Ubuntu by executing the following in a terminal while booted into the default Ubuntu kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
https://wiki.ubuntu.com/Kernel/Policies/DuplicateBugs
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

As well, please do not announce in this report you created a new bug report.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

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.