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. |
You should be able to load it as a module in the /etc/rc.d/rc.modules.
|
/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. |
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. |
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. :) |
Thanks everyone, that did the trick. K3b is now working fine. I really appreciate it.
Have a great day, Ted. |
Quote:
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? |
Quote:
|
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 |
OK, looks about right... can you show us what is displayed when you run ls -al /dev/cd*... Is there any broken symlinks shown?
|
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. |
Hmm... on my system correct symlinks are light blue... but anyway, what does cdrecord -scanbus show (you might need to run this as root)?
|
Quote:
/dev/sr0 you should do a dmesg to see what did your kernel assign your cd-writer to be. |
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) |
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 Jörg 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 Jörg 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. |
All times are GMT -5. The time now is 02:47 PM. |