LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 06-29-2003, 11:58 AM   #1
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
Arrow 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).
 
Old 06-29-2003, 12:07 PM   #2
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
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.
 
Old 06-29-2003, 12:30 PM   #3
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
? sorry, but can you break that down for me? I don't know what you're getting at
 
Old 06-29-2003, 12:39 PM   #4
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
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
 
Old 06-29-2003, 01:05 PM   #5
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
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'.
 
Old 06-29-2003, 02:44 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
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?
 
Old 06-29-2003, 05:41 PM   #7
cropcircle
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
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.
 
Old 07-28-2003, 03:59 AM   #8
ChrisW
LQ Newbie
 
Registered: Jul 2003
Posts: 1

Rep: Reputation: 0
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
 
  


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
Something cool...! noxious Slackware 2 04-14-2005 07:31 PM
You know what would be cool! perry Linux - Games 3 07-26-2004 02:12 AM
Now [i]that's[/i] cool flapjackboy General 17 08-16-2003 12:55 PM
how cool is that??? acid_kewpie General 6 05-20-2002 10:24 AM
I need something cool digital bots Linux - Newbie 7 02-25-2002 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:41 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