Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Does anyone know how to configure a linux kernel to detect sparse luns in RedHat 9.0? I have a SCSI device that 4 luns(0,1,3,16) and RedHat is only detecting the first 2. Additionally, The Qlogic driver that was shipped in the RH9 distribution is not allowing 16-byte CDB's. I have checked the SCSI Generic source code and found a #define for the maximum CDB size to be 16. Where else should I look to find the restriction?
One other note. For SCSI in lk 2.4, the maximum default cdb size is 12. This value can be overridden in the individual driver or can be changed in usr/src/linux-2.4/drivers/scsi/hosts.c by replacing retval->max_cmd_len = 12; with retval->max_cmd_len = 16;.
If you have legacy SCSI devices that don't support 16 byte cdb's you should override the value in the individual driver and leave the default as 12 in host.c.
For what it's worth ... LINUX 2.6.5 kernel with the same qlogic drivers support 16-byte CDBs. I tested on both 32-bit and ia64-bit distributions. Other kernels may work, but even after trying some patches to 2.4 kernels, I never got it to work.
Note also that you have to make sure your driver supports 16-byte CDBs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.