LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cdrecord - Error trying to open /dev/scd0 exclusively... (http://www.linuxquestions.org/questions/linux-newbie-8/cdrecord-error-trying-to-open-dev-scd0-exclusively-159965/)

jeffreybluml 03-19-2004 06:10 PM

Fixed!!!! cdrecord - Error trying to open /dev/scd0 exclusively...
 
My apologies for the lengthy post folks...

First off, I am running Fedora core 1, kernel 2.4.22-1.2174.nptl. I have a Lite-on LTR-32123S, and the KDE hardware browser says it's at /dev/scd0. It is physically connected as slave to the main HD on ide0, so grub reflects it as hdb.

I have read every thread I can find on this subject, and still cannot solve the problem. Trying to burn audio CD using cdrecord. All I get when using the command

cdrecord dev=0,0 -v -audio /home/jeff/music/pink_floyd/01.wav

is this...

Cdrecord-Clone 2.01a19 (i686-redhat-linux-gnu) Copyright (C) 1995-2003 Jrg Schilling
TOC Type: 0 = CD-DA
scsidev: '0,0'
scsibus: 0 target: 0 lun: 0
Linux sg driver version: 3.1.25
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
Error trying to open /dev/scd0 exclusively ... retrying in 1 second.
bailing out..

Now, I saw in another thread that I need to unmount my cd drive. Well, I tried, and it's not mounted to begin with. Here is the output from the "mount" command...

-------------------------------------------------------------------
/dev/hda3 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda2 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hda1 on /mnt/windows type vfat (rw)
------------------------------------------------------------------

and here is the output from "cdrecord -scanbus"

-------------------------------------------------------------------

Cdrecord-Clone 2.01a19 (i686-redhat-linux-gnu) Copyright (C) 1995-2003 Jrg Schilling
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.7'
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.75-RH '@(#)scsi-linux-sg.c 1.75 02/10/21 Copyright 1997 J. Schilling').
scsibus0:
0,0,0 0) 'LITE-ON ' 'LTR-32123S ' 'XS07' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
-------------------------------------------------------------------

Here is my fstab...

-------------------------------------------------------------------
LABEL=/1 / ext3 defaults 1 1
LABEL=/boot1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda5 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/sda1 /mnt/usbdrive vfat user,noauto,umask=0 0 0

/dev/hda1 /mnt/windows vfat defaults 0 0
/dev/hdc /mnt/zipdrive vfat user,noauto,umask=0 0 0

/dev/scd0 /mnt/cdrom iso9660 user,noauto,owner,kudzu,rw 0 0
#/dev/hdb /mnt/cdrom iso9660 user,noauto,umask=0 0 0
------------------------------------------------------------------

and here is my grub.conf...

------------------------------------------------------------------
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Fedora Core (2.4.22-1.2174.nptl)
root (hd0,1)
kernel /vmlinuz-2.4.22-1.2174.nptl ro root=LABEL=/1 hdb=ide-scsi
initrd /initrd-2.4.22-1.2174.nptl.img
title Fedora Core (2.4.22-1.2166.nptlsmp)
root (hd0,1)
kernel /vmlinuz-2.4.22-1.2166.nptlsmp ro root=LABEL=/1 hdb=ide-scsi rhgb
initrd /initrd-2.4.22-1.2166.nptlsmp.img
title Fedora Core (2.4.22-1.2166.nptl)
root (hd0,1)
kernel /vmlinuz-2.4.22-1.2166.nptl ro root=LABEL=/1 hdb=ide-scsi rhgb
initrd /initrd-2.4.22-1.2166.nptl.img
title Fedora Core (2.4.22-1.2149.nptl)
root (hd0,1)
kernel /vmlinuz-2.4.22-1.2149.nptl ro root=LABEL=/1 hdb=ide-scsi rhgb
initrd /initrd-2.4.22-1.2149.nptl.img
title DOS
rootnoverify (hd0,0)
chainloader +1
------------------------------------------------------------------

If there is any other info that will help solve this, please reply and it'll be posted immediately.

I am almost at my wits end here. This is the last hurdle I need to overcome in order to dump windows once and for all. If anyone can give me ANY ideas, I would be eternally grateful.

mightymouse 03-19-2004 06:27 PM

SCSI ID's are made up of three parts. You've read the output of cdrecord -scanbus wrong; see the line with your CDROM entry? If you take a closer look you'll see that its at device 0,0,0 and is the first entry (we count from 0) in the list of 7 possible devices. I suggest you try running your command again with "dev=0,0,0" :)

You might also want to set a "speed=X" option. This is all explained in the CD-Writing-HOWTO which you can find at www.tldp.org.

