LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 01-26-2013, 09:30 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,903

Rep: Reputation: 45
scsi emulation and cdrecord.


Slackware 14.0

Hi: after some googling I had to give up. This is an old problem for me that I have solved in different ways depending on slack version and kernel choice. Now, I'm using the generic kernel and all my disk drives are SATA. The problem is just to have 'cdrecord -scanbus' to run, and thus have the scsi-bus, target and lun arguments I need for option dev= in cdrecord. Do I need scsi emulation in order to do this and be able to use cdrecord?

EDIT: I did, not that I knew what I did,
Code:
root@darkstar:~# cdrecord dev=ATAPI -scanbus
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
scsidev: 'ATAPI'
devname: 'ATAPI'
scsibus: -2 target: -2 lun: -2
Warning: dev=ATA: is preferred over dev=ATAPI:.
Warning: Using ATA Packet interface.
Warning: The related Linux kernel interface code seems to be unmaintained.
Warning: There is absolutely NO DMA, operations thus are slow.
Using libscg version 'schily-0.9'.
scsibus0:
	0,0,0	  0) 'HL-DT-ST' 'DVDRAM GH24NS90 ' 'IN01' 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) *
but
Code:
root@darkstar:~# cdrecord dev=0,0,0 media-info
cdrecord: No write mode specified.
cdrecord: Assuming -sao mode.
cdrecord: If your drive does not accept -sao, try -tao.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
Cdrecord-ProDVD-ProBD-Clone 3.01a08 (x86_64-unknown-linux-gnu) Copyright (C) 1995-2012 Joerg Schilling
scsidev: '0,0,0'
scsibus: 0 target: 0 lun: 0
cdrecord: No such file or directory. Cannot open '/dev/pg0'. Cannot open or use SCSI driver.
cdrecord: For possible targets try 'cdrecord -scanbus'.
cdrecord: For possible transport specifiers try 'cdrecord dev=help'.
root@darkstar:~#
So I think I need scsi emulation or a different kernel.

Last edited by stf92; 01-26-2013 at 09:42 AM.
 
Old 01-26-2013, 10:42 AM   #2
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 2,903

Original Poster
Rep: Reputation: 45
A search in the slackware forum (LQ) gave me the answer. 14.0 seems not to load the sg module at boot time. My old 12.0 did it, because I never needed to manually load it to make cdrecord work. So, the solution is:
Code:
modprobe sg
cdrecord -scanbus
which will give you the scsi-bus, target and lun. Of course, you need scsi emulation in a non scsi bus, but this seems to be built in the generic kernel. I won't mark SOLVED till I get some feedback, which could be interesting.

EDIT: look in /etc/rc.d/rc.modules for the entry '#sbin/modprobe sg' and uncomment it. So you do not have to load the module after manually.

Last edited by stf92; 01-26-2013 at 11:01 AM.
 
1 members found this post helpful.
Old 02-17-2013, 10:04 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,253

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
I ran into this problem today. I'm curious why the sg module does not load automatically anymore and is relegated to being loaded manually through rc.modules.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cdrecord doesn't work, scsi emulation on? tsphan Linux - Hardware 4 02-02-2005 09:05 PM
cdrecord problems using both - scsi-emulation HLVS Linux - Software 5 02-02-2005 12:21 AM
scsi-emulation, cdrecord, and xsane problems FiveFlat Linux - Software 2 12-12-2004 06:46 PM
scsi emulation wr3ck3d Slackware 1 03-30-2003 11:39 PM
cdrecord (scsi emulation) HwzrHlslndr Linux - Software 17 01-11-2003 07:32 AM


All times are GMT -5. The time now is 10:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration