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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/875543

Title:
  can't eject cd rom : Inappropriate ioctl for device

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to