jeffreybluml 03-19-2004 06:31 PM

Should have mentioned that I have also tried dev=0,0,0 and I have tried (among many other various options) setting the speed. My impression is that none of this matters until I can get through the first issue.

I might have also mentioned that I've tried simply...

cdrecord -inq

and I get the same "Error trying to open blah blah blah..."

Thanks for the reply though, any other ideas?

jeffreybluml 03-19-2004 09:15 PM

Uh oh. I went to the link mightymouse posted (thank you) and my writer is not listed on the supported devices! It is a 2-3 years old, and I can't even find drivers (for ANY OS) at Lite0on's website. PLEASE tell me I am not S.O.L. here! If it is an "unsupported" drive, is there any way to "hack" around that?

Somebody please help here! Give me any suggestions you've got.

I ought mention that I've tried all of the burning GUI programs I've got as well, to no avail of course. These are Xroast, CD Writer, and K3B. The first two didn't even seem to recognize the drive as a writer, and K3B did. K3B however gives me "Error while decoding audio tracks" after it starts to try to burn. The audio is fine, I can play it with any one of the audio players. I have put it in a folder with full read/write permissions...moved it to thetmp directory...everything I can think of.

Please.....help......


Oh, and thank god for LQ!!!!

jeffreybluml 03-20-2004 02:55 PM

So I finally read the detals of the error report from K3B, and it is getting the same error that I was using cdrecord, as it too tries to use cdrecord as its burning utility. So, the error has nothing to do with decoding the audio, near as I can tell.

Can nobody help me?! I want to dump windows, and this is my last step before I can repartition it the heck off my drive. Please help...

J.W. 03-21-2004 02:32 AM

Have you tried creating an image of the wav file and burning it as data, rather than trying to burn the wav file itself as audio? The following has always worked for me:

1. Put the data you want to save in a single directory, which I'll call /home/user/whatever and then make your image file, which I'll call "my_image.img" by running this command:
mkisofs -r -o my_image.img /home/user/whatever

2. Burn it to CD by running this command:
cdrecord -v speed=8 dev=0,0,0 -data my_image.img

Adjust the speed parameter to match your CD's specs and you're set. -- J.W.

mightymouse 03-21-2004 06:16 AM

Just a quick note, the list of supported devices in the CD-Writing-HOWTO is probably inaccurate/dated. Your better off looking for your burner in the linux hardware compatibility list which can be found by googling. There are various general purpose and distro specific versions of it.

jeffreybluml 03-21-2004 11:04 AM

Thanks for chiming in everybody...

Couple things:

1) tried to burn from the iso image as suggested, same results. Thanks though, as I was going to need how to make isos sooner or later...so thanks J.W....

2) cannot seem to find Lite-on manufacturer in ANY compatibility list from googling. Question:

2a) Is Lite-on known as any other name?

3) if it is an unsupported drive, what then? Is there a way around this, such as creating your own drivers? I hate to think I have to keep windows installed just to be able to use my burner, plus it'll kind of hinder my ability to promote friends and family to dump winows if I can't burn CDs with it, seeing as that is what most of my friends and family do with their systems.

So, keep the replies coming please! If nothing else, it'll keep this post up where somebody will see it and perhaps know what the answer is...

Thanks again for the replies....

jeffreybluml 03-21-2004 11:21 AM

Oops, my bad...didn't look long enough.
I found my drive (kind of) as a supported one at:

http://wt.xpilot.org/cgi-bin/winni/lsc-orig.pl

Now, cdrecord detects it as LITE-ON LTR-32123S XS07, but the compatibility list only shows "LITE-ON LTR-32123S rev. XS0R" rather than XS07. Will this really matter, or can I consider mine to be supported?

Man, being a newbie and all, only having used Linux for three months or so, I thought I had been doing pretty well. THIS IS BRINGING ME DOWN!!!!!

Bumming out, please help....

jeffreybluml 03-21-2004 03:49 PM

Is it perhaps possible to download drivers specifically for this device, if it is indeed a supported one as I beleive it to be? As I mentioned, I have tried the Lite-on site, which sucks.

Tried searching, but I guess I'm not effecient enough cuz my searches lead nowhere...

Anybody?.....

jeffreybluml 03-22-2004 07:43 PM

Got it
 
A friend noticed that I was actually using cdrecord-clone 2.0, and found some reference to it on some german site that said it had a bug resulting in this exact error. So, installed the actual cdrecord, all better.

THanks to those who chimed in and tried. LQ.....Best forum ever


All times are GMT -5. The time now is 09:25 AM.