Comment 24 for bug 875543

Revision history for this message
Bkorb (bkorb) wrote : Re: can't eject cd rom : Inappropriate ioctl for device

I guess different folks have different results.
My version of "eject" does not accept "-i", but uses "-a" instead:

> # eject -a0
> eject: CD-ROM auto-eject command failed: Device or resource busy

Thus:

> # eject -v
> eject: using default device `/dev/cdrom'
> eject: device name is `/dev/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
> # lsof /dev/sr0
> #

so for me, rebooting is the only answer I can find.