eject: unable to eject, last error: Inappropriate ioctl for device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
eject (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
When issuing an "eject" command on the console, I get:
$ eject
eject: unable to eject, last error: Inappropriate ioctl for device
$ dmesg
reports:
[ 149.469374] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=
[ 149.469380] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 149.469385] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 149.469393] end_request: I/O error, dev sr0, sector 0
[ 149.469397] __ratelimit: 68 callbacks suppressed
[ 149.469400] Buffer I/O error on device sr0, logical block 0
[ 149.469403] Buffer I/O error on device sr0, logical block 1
[ 149.469407] Buffer I/O error on device sr0, logical block 2
[ 149.469410] Buffer I/O error on device sr0, logical block 3
[ 149.469412] Buffer I/O error on device sr0, logical block 4
[ 149.469415] Buffer I/O error on device sr0, logical block 5
[ 149.469417] Buffer I/O error on device sr0, logical block 6
[ 149.469419] Buffer I/O error on device sr0, logical block 7
[ 149.469422] Buffer I/O error on device sr0, logical block 8
[ 149.469424] Buffer I/O error on device sr0, logical block 9
[ 149.486612] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=
[ 149.486618] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 149.486623] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 149.486630] end_request: I/O error, dev sr0, sector 0
[ 149.503096] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=
[ 149.503105] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 149.503112] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 149.503121] end_request: I/O error, dev sr0, sector 0
[ 149.505347] sr 1:0:0:0: [sr0] Result: hostbyte=DID_OK driverbyte=
[ 149.505360] sr 1:0:0:0: [sr0] Sense Key : Illegal Request [current]
[ 149.505373] sr 1:0:0:0: [sr0] Add. Sense: Illegal mode for this track
[ 149.505390] end_request: I/O error, dev sr0, sector 0
Even if the CD cannot be read, I should still be able to eject it!
$ eject -v
eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/dev/cdrom'
eject: `/dev/cdrom' is a link to `/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: trying to eject `/dev/sr0' using SCSI commands
eject: SCSI eject failed
eject: trying to eject `/dev/sr0' using floppy eject command
eject: floppy eject command failed
eject: trying to eject `/dev/sr0' using tape offline command
eject: tape offline command failed
eject: unable to eject, last error: Inappropriate ioctl for device
$ lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10
$ apt-cache policy eject
eject:
Installed: 2.1.5+deb1+
Candidate: 2.1.5+deb1+
Version table:
*** 2.1.5+deb1+
500 http://
500 http://
100 /var/lib/
It works using "sudo eject" :(