This just happened here with eject-2.1.5, but using "eject -i off" as
suggested by zheoffec in comment #2 helped - thanks!

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to eject in Ubuntu.
https://bugs.launchpad.net/bugs/398670

Title:
  eject: unable to eject, last error: Inappropriate ioctl for device

Status in “eject” package in Ubuntu:
  Invalid

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=DRIVER_SENSE
  [  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=DRIVER_SENSE
  [  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=DRIVER_SENSE
  [  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=DRIVER_SENSE
  [  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+cvs20081104-6
    Candidate: 2.1.5+deb1+cvs20081104-6
    Version table:
   *** 2.1.5+deb1+cvs20081104-6 0
          500 http://de.archive.ubuntu.com karmic/main Packages
          500 http://us.archive.ubuntu.com karmic/main Packages
          100 /var/lib/dpkg/status

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eject/+bug/398670/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to