Bug 158548 - cannot eject IDE-floppy disc
cannot eject IDE-floppy disc
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Kernel Maintainer List
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2005-05-23 10:36 EDT by David Balažic
Modified: 2007-11-30 17:11 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-09-14 11:14:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description David Balažic 2005-05-23 10:36:22 EDT
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):

How reproducible:

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:
Comment 1 Ngo Than 2005-06-15 11:23:38 EDT
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

Comment 2 David Balažic 2005-06-16 03:37:41 EDT
Yes, unless the drive is locked by OS (when it is mounted).
Comment 3 Pete Zaitcev 2005-08-23 10:07:12 EDT
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.
Comment 4 Ngo Than 2005-08-23 13:29:26 EDT
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.
Comment 5 Ngo Than 2005-09-14 11:14:43 EDT
ok, it seems a bug in ide-floppy driver, please take a look at  

Note You need to log in before you can comment on or make changes to this bug.