View previous topic :: View next topic |
Author |
Message |
MadOtis Apprentice
Joined: 14 Dec 2002 Posts: 163 Location: Georgia
|
Posted: Tue Apr 20, 2004 12:53 pm Post subject: Dvd and cd burning woes.... |
|
|
Hello all, I have cross-posted this from the hardware forum in the hopes that I can finally get it solved...
Whenever I try to burn a CD or DVD using either cdrecord or xcdroast, I get the following error:
Code: | Error trying to open /dev/sg1 exclusively (Operation not permitted)... retrying in 1 second. |
I understand that xcdroast uses cdrecord, so I've tried to burn images primarily with cdrecord until I get this resolved.
Here's what I've done:
I've compiled the kernel options for scsi emulation as modules
Built the kernel and modules (and installed them)
Loaded the modules using modprobe and added them to the startup
Did a cdrecord -scanbus (output below)
Tried to burn an .iso image using this syntax:
Code: | cdrecord dev=/dev/sg1 -dao -v <isoname.iso> |
My output is:
Code: | Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jorg Schilling
Note: This version is unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in the version.
TOC Type: 1 = CD-ROM
scsidev: '/dev/sg1'
devname: '/dev/sg1'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.1.25
Error trying to open /dev/sg1 exclusively (Operation not permitted)... retrying in 1 second.
...
|
BTW, this was run as root with the exact same output.
The output from cdrecord -scanbus is:
Code: | Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jorg Schilling
Note: This version is unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in the version.
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (warly-scsi-linux-sg.c-1.80-mdk '@(#)scsi-linux-sg.c 1.80 04/03/08 Copyright 1997 J. Schilling').
scsibus0:
0,0,0 0) 'IDE ' 'DVD-ROM 16X ' '2.0 ' Removable CD-ROM
0,1,0 1) 'LITE-ON ' 'DVDRW LDW-811S ' 'HS0E' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
|
I'm also running 'gentoo-sources' or 2.4.25 kernel.
Anyone have any clue where I should look next?
Thanks in advance,
Randy |
|
Back to top |
|
|
Will Scarlet Apprentice
Joined: 19 Mar 2004 Posts: 239
|
Posted: Tue Apr 20, 2004 10:01 pm Post subject: |
|
|
MadOtis wrote: | Tried to burn an .iso image using this syntax:
Code: | cdrecord dev=/dev/sg1 -dao -v <isoname.iso> |
|
From man cdrecord:
Quote: | dev=target
Sets the SCSI target for the CD-Recorder, see notes
above. A typical device specification is dev=6,0 .
If a filename must be provided together with the
numerical target specification, the filename is
implementation specific. The correct filename in
this case can be found in the system specific manu-
als of the target operating system. On a FreeBSD
system without CAM support, you need to use the
control device (e.g. /dev/rcd0.ctl). A correct
device specification in this case may be
dev=/dev/rcd0.ctl:@ .
On Linux, drives connected to a parallel port
adapter are mapped to a virtual SCSI bus. Different
adapters are mapped to different targets on this
virtual SCSI bus.
If no dev option is present, cdrecord will try to
get the device from the CDR_DEVICE environment.
If the argument to the dev= option does not contain
the characters ',', '/', '@' or ':', it is inter-
preted as an label name that may be found in the
file /etc/default/cdrecord (see FILES section). |
From your cdrecord -scanbus
MadOtis wrote: | scsibus0:
0,0,0 0) 'IDE ' 'DVD-ROM 16X ' '2.0 ' Removable CD-ROM
0,1,0 1) 'LITE-ON ' 'DVDRW LDW-811S ' 'HS0E' Removable CD-ROM
|
So, I would try with the following:
Code: | cdrecord dev=0,1,0 -dao -v <isoname.iso> |
|
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Tue Apr 20, 2004 10:11 pm Post subject: |
|
|
use k3b
luck!
saurabh |
|
Back to top |
|
|
MadOtis Apprentice
Joined: 14 Dec 2002 Posts: 163 Location: Georgia
|
Posted: Thu Apr 22, 2004 5:05 pm Post subject: |
|
|
Can't use k3b... I have some strange emerge problem with transcode, and k3b emerge says it needs it. So...
I upgraded my kernel to 2.6.5-r1 (gentoo-dev-sources) and enabled ide-cd on both my dvd reader and dvd burner, and viola! it started working.
I still get a 30-40 second pause while XCDRoast "finds my media" when I try to burn anything, but at least it works now.
Cheers,
Randy |
|
Back to top |
|
|
sobers_2002 Veteran
Joined: 16 Mar 2004 Posts: 1128
|
Posted: Thu Apr 22, 2004 5:37 pm Post subject: |
|
|
well u might have to use ACCEPT_KEYWORDS="~x86" i think for emerging k3b |
|
Back to top |
|
|
MadOtis Apprentice
Joined: 14 Dec 2002 Posts: 163 Location: Georgia
|
|
Back to top |
|
|
scoon l33t
Joined: 23 Aug 2003 Posts: 747 Location: Philadelphia, PA
|
Posted: Fri Apr 23, 2004 11:46 am Post subject: Re: Dvd and cd burning woes.... |
|
|
MadOtis wrote: | Hello all, I have cross-posted this from the hardware forum in the hopes that I can finally get it solved...
Whenever I try to burn a CD or DVD using either cdrecord or xcdroast, I get the following error:
Code: | Error trying to open /dev/sg1 exclusively (Operation not permitted)... retrying in 1 second. |
I understand that xcdroast uses cdrecord, so I've tried to burn images primarily with cdrecord until I get this resolved.
Here's what I've done:
I've compiled the kernel options for scsi emulation as modules
Built the kernel and modules (and installed them)
Loaded the modules using modprobe and added them to the startup
Did a cdrecord -scanbus (output below)
Tried to burn an .iso image using this syntax:
Code: | cdrecord dev=/dev/sg1 -dao -v <isoname.iso> |
My output is:
Code: | Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jorg Schilling
Note: This version is unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in the version.
TOC Type: 1 = CD-ROM
scsidev: '/dev/sg1'
devname: '/dev/sg1'
scsibus: -2 target: -2 lun: -2
Warning: Open by 'devname' is unintentional and not supported.
Linux sg driver version: 3.1.25
Error trying to open /dev/sg1 exclusively (Operation not permitted)... retrying in 1 second.
...
|
BTW, this was run as root with the exact same output.
The output from cdrecord -scanbus is:
Code: | Cdrecord-Clone 2.01a27-dvd (i686-pc-linux-gnu) Copyright (C) 1995-2004 Jorg Schilling
Note: This version is unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to <warly@mandrakesoft.com>.
Note: The author of cdrecord should not be bothered with problems in the version.
Linux sg driver version: 3.1.25
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (warly-scsi-linux-sg.c-1.80-mdk '@(#)scsi-linux-sg.c 1.80 04/03/08 Copyright 1997 J. Schilling').
scsibus0:
0,0,0 0) 'IDE ' 'DVD-ROM 16X ' '2.0 ' Removable CD-ROM
0,1,0 1) 'LITE-ON ' 'DVDRW LDW-811S ' 'HS0E' Removable CD-ROM
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *
|
I'm also running 'gentoo-sources' or 2.4.25 kernel.
Anyone have any clue where I should look next?
Thanks in advance,
Randy |
Hey there,
One thing I notice with your set up is that when you burn with cdrecord, it does not like you using device names (ie: /dev/sg1). What DOES make cdrecord happy is using the bus address that cdrecord -scanbus gives you. So in your case if you wanted to burn something with your cdrw-dvdrw you would do this:
Code: | cdrecord dev=0,1,0 <files.iso> | Another feature of cdrecord is the -checkdrive flag use it like this: Code: | cdrecord dev=0,1,0 -checkdrive | . XCDROAST is nothing more than a front end for cdrecord so if you have cdrecord working correctly then xcdroast is certainly alsmost there. Let xcdroast scan you bus for your drives, it will make things easier in the end. Once more thing, the -checkdrive and xcdroast bus searching can take a while. For me it takes a good couple of minutes so be patient.
scoon _________________ Hope this helps........ |
|
Back to top |
|
|
MadOtis Apprentice
Joined: 14 Dec 2002 Posts: 163 Location: Georgia
|
Posted: Fri Apr 23, 2004 5:07 pm Post subject: |
|
|
I got the exact same errors when I used the device address (dev=ATAPI:0,1,0, or just dev=0,1,0). So, I may have solved it another way...
I upgraded to the 2.6.5 kernel last night, turned off scsi emulation, and now it works just fine.
So, I think I can officially say goodbye to 2.4.x kernels... seems like 2.6.x fix quite alot of things. And, it appears to me that it performs a little better. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|