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
 
Search this Thread
Old 08-12-2003, 09:21 PM   #1
mooreted
Member
 
Registered: May 2003
Posts: 598

Rep: Reputation: 30
Unhappy scsi Emulation


I cannot get SCSI emulation to work with Slack. For one thing there is nowhere I could find anywhere to enable SCSI emulation in the kernel. I have been following all kinds of instructions all over the web but nothing seems to work. Maybe someone here knows something?

Thanks,
Ted.
 
Old 08-12-2003, 09:32 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 71
You should be able to load it as a module in the /etc/rc.d/rc.modules.
 
Old 08-12-2003, 10:25 PM   #3
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Question

/sbin/modprobe ide-scsi is already in the rc.modules file and I added "apend='hdc=ide-scsi'" to lilo and ran lilo as root. I am trying to get K3b working but it keep saying that cdrecord cannot use ATAPI and that I should enable scsi emulation. I have, but it isn't working.

Typing "modprobe ide-scsi" at the CLI retruns no errors.

"cdrecord -scanbus" says it can't open /dev/pg* there is no such directory so it can't load the scsi drivers. I installed cdrecord from the Slackware CD.

No idea what I'm doing wrong...

Frustrating.

Thanks,
Ted.

Last edited by mooreted; 08-12-2003 at 10:29 PM.
 
Old 08-12-2003, 10:45 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 71
Try this:

First appent this line to your /etc/lilo.conf.
append=hdc=ide-scsi max_scsi_lun=1

Second edit your /etc/rc.d/rc.modules. Find the line that say:
/sbin/modprobe scsi_mod
/sbin/modprobe sr_mod
and uncomment them.

To burn a copy of your /etc directory you need to run these commands.
mkisofs -r -o etc.img /etc
cdrecord dev=0,0,0 -v -data etc.img
*note run cdrecord -scanbus to find out what to put after the dev= . Most of the time it should be 0,0,0.
 
Old 08-12-2003, 10:47 PM   #5
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
If you want SCSI emulation option on your kernel config.
You have to enable SCSI option first and then go back to ATAPI/IDE and enable SCSI emulation.

Be sure to enable Generic SCSI support under SCSI option, enableing SCSI cdrom would give you /dev/sr0 devices.
 
Old 08-13-2003, 08:06 AM   #6
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Thanks everyone, that did the trick. K3b is now working fine. I really appreciate it.

Have a great day,
Ted.
 
Old 08-27-2003, 04:43 AM   #7
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Rep: Reputation: 15
Quote:
Originally posted by carboncopy
If you want SCSI emulation option on your kernel config.
You have to enable SCSI option first and then go back to ATAPI/IDE and enable SCSI emulation.

Be sure to enable Generic SCSI support under SCSI option, enableing SCSI cdrom would give you /dev/sr0 devices.

why do i have to do any of that? the /etc/rc.d/rc.modules says that scsi emulation is activated in the kernel by default.

i have done all the above things, but still not getting the CD-RW to work as a regular CD-ROM any more (or as a burner). I have made a new symlink of cdrom -> /dev/scd0 but did not change the way i mount the device, is that okay?
 
Old 08-27-2003, 05:45 AM   #8
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Quote:
Originally posted by VioLaToR
why do i have to do any of that? the /etc/rc.d/rc.modules says that scsi emulation is activated in the kernel by default.

i have done all the above things, but still not getting the CD-RW to work as a regular CD-ROM any more (or as a burner). I have made a new symlink of cdrom -> /dev/scd0 but did not change the way i mount the device, is that okay?
can you show us the contents of your /etc/fstab file?
 
Old 08-27-2003, 02:16 PM   #9
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Rep: Reputation: 15
let me start off by saying the CD-RW worked as a standard RO CD-ROM device prior to me changing the symlink and adding the line to the lilo.conf

also the line used to mount the CD drive was marked as ro, but i have changed it to rw now.


