LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-18-2006, 10:16 PM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
DVD drive wont eject.


Hi all, after umounting my dvd drive and then trying "eject" i get
Code:
unable to eject, last error: Invalid argument
And i have to reboot to get it out

Does anyone know whats wrong?
 
Old 05-18-2006, 10:40 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
If you have unmounted the dvd (you cannot mount or unmount a "drive", strictly speaking it is the fs on the dvd you are un/mounting) there should no longer be a corresponding icon on the desktop. Naturally, the eject option you get from rt-clicking on such a thing will contain an invalid argument - probably the umount command.

Try ejecting the dvd while it is still mounted. If this still dosn't work - try it with cdrecord in cli - and post the entire output. (cdrecord --eject should open the drawer of the default device when it's content is not mounted.)

Last edited by Simon Bridge; 05-18-2006 at 10:44 PM.
 
Old 05-19-2006, 05:22 AM   #3
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Thanks for the reply, when i try the eject command while the CD is still mounted (its a DVD drive but im currently using CDs, dont know if thats important) i get the same
Code:
eject: unable to eject, last error: Invalid argument
I got it out, put the cd back in then tried "cdrecord --eject" and got
Code:
cdrecord: No CD/DVD-Recorder device specified.
Usage: cdrecord [options] track1...trackn
so i tried "cdrecord /dev/dvd --eject" and "cdrecord /dev/cdrom --eject" got
Code:
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
cdrecord: Badly placed option. Global options must be before any track.
Then i tried "cdrecord --eject /dev/dvd" and "cdrecord --eject /dev/cdrom" and got:
Code:
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
cdrecord: No CD/DVD-Recorder device specified.
Dont know where to go from here

EDIT: Just had a look at dmesg and saw a few
Code:
program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
Not too sure what it means though.

Last edited by dave`2005; 05-19-2006 at 05:43 AM.
 
Old 05-20-2006, 05:35 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
program eject is using a deprecated SCSI ioctl, please convert it to SG_IO
... I don't think this will actually stop it.

cdrecord --scanbus
... to see valid targets. Devices have form: "device:target,lun" - is it possible you have more than one cd/dvd drive? So you need to specify the target to distinguish them?

cdrecord dev=0,0 --eject or cdrecord dev=1,0 --eject

There is an additional hoop to jump through if this is a atapi drive and ide-scsi is not enabled.

Of course, "eject -v /dev/hdc" on cli should also tell you something.

See the man pages for cdrecord and eject for details.
 
Old 05-20-2006, 07:33 PM   #5
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
I _think_ i fixed it by uninstalling xcdroast. It seems to be ok now. Thank you.
 
Old 05-21-2006, 07:56 PM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
weird - so xcdroast was hogging the device perhaps? Normally you just get "device busy". I'll leave this one for others. Well done.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cdrom wont eject no matter what I do..........:( M$ISBS Linux - Hardware 9 05-24-2006 10:17 AM
CD wont eject during install ... Kiwi01 Slackware - Installation 5 03-29-2005 05:00 PM
CD ROM wont eject satish427 Red Hat 1 10-14-2004 02:24 AM
Cd Wont Eject?? don_dimo Linux - Newbie 2 05-31-2004 10:46 AM
CDROM wont eject Frank_Drebin Fedora 11 04-24-2004 04:11 PM

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

All times are GMT -5. The time now is 09:17 PM.

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