On Monday 07 May 2001 03:24, Cipher wrote:
Hi Terence,
I've been trying to get SCSI emulation going. Could you give me some advice on that, If you have the time?
I'd appreciate any assistance, and I'd be happy to return the favor if you have any questions I can help you with.
No need to offer anthing in return- I've taken out of the Linux community and this list more than I could ever hope to put in, and so I'm more than happy to reduce that debt whenever I can. So here goes:- First, I "RTFM" using the various sources of information (How Tos, SuSE database, other reference sources, (including the list search facility at http://www.geocrawler.com/lists/3/Suse-Linux/292/0/), and, of course, a file of useful (to me!) mail from this list. (Please do not read into the above any criticism implied or direct, but is the practice I've got into since I first started, and which I recommend....) This gave me the background to set up the system. I must acknowlege that the following is based upon the work of many others, but that any errors are mine! 0. Make sure you are happy with configuring and installing your own kernel before you start (see the various HowTos), then log in as root. 1. Use "xconfig" (or "make config") in /usr/src/linux for a graphical (or command line) interface. 2. In "IDE, ATA & ATAPI Block Devices" make "Include IDE/ATAPI CDROM" a module, and configure "SCSI emulation support" into the kernel. It is important to load ATAPI CD-ROM support as a module to prevent it taking priority over the SCSI emulation on boot-up. 3. In "SCSI support" make sure you configure "SCSI support" "SCSI disc support " "SCSI generic support" into the kernel. 4. Compile and install the new kernel and modules etc.. Make certain that you have a working alternative kernel to fall back on should you have any problems. 5. Using YaST, configure LILO by adding the following line to the append-line hdX=ide-scsi (+hdY=ide-scsi and so on if needed, and substituting your CD Drive letters for X, Y etc.) NOTE Only use this for the drives you wish to be mounted as SCSI drives. Leave it out if you want to mount a given ATAPI drive using the module "IDE/ATAPI support". 6. In /etc/modules.conf change the line: alias scsi_hostadapter off to: alias scsi_hostadapter ide-scsi 7. Add a line to the file /sbin/init.d/boot.local: /sbin/modprobe ide-scsi 8. Make the following link(s): ln -sf /dev/scd0 /dev/cdrom (and ln -sf /dev/scd1 /dev/cdrom1 etc., if you have more than one CD-ROM/DVD). 9. In /etc/fstab add the following lines (changed to suit your system, of course, I have a DVD drive on /dev/hdc -> /dev/scd0, and a CD-RW on /dev/hdd -> /dev/scd1, which mount on /dvd and /cdr respectively) /dev/scd0 /dvd auto ro,noauto,user,exec 0 0 /dev/scd1 /cdr auto rw,noauto,user,exec 0 0 10. Pray, and/or get a stiff drink, then re-boot! 11. Check your start-up notices (log in as root, and before entering any command use Shift/Page Up/Down to move up and down the list. Alternatively use dmesg). These should show something like the following: SCSI subsystem driver Revision: 1.00 scsi0 : SCSI host adapter emulation for IDE ATAPI devices Vendor: PIONEER Model: DVD-ROM DVD-104 Rev: 1.18 Type: CD-ROM ANSI SCSI revision: 02 Vendor: IDE-CD Model: R/RW 4x4x24 Rev: Z024 Type: CD-ROM ANSI SCSI revision: 02 Detected scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0 Detected scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0 sr0: scsi3-mmc drive: 0x/0x cd/rw xa/form2 cdda tray Uniform CD-ROM driver Revision: 3.12 sr1: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray This tells you all you want to know! You have two (imitation) SCSI drives. 12. Check these by inserting a data CD in each drive and then mounting them. Remember to mount them as SCSI drives! e.g.: mount - t iso9660 /dev/scd0 /dvd That's all, folks! You can now use xcdroast, etc. I'm just about to try xine, it looks good. I hope this helps, but if you any problems please get back to me. Terence