eject: unable to eject, last error: Inappropriate ioctl for device
Issue
ejectcommand does not work on removable media- Prior to system update, this used to work on removable media (RDX cartridge) that is connected via USB
ejectstopped working after system update.- I am able to manually eject the cartridge after umounting
/media/disk. - when I run the
ejectcommand in verbose, I get:
# eject -v /dev/sdj1 eject: device name is `/dev/sdj1' eject: expanded name is `/dev/sdj1' eject: `/dev/sdj1' is not mounted eject: `/dev/sdj1' is not a mount point eject: `/dev/sdj1' is a multipartition device eject: trying to eject `/dev/sdj1' using CD-ROM eject command eject: CD-ROM eject command failed eject: trying to eject `/dev/sdj1' using SCSI commands eject: SCSI eject failed eject: trying to eject `/dev/sdj1' using floppy eject command eject: floppy eject command failed eject: trying to eject `/dev/sdj1' using tape offline command eject: tape offline command failed eject: unable to eject, last error: Inappropriate ioctl for device
Environment
- Red Hat Enterprise Linux 5
- kernel-2.6.18-308.el5
- eject-2.1.5-4.2.el5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.