Code:
/dev/hdb2       swap            swap            defaults                0       0
/dev/hda1       /               ext2            defaults                1       1
/dev/cdrom      /mnt/cdrom      iso9660         rw,users,umask=0222     0       0
/dev/hdd        /mnt/cdrom1     iso9660         ro,users,umask=0222     0       0
/dev/fd0        /mnt/floppy     auto            users,rw,umask=0222     0       0
devpts          /dev/pts        devpts          gid=5,mode=620          0       0
proc            /proc           proc            defaults                0       0
/dev/hdb1       /mnt/windows    ntfs            ro,umask=0222           0       0
/dev/hde1       /mnt/fat        vfat            users,rw,umask=0000     0       0
 
Old 08-27-2003, 08:56 PM   #10
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
OK, looks about right... can you show us what is displayed when you run ls -al /dev/cd*... Is there any broken symlinks shown?
 
Old 08-27-2003, 09:25 PM   #11
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Rep: Reputation: 15
unfortunately, i do not know what a broken link looks like.

the one that shows the link for cdrom to the /dev/scd0 shows yellow.
 
Old 08-27-2003, 10:16 PM   #12
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Hmm... on my system correct symlinks are light blue... but anyway, what does cdrecord -scanbus show (you might need to run this as root)?
 
Old 08-28-2003, 02:21 AM   #13
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Quote:
Originally posted by VioLaToR
unfortunately, i do not know what a broken link looks like.

the one that shows the link for cdrom to the /dev/scd0 shows yellow.
On my system, SCSI cd-rom or SCSI emulation cd-rom is on
/dev/sr0

you should do a dmesg to see what did your kernel assign your cd-writer to be.
 
Old 08-28-2003, 02:27 AM   #14
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
one more thing. You need to add

append = "hdX=ide-scsi" (or is it scsi-ide)

to lilo. I can't show you mine now cause I am not using my comp.

X would be your current cd-writer drive. And you need to reboot after that.

1. append = "hdX=scsi-ide" to /etc/lilo.conf
2. lilo
3. reboot

somebody please correct my first action if it is wrong. (brain dead now)
 
Old 08-28-2003, 03:05 AM   #15
VioLaToR
Member
 
Registered: Aug 2002
Distribution: ArchLinux 2007.08 / Slackware 11.0
Posts: 58

Rep: Reputation: 15
this may seem really strange, but i think it might be working correctly after i rebooted. but the symlink is still yellow..





as you will notice in dmesg below, i used a different line in lilo:

append="hdc=ide-scsi max_scsi_lun=1"






# 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'
scsibus0:
0,0,0 0) 'TDK ' 'CDRW4800B ' 'S7S5' 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) *



/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/


# cdrecord dev=ATAPI -scanbus
Cdrecord 2.0 (i686-pc-linux-gnu) Copyright (C) 1995-2002 Jrg 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) 'TDK ' 'CDRW4800B ' 'S7S5' 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) *
scsibus1:
1,0,0 100) *
cdrecord: Warning: controller returns wrong size for CD capabilities page.
1,1,0 101) 'ATAPI-CD' 'ROM-DRIVE-52MAX ' '52CE' Removable CD-ROM
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *



/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



# dmesg
.....

.....

Kernel command line: auto BOOT_IMAGE=Slackware ro root=301 hdc=ide-scsi max_scsi_lun=1
ide_setup: hdc=ide-scsi

.....

.....

scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: TDK Model: CDRW4800B Rev: S7S5
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
.....






It functions as a regular CD-ROM now. When i mount it manually with a CD in the drive, it tells me "mounting read-only, media is write protected."

So now i need to test to see if it burns CDs or not. What is the best method to test this using the cdrecord program? i mean what syntax shall i use to create my test?

I would like to make an iso out of some files in my home dir, and then burn the iso to the disk.

Last edited by VioLaToR; 08-28-2003 at 04:15 AM.
 
  


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
scsi emulation tux66 Slackware 4 05-25-2005 04:26 AM
SCSI emulation bcf2 Mandriva 2 12-22-2004 03:06 PM
scsi emulation or not ? cozye Slackware 5 12-01-2003 02:23 PM
Scsi Emulation!! FearPasion710 Linux - General 3 09-20-2003 04:14 AM
scsi emulation, how? one Slackware 1 09-02-2003 01:58 PM


All times are GMT -5. The time now is 07:25 AM.

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