LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-04-2004, 12:32 AM   #1
taek
LQ Newbie
 
Registered: Aug 2004
Location: Seoul
Distribution: slackware
Posts: 10

Rep: Reputation: 0
k3b and scsi emulation in kernel 2.6x


Recently I have upgraded to Slackware 10, and had most of the things set up. Now, I'm trying
to burn CD with a popular k3b program, and it gives me a headache. Strange thing is that in
kernel 2.6.8.1 (which is what I'm using now) If I have scsi-emulation is added in /etc/lilo.conf,
I don't see any of cdrom, scdx, or srx under /dev directory and can't read cdrom. I have all
the scsi options in the kernel or as a module). But if I lsmod, I don't see any modules related
to cdrom or scsi-emulation.

As I read from this site, kernel 2.6.x doesn't require scsi-emulation to burn CD anymore,
so I commented out scsi-emulation in /etc/lilo.conf. Then, I can see /dev/cdrom (which is linked
to /dev/hdc, but still no scdx or srx) and mount cdrom. Still, k3 doesn't recognize cdrom as
writable device.

Finally, I tried 2.4.x kernel, and I can see srx and scdx in /dev.

I don't have a clue on what is going on. There may be something I'm missing here.
I would appreciate your help!
 
Old 09-04-2004, 12:39 AM   #2
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Posts: 297

Rep: Reputation: Disabled
They say you can't use K3B with kernel 2.6.8 so I guess it goes the same with 2.6.8.1.

You will have to roll back to 2.6.7 or previous if you want to use K3B (I know it sucks, same problem I had :P)
 
Old 09-04-2004, 12:46 AM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: k3b and scsi emulation in kernel 2.6x

Quote:
Originally posted by taek
Recently I have upgraded to Slackware 10, and had most of the things set up. Now, I'm trying
to burn CD with a popular k3b program, and it gives me a headache. Strange thing is that in
kernel 2.6.8.1 (which is what I'm using now) If I have scsi-emulation is added in /etc/lilo.conf,
I don't see any of cdrom, scdx, or srx under /dev directory and can't read cdrom. I have all
the scsi options in the kernel or as a module). But if I lsmod, I don't see any modules related
to cdrom or scsi-emulation.

As I read from this site, kernel 2.6.x doesn't require scsi-emulation to burn CD anymore,
so I commented out scsi-emulation in /etc/lilo.conf. Then, I can see /dev/cdrom (which is linked
to /dev/hdc, but still no scdx or srx) and mount cdrom. Still, k3 doesn't recognize cdrom as
writable device.

Finally, I tried 2.4.x kernel, and I can see srx and scdx in /dev.

I don't have a clue on what is going on. There may be something I'm missing here.
I would appreciate your help!
Here is a patch from the Con Kolivas kernel patches mailing list that will solve the problem.

Code:
cddvd-cmdfilter-drop.patch


