Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-29-2003, 11:58 AM
|
#1
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Rep:
|
cdrecord not being cool
after three days of getting burned (<--pun) with this dvd burner I've about given up. I can burn dvds fine, but now i need to make a cd and I can't get cdrecord to behave.
Code:
root@lackluster:/home/lackluster# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
my modules.conf looks like this:
Code:
###############################################################################
# cd/dvd burner
options ide-cd ignore=hdc # tell the ide-cd module to ignore hdb
alias scd0 sr_mod # load sr_mod upon access of scd0
pre-install sg modprobe ide-scsi # load ide-scsi before sg
pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
pre-install ide-scsi modprobe ide-cd # load ide-cd before ide-scsi
###############################################################################
After searching google I found a post where somebody said "remove IDE CD-ROM support [from the kernel] to workaround it". DId that. No help. Someone else said "set the permissons on /dev/sg*". Nothing. Someone else said complie it from source. That's how I got this release in the first place.
I'm hoping maybe someone can solve this for all of the unanswered questions out there (I didn't see anyone who posted this problem actually get it to work).
|
|
|
06-29-2003, 12:07 PM
|
#2
|
Member
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131
Rep:
|
Re: cdrecord not being cool
Quote:
Originally posted by lackluster
after three days of getting burned (<--pun) with this dvd burner I've about given up. I can burn dvds fine, but now i need to make a cd and I can't get cdrecord to behave.
Code:
root@lackluster:/home/lackluster# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
|
Hi i would suggest you to read the error message exactly...
Quote:
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
[/code]
my modules.conf looks like this:
Code:
###############################################################################
# cd/dvd burner
options ide-cd ignore=hdc # tell the ide-cd module to ignore hdb
alias scd0 sr_mod # load sr_mod upon access of scd0
pre-install sg modprobe ide-scsi # load ide-scsi before sg
pre-install sr_mod modprobe ide-scsi # load ide-scsi before sr_mod
pre-install ide-scsi modprobe ide-cd # load ide-cd before ide-scsi
###############################################################################
After searching google I found a post where somebody said "remove IDE CD-ROM support [from the kernel] to workaround it". DId that. No help. Someone else said "set the permissons on /dev/sg*". Nothing. Someone else said complie it from source. That's how I got this release in the first place.
I'm hoping maybe someone can solve this for all of the unanswered questions out there (I didn't see anyone who posted this problem actually get it to work). [/B]
|
cu
Last edited by stony; 06-29-2003 at 12:09 PM.
|
|
|
06-29-2003, 12:30 PM
|
#3
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
? sorry, but can you break that down for me? I don't know what you're getting at
|
|
|
06-29-2003, 12:39 PM
|
#4
|
Member
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131
Rep:
|
Re: cdrecord not being cool
Quote:
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
|
Hi,
just reading...
cu
|
|
|
06-29-2003, 01:05 PM
|
#5
|
Member
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488
Original Poster
Rep:
|
You're not very helpful. I said in my first post that I set the permissions on /dev/sg*. From the post you can see that I am root trying to execute this. Are you seeing some hidden code here that I'm not seeing?
Quote:
root@lackluster:/home/lackluster# cdrecord -scanbus
Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jörg Schilling
cdrecord: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'. Make sure you are root.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
|
|
|
|
06-29-2003, 02:44 PM
|
#6
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
you can see what modules are loaded by typeing
lsmod
modprobe sg inserts the scsi generic module.
there are several things that have to be compiled into
the kernel for the scsi emulation to work.
did you also use the hd?=ide-scsi in your boot loader too?
|
|
|
06-29-2003, 05:41 PM
|
#7
|
Member
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182
Rep:
|
Lackluster: Try the following command : "cdrecord --scanbus".
You'll probably see something like :
<snip>
$ cdrecord --scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jrg Schilling
Linux sg driver version: 3.1.24
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) 'COMBI ' 'RW16x10/DVD ' 'N1.1' Removable CD-ROM
0,1,0 1) *
<snip>
This example is on my PC.
If I want to record an ISO file I do :
"cdrecord --dev 0,0,0 <file.iso>"
If I want to do a fast erase of a CD-RW, I do :
"cdrecord --dev 0,0,0 blank=fast"
In you're case it will probably be about the same.
If you do : "dmesg |grep -i SCSI" you'll see something like this :
<snip>
kernel command line: ro root=LABEL=/ hdc=ide-scsi
ide_setup: hdc=ide-scsi
SCSI subsystem driver Revision: 1.00
hdc: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 40x/40x writer cd/rw xa/form2 cdda tray
scsi1 : SCSI emulation for USB Mass Storage devices
Type: Direct-Access ANSI SCSI revision: 02
<snip>
Good luck.
|
|
|
07-28-2003, 03:59 AM
|
#8
|
LQ Newbie
Registered: Jul 2003
Posts: 1
Rep:
|
this did it for me
lackluster, had the same problem. this fixed it for me:
- compile kernel with 'SCSI_GENERIC' support (module sg.o)
- add 'alias scsi_hostadapter ide-scsi' in /etc/modules.conf
i'm using suse 8.2.
mfg
chris
|
|
|
All times are GMT -5. The time now is 09:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|