From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Description of problem: in Fedora Core 4 test2 : hdd is LS-120 CSMO 05 UHD Floppy, ATAPI FLOPPY drive root# eject /dev/hdd ide-floppy: hdd: I/O error, pc = 1b, key = 5, asc = 24, ascq = 0 eject: unable to eject, last error: Invalid argument Version-Release number of selected component (if applicable): eject-2.0.13-14 How reproducible: Always Steps to Reproduce: 1. try to eject the floppy with the above command Actual Results: error, see above Expected Results: floppy is ejected without error Additional info:
if you press the eject-button on your floppy drive, does it work? Could you please try eject-2.0.13-15.1. It's available on ftp://people.redhat.com/than/fc4 Thanks
Yes, unless the drive is locked by OS (when it is mounted).
Surely this is incorrect: + if ((ioctl(fd, SG_GET_VERSION_NUM, &k) < 0) || (k < 30000)) { + printf("not an sg device, or old sg driver\n"); + return 0; + } Either it has to be an fprintf(stderr, foo), or if(v_option) printf(). I suggest the second form, because this is how the user would get the actual device name, and the diagnostic has no meaning without knowing that, due to the complicated discovery eject performs. See also bug 154955.
David, i suppose the eject-2.0.13-15.1 has already fixed the problem. if it's the case, i will do FC4 update for this.
ok, it seems a bug in ide-floppy driver, please take a look at http://www.gossamer-threads.com/lists/linux/kernel/568526