LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-16-2005, 12:51 PM   #1
indiglopulse
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian Sarge
Posts: 13

Rep: Reputation: 0
CD-Rom Issue


Hello,

I'm sure that this is a simple problem, but I can't seem to find an answer that works for me.

I can't seem to eject CD's.

The problem:

Code:
$ eject /dev/scd0
eject: unable to eject, last error: Inappropriate ioctl for device

Code:
$ sudo eject /dev/scd0
eject: unable to eject, last error: Inappropriate ioctl for device

When using sudo eject, i still get the device error, but the CD ejects anyways.

I have had this problem before... but I fixed it by mounting/unmounting the CD-Rom. Not sure why that worked, but it doesn't this time.

Any Ideas? I'd rather not have to sudo eject every time i want my cds back.

Solutions I've seen around various forums:
-Am I a member of group "cdrom" -yes.
-Are the permissions set correctly? -yes. i even did a chmod 777 /dev/scd0

Thanks.
 
Old 09-16-2005, 01:04 PM   #2
rgheck
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 3
Posts: 29

Rep: Reputation: 15
Run
Code:
eject -v /dev/scd0
and see if you get any more information. Check /var/log/messages as well.
 
Old 09-16-2005, 01:18 PM   #3
indiglopulse
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian Sarge
Posts: 13

Original Poster
Rep: Reputation: 0
Code:
$ eject -v /dev/scd0
eject: device name is `/dev/scd0'
eject: expanded name is `/dev/scd0'
eject: `/dev/scd0' is mounted at `/media/cdrom0'
eject: unmounting `/dev/scd0'
eject: `/dev/scd0' is not a multipartition device
eject: trying to eject `/dev/scd0' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/scd0' using SCSI commands
eject: SCSI eject failed
eject: trying to eject `/dev/scd0' using floppy eject command
eject: floppy eject command failed
eject: trying to eject `/dev/scd0' using tape offline command
eject: tape offline command failed
eject: unable to eject, last error: Inappropriate ioctl for device
Calling that with a "sudo" in front of it lists out the same thing, but it stalls at "...using SCSI commands" and then ejects, and says "SCSI eject failed"

Thanks.
 
Old 09-16-2005, 10:00 PM   #4
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,141
Blog Entries: 6

Rep: Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828Reputation: 1828
Shouldn't that be
Code:
eject /media/cdrom0
 
Old 09-17-2005, 11:45 AM   #5
rgheck
LQ Newbie
 
Registered: Dec 2003
Distribution: Fedora Core 3
Posts: 29

Rep: Reputation: 15
I'll be interested to see if that works. The manpage explicitly says:
Code:
The  device  corresponding  to  <name>  is  ejected. The name can be a device file or mount point, either a full path  or  with  the  leading "/dev",  "/media"  or  "/mnt"  omitted.  If  no name is specified, the default name "cdrom" is used.
But of course, maybe that's not quite right.

Original poster: Was there any information in /var/log/messages? It's odd that root is succeeding here where you do not.
 
Old 09-17-2005, 05:12 PM   #6
indiglopulse
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian Sarge
Posts: 13

Original Poster
Rep: Reputation: 0
calling eject /media/cdrom0 just gives the same errors, because they reference the same thing.

What i find exceptionally weird is that root ejects the CD, but still echoes the errors. What could cause that?

From messages:

Quote:
Sep 16 13:22:53 localhost kernel: cdrom: open failed.
Sep 16 13:24:25 localhost kernel: UDF-fs: No VRS found
Sep 16 13:25:11 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 13:27:45 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 13:34:28 localhost kernel: UDF-fs: No VRS found
Sep 16 13:35:02 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 13:36:49 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 13:37:20 localhost last message repeated 2 times
Sep 16 13:38:21 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 13:40:15 localhost kernel: UDF-fs: No VRS found
Sep 16 13:41:00 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 13:40:15 localhost kernel: UDF-fs: No VRS found
Sep 16 13:41:00 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 13:44:39 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 13:44:41 localhost last message repeated 2 times
Sep 16 13:47:04 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 13:47:04 localhost kernel: UDF-fs: No VRS found
Sep 16 13:51:54 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 14:12:44 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 14:13:26 localhost kernel: UDF-fs: No VRS found
Sep 16 14:15:14 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 16 14:15:17 localhost last message repeated 2 times
Sep 16 14:15:56 localhost kernel: UDF-fs: No VRS found
Sep 16 14:17:16 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Not entirely sure what all of that means.
 
Old 09-17-2005, 05:18 PM   #7
indiglopulse
LQ Newbie
 
Registered: Nov 2004
Distribution: Debian Sarge
Posts: 13

Original Poster
Rep: Reputation: 0
Note:

ejecting with sudo produces this in the message log:

Quote:
Sep 17 18:05:32 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Sep 17 18:15:24 localhost kernel: program eject is using a deprecated SCSI ioctl, please convert it to SG_IO

No errors, but still deprecated SCSI ioctl.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cd rom issue.... Orion Pax Mandriva 10 11-01-2003 07:35 PM
how to add cd-rom, dvd-rom, floppy, hard disk icons on gnome desktop? spyghost Linux - Software 6 09-21-2003 05:44 PM
DVD-ROM mounting issue reynacho Mandriva 3 08-27-2003 10:12 PM
Floppy drive and Cd-Rom issue in WINE Genesis Linux - Software 3 06-22-2003 05:59 PM
Really wierd CD-Rom issue. habiblove Linux - Software 1 10-05-2001 06:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration