On Mon, Jun 17, 2002 at 12:46:14PM +0800, Dan Jacobson wrote: > Did I do something wrong? > # eject > eject: unable to eject, last error: Invalid argument > > huh, I didn't use any arguments
I'm not sure exactly what's wrong, but "Invalid argument" there isn't referring to your command-line arguments. It's the English rendering of the error code EINVAL, which in this case is being returned by the kernel. Unfortunately EINVAL is a rather general error code, meaning something like "um, this program asked me to do something I don't quite understand". > eject: trying to eject `/dev/hdc' using CD-ROM eject command > eject: CD-ROM eject command failed > eject: trying to eject `/dev/hdc' using SCSI commands > eject: SCSI eject failed > eject: trying to eject `/dev/hdc' using floppy eject command > eject: floppy eject command failed > eject: trying to eject `/dev/hdc' using tape offline command > eject: tape offline command failed These are slightly more informative, I suppose. Quoting from the man page: Eject only works with devices that support one or more of the four methods of ejecting. This includes most CD-ROM drives (IDE, SCSI, and proprietary), some SCSI tape drives, JAZ drives, ZIP drives (parallel port, SCSI, and IDE versions), and LS120 removable floppies. Users have also reported success with floppy drives on Sun SPARC and Apple Macintosh systems. If eject does not work, it is most likely a limitation of the kernel driver for the device and not the eject program itself. So it'll probably be a kernel limitation of some kind. Maybe if you mention what kind of CD-ROM you have then somebody will recognize it. -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]