LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-09-2003, 07:16 AM   #1
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Rep: Reputation: 30
Question error trying to burn cds can't detect reader


hi all,

I am attempting to burn cd's without much success.

I am using eroaster & X cd-roast. when I try to detect the drive I get an error saying to make sure that I am root (which I am logged in as) or allowed to read /dev/sg*

this has me a little confused! /dev/cdrom points to /dev/scd0 is this relevant?

the cd drive reads fine, and is detected as scd0. I am using scsi emulation in the kernel.

/dev/sg(0,1,2,3 etc) exists should I be aiming to link these to /dev/sc(0,1,2,3 etc)?

any hints would help!

(the really annoying thing is that I had it all working before my harddrive failed, without a hitch!)

other info:

OS debian testing/unstable
cd-drive toshiba dvd/cdrw combo

cheers

smerk.

Last edited by Smerk; 11-09-2003 at 07:36 AM.
 
Old 11-09-2003, 08:01 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You need to load the ide-scsi module for your CDRW in order to burn CD's with it - this module enables SCSI emulation, which is needed.

/dev/sg0 is a SCSI device (sg for SCSI generic) and that's the most common name for the first SCSI CD-ROM.

Now, in order to get it all going you should edit your /etc/lilo.conf (as root) and make sure you have and tell the kernel your CDRW should be loaded with SCSI emulation. If your CDRW is /dev/hdc (master on the secondary IDE channel on the first IDE controller) the line should look like this:
Code:
append="hdc=ide-scsi"
Now you can probably burn CD's as root when you have rebooted, but you should be able to do it without being root (never run as root unless there's something you need to fix!).
cd to /dev and type ls -l | grep sg0 to view the permissions of the device. It's most probably something like this:
Code:
crw-rwx---    1 root     cdrom     21,   0 2002-03-14 22:51 sg0
root owns it and it belongs to the cdrom group. Open up /etc/group (as root) and append your username to the cdrom line. This is a comma-separated list so you can add several users to the group if you wish. If you want to add yourself and me to the cdrom group so we can use it, the line would look something like this:
Code:
cdrom:x:24:smerk,hw
You need to log out and then log in again for the changes to take effect. Anyway, you should be able to access the CDRW and use it to burn discs as yourself now.

Håkan
 
Old 11-09-2003, 08:23 AM   #3
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
ok so I now have this in lilo:

image=/vmlinuz-2.4.22
label=Linux-2.4.22
append="hdc=ide-scsi"
read-only

before I had:
image=/vmlinuz-2.4.22
label=Linux-2.4.22 append="hdc=ide-scsi"

is the first entry right?
thining about things, I used to use grub, which is probably why I didn't have any problems before...!
I didn't mention before but I also have a usb camera connected which is detected as sda1 would this affect my cdrom connection? ie would it then become scd0 as opposed to sg0?

just about to reboot to test lilo will see if that works!
 
Old 11-09-2003, 08:34 AM   #4
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
Hmmmm...
no luck.

I did notice in the messages this:
Nov 10 00:28:51 zeus kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Nov 10 00:28:51 zeus kernel: Attached scsi CD-ROM sr1 at scsi0, channel 0, id 0, lun 1
Nov 10 00:28:51 zeus kernel: Attached scsi CD-ROM sr2 at scsi0, channel 0, id 0, lun 2
Nov 10 00:28:51 zeus kernel: Attached scsi CD-ROM sr3 at scsi0, channel 0, id 0, lun 3
Nov 10 00:28:51 zeus kernel: Attached scsi CD-ROM sr4 at scsi0, channel 0, id 0, lun 4
Nov 10 00:28:51 zeus kernel: Attached scsi CD-ROM sr5 at scsi0, channel 0, id 0, lun 5
Nov 10 00:28:51 zeus kernel: Attached scsi CD-ROM sr6 at scsi0, channel 0, id 0, lun 6
Nov 10 00:28:51 zeus kernel: sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Nov 10 00:28:51 zeus kernel: Uniform CD-ROM driver Revision: 3.12
Nov 10 00:28:51 zeus kernel: sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Nov 10 00:28:51 zeus kernel: sr2: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Nov 10 00:28:51 zeus kernel: sr3: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Nov 10 00:28:51 zeus kernel: sr4: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Nov 10 00:28:51 zeus kernel: sr5: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Nov 10 00:28:51 zeus kernel: sr6: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray

so it appears thet instead of being sg* the drive is seen as sr* if this is the case, how do I set cdrecord/cdda2wav/eroaster to look for sr* and not sg*?
 
Old 11-09-2003, 09:22 AM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
The simplest way of doing it is renaming the /dev/cdrom symlink to something else (/dev/cdrom_old or something) and then creating a new /dev/cdrom symlink pointing to the correct device. cdparanoia can be very helpful in determining what the device is actually called - pop in a regular music CD (not data) in the CD-ROM or CDRW and then type cdparanoia -vsQ. It will print out a lot of info. The output below is from my laptop.
Code:
Checking /dev/cdrom for cdrom...
        Testing /dev/cdrom for cooked ioctl() interface
                /dev/scd0 is not a cooked ioctl CDROM.
        Testing /dev/cdrom for SCSI interface
                generic device: /dev/sg0
                ioctl device: /dev/scd0

Found an accessible SCSI CDROM drive.
Looking at revision of the SG interface in use...
        SG interface version 3.1.25; OK.

CDROM model sensed sensed: SANYO CRD-S372B 1.24 

Checking for SCSI emulation...
        Drive is ATAPI (using SCSI host adaptor emulation)
The above is just a snippet, but you will want to look for something similar. My original symlink (before I added SCSI emulation) was /dev/cdrom -> /dev/hdc, now I have changed it to /dev/cdrom -> /dev/scd0, that's why cdparanoia finds it first (otherwise cdparanoia would have looked all for all possible devices).

Håkan
 
Old 11-10-2003, 07:32 AM   #6
Smerk
Member
 
Registered: Oct 2002
Location: Cairnsian, Oz
Distribution: Debian testing/unstable, knoppix/debian fudged router!
Posts: 169

Original Poster
Rep: Reputation: 30
ahh..
cdparanoia didn't show anything, did a quick make menuconfig oops no generic scsi support! quick kernel compile and bingo! all working.

thanks for the hints
smerk
 
Old 11-10-2003, 07:42 AM   #7
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
I'm glad to hear you solved it.

Håkan
 
  


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
can't burn CDs gtludwig Linux - Hardware 9 11-27-2005 06:12 AM
How do you burn CDs? grovesj2 Linux - Newbie 6 08-20-2005 12:40 PM
Cannot burn CDs Pig Monkey Ubuntu 7 08-18-2005 12:34 PM
k3b error with audio cd burn (no prob with iso burn) bluem Linux - Newbie 1 04-16-2004 08:05 AM
How to burn cds stephenk Linux - General 6 06-02-2003 02:32 PM

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

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