Index: linux-2.6.8.1/drivers/block/scsi_ioctl.c
===================================================================
--- linux-2.6.8.1.orig/drivers/block/scsi_ioctl.c       2004-08-15 14:08:05.000000000 +1000
+++ linux-2.6.8.1/drivers/block/scsi_ioctl.c    2004-08-17 18:58:30.505453065 +1000
@@ -193,8 +193,6 @@ static int sg_io(struct file *file, requ
                return -EINVAL;
        if (copy_from_user(cmd, hdr->cmdp, hdr->cmd_len))
                return -EFAULT;
-       if (verify_command(file, cmd))
-               return -EPERM;
 
        /*
         * we'll do that later
 
Old 09-05-2004, 10:11 AM   #4
taek
LQ Newbie
 
Registered: Aug 2004
Location: Seoul
Distribution: slackware
Posts: 10

Original Poster
Rep: Reputation: 0
thanks a lot, one more question...

Thank you very much for a quick reply! I went back to kernel 2.6.7, and I can read and detect my cdrw with /dev/sr0. Though I still have a problem to cd-writing to work. When I try cdrecord -scanbus, I get the following message:

Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?g Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. 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'.

I don't see pg* or sg* in my /dev directory. I would appreciate your help again.
 
Old 09-05-2004, 01:49 PM   #5
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: thanks a lot, one more question...

Quote:
Originally posted by taek
Thank you very much for a quick reply! I went back to kernel 2.6.7, and I can read and detect my cdrw with /dev/sr0. Though I still have a problem to cd-writing to work. When I try cdrecord -scanbus, I get the following message:

Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?g Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. 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'.

I don't see pg* or sg* in my /dev directory. I would appreciate your help again.
I had that one last year but if the devices do not exist then my solution on Debian would not work I had to.

Code:
chmod g+rw /dev/sg*
chgrp cdrom /dev/sg*
At the time but like I say if the devices /dev/sg* you are going to have a problem doing it and I am not sure how slack handles the groups. Have you tried cdrecord dev=ATA -scanbus to see what the output is it may be trying to use the ATAPI interface.
 
Old 09-08-2004, 01:34 AM   #6
taek
LQ Newbie
 
Registered: Aug 2004
Location: Seoul
Distribution: slackware
Posts: 10

Original Poster
Rep: Reputation: 0
/dev/pg* or sg* not present

Thanks for the reply. But, I don't see any pg* or sg* under /dev/ directory. Could anybody tell me how they are generated on booting, and what might be the problem? I really like to burn CD's, but I haven't been successful with this cdrecord problem. Thanks in advance.
 
Old 09-08-2004, 10:05 AM   #7
taek
LQ Newbie
 
Registered: Aug 2004
Location: Seoul
Distribution: slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Question Found this, but....

OK, I found this on this site and it might tell some expert why I don't have sg* or pg* under /dev.

If I do cdrecord dev=ATAPI -scanbus, I get:

Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?g Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'HL-DT-ST' 'RW/DVD GCC-4320B' '1.02' 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) *

Of course if I do cdrecord -scanbus, I get:

Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?g Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. 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'.

I have append="hdc=ide-scsi" in lilo.conf, but there must be some problem with scsi here. Please help!
 
Old 09-08-2004, 10:24 AM   #8
justin_p
Member
 
Registered: Jan 2004
Location: Virginia, USA
Distribution: slack 13; I've used it all :)
Posts: 433

Rep: Reputation: 30
i don't know about everyone else, but i have always had issues with k3b and my phillips CDRW. I use XCDRoast w/o problems. Might be worth a look.
 
Old 09-08-2004, 06:15 PM   #9
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Re: Found this, but....

Quote:
Originally posted by taek
OK, I found this on this site and it might tell some expert why I don't have sg* or pg* under /dev.

If I do cdrecord dev=ATAPI -scanbus, I get:

Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?g Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'HL-DT-ST' 'RW/DVD GCC-4320B' '1.02' 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) *

Of course if I do cdrecord -scanbus, I get:

Cdrecord 2.00.3 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J?g Schilling
cdrecord: No such file or directory. Cannot open '/dev/pg*'. 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'.

I have append="hdc=ide-scsi" in lilo.conf, but there must be some problem with scsi here. Please help!
The burning is set up to use the ATAPI instead of ide-scsi try this and see if you have success cdrecord -v -eject -dummy driveropts=burnfree speed=8 dev=ATA:0,0,0 some.iso this should run a test burn at 8x speed using the ATA interface which gives you DMA enabled on your drive. You will most likely want to remove the ide-scsi from the /etc/lilo.conf and run /sbin/lilo -v before rebooting to try. To use K3B with the ATAPI/ATA interface you need IIRC version > 0.11.x not quite exactly sure when the cahnge was made so you will want to get the newest version you can. If you wish to continue to use the ide-scsi then you need to use options ide-cd ignore=hdc in your /etc/modules.conf (file may be different in Slack) to tell the driver to ignore your burner for use with the driver.
 
Old 09-09-2004, 08:20 AM   #10
kodon
Member
 
Registered: Jul 2004
Location: [jax][fl][usa]
Distribution: Slackware64-current
Posts: 796

Rep: Reputation: 31
Re: /dev/pg* or sg* not present

Quote:
Originally posted by taek
Thanks for the reply. But, I don't see any pg* or sg* under /dev/ directory. Could anybody tell me how they are generated on booting, and what might be the problem? I really like to burn CD's, but I haven't been successful with this cdrecord problem. Thanks in advance.
well, i don't have any /dev/pg* or /dev/sg* files and i can burn cd's without a problem with k3b.
running slack-current with the 2.6.6 kernel



ps: why are you using the -scanbus flag?

Last edited by kodon; 09-09-2004 at 08:24 AM.
 
Old 10-03-2004, 09:46 AM   #11
taek
LQ Newbie
 
Registered: Aug 2004
Location: Seoul
Distribution: slackware
Posts: 10

Original Poster
Rep: Reputation: 0
Talking Finally solved the problem!

Well, I've finally located the problem. All I had to do with 2.6.7 kernel and scsi emulation was to load "sg" module! It solved the problem I had since the first day I installed Slackware 10, and I have already burned a couple of CD's with K3b. Thank you all for the help!
 
  


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
K3B SCSI Emulation LinuxSeeker Mandriva 1 03-16-2004 04:08 PM
Problems with SCSI emulation and k3b atheist Linux - Software 2 03-03-2004 03:01 PM
k3b scsi emulation? gavinbeatty Linux - Newbie 10 01-01-2004 04:57 PM
Cd drives and K3b. Scsi emulation?? ludeKing Linux - Hardware 2 10-15-2003 06:22 AM
K3b says that I need to turn on SCSI emulation? bling bling Linux - Software 10 07-30-2003 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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