I have an IDE based PC running Linux/CentOS4 to which I wish to attach a scsi dlt. The host controller is an Adaptec AHA3940 something that lspci reports as: SCSI storage controller: Initio Corporation 360P (rev 02). I would like to have the system load the driver for this adapter at boot but I have two problems: 1. I am not sure which driver to use; and 2. I do not know how to force Linux to load a driver module. My research to date indicates that the driver module for this device likely is one of: /lib/modules/2.6.9-11.EL/kernel/drivers/scsi/aic7xxx/aic7xxx.ko /lib/modules/2.6.9-11.EL/kernel/drivers/scsi/aic7xxx/aic79xx.ko /lib/modules/2.6.9-11.EL/kernel/drivers/scsi/initio.ko My reading of man modprobe.conf and modprobe lead me to conclude that the following needs to be added to /etc/modprobe.conf install <name of one of the above drives> alias scsi_host_adapter <name used for install> Can somebody confirm whether I am on the right track or not and provide some advice has to how to proceed? Which is the preferred driver for this card? Do I have to make additional entries for the tape drive itself an HP surestore dlt vs80? How do I create the necessary /dev/st# and /dev/mt# entries? Is there a Linux utility program like kudzu that can probe the hardware and automate any of this? I am a digest subscriber so replies that only go to the list will reach me in about 24 hours. Regards, Jim -- *** e-mail is not a secure channel *** mailto:byrnejb.<token>@harte-lyne.ca James B. Byrne Harte & Lyne Limited vox: +1 905 561 1241 9 Brockley Drive fax: +1 905 561 0757 Hamilton, Ontario <token> = hal Canada L8E 3C3
On Fri, Sep 09, 2005 at 02:09:57PM -0400, James B. Byrne enlightened us:> I have an IDE based PC running Linux/CentOS4 to which I wish to > attach a scsi dlt. The host controller is an Adaptec AHA3940 > something that lspci reports as: > SCSI storage controller: Initio Corporation 360P (rev 02). >I'm not so sure it's an Adaptec controller if it's reporting itself as an Initio, but I suppose I could be wrong.> I would like to have the system load the driver for this adapter at > boot but I have two problems: 1. I am not sure which driver to use; > and 2. I do not know how to force Linux to load a driver module. > > My research to date indicates that the driver module for this > device likely is one of: > > /lib/modules/2.6.9-11.EL/kernel/drivers/scsi/aic7xxx/aic7xxx.ko > /lib/modules/2.6.9-11.EL/kernel/drivers/scsi/aic7xxx/aic79xx.ko > /lib/modules/2.6.9-11.EL/kernel/drivers/scsi/initio.ko > > My reading of man modprobe.conf and modprobe lead me to conclude > that the following needs to be added to /etc/modprobe.conf > > install <name of one of the above drives> > alias scsi_host_adapter <name used for install> >Chances are it's the initio.ko module.> Can somebody confirm whether I am on the right track or not and > provide some advice has to how to proceed? Which is the preferred > driver for this card? Do I have to make additional entries for the > tape drive itself an HP surestore dlt vs80? How do I create the > necessary /dev/st# and /dev/mt# entries? Is there a Linux utility > program like kudzu that can probe the hardware and automate any of > this? >Yeah, you're pretty well on the right track. Try running modprobe initio as root. Then run dmesg to see if it reports success. Should see something similar to: SCSI subsystem driver Revision: 1.00 scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36 <Adaptec 3960D Ultra160 SCSI adapter> aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.36 <Adaptec 3960D Ultra160 SCSI adapter> aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs if it is successful. At that point, make your changes to modprobe.conf and you should be fine for reboots. The OS should create the /dev/*st0 files for you. In dmesg you should see something like: st: Version 20040102, bufsize 32768, max init. bufs 4, s/g segs 16 Attached scsi tape st0 at scsi0, channel 0, id 6, lun 0> I am a digest subscriber so replies that only go to the list will > reach me in about 24 hours. >Thanks for noting, I CC'd you directly. Matt -- Matt Hyclak Department of Mathematics Department of Social Work Ohio University (740) 593-1263
On Friday 09 September 2005 14:09, James B. Byrne wrote:> My research to date indicates that the driver module for this > device likely is one of:> alias scsi_host_adapter <name used for install>If you put the card in, the OS should detect it automatically and do the right thing for you. You then want to rebuild your initrd so the SCSI module is loaded at startup. However you are correct in that you want to use: alias scsi_host_adapter aic7xxx I'm guessing it's going to be the aic7xxx anyway. To rebuild your ramdisk you can (At minimum): mkinitrd -f /boot/initrd-`uname -r`.img `uname -r` When you install new kernels this will be done for you automatically. -- Jason
On 9 Sep 2005 at 14:52, Matt Hyclak wrote:> Yeah, you're pretty well on the right track. Try running > > modprobe initio > > as root. Then run dmesg to see if it reports success. Should see > something similar to:# modprobe -v initio insmod /lib/modules/2.6.9-11.EL/kernel/drivers/scsi/initio.ko #dmesg i91u: Reset SCSI Bus ... scsi0 : Initio INI-9X00U/UW SCSI device driver; Revision: 1.04a Vendor: BNCHMARK Model: DLT1 Rev: 5E40 Type: Sequential-Access ANSI SCSI revision: 02 Attached scsi tape st0 at scsi0, channel 0, id 2, lun 0 st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 1048575 So. That seems to have worked. What is the precise line to put into /etc/modprobe? Should it go at the start or the end of the file or does it much matter? install initio ??? Regards, Jim