If this isn't compiled in, you can add this line to your /etc/nf:Įcho 8 > /sys/module/scsi_mod/parameters/max_luns Make sure that “Probe all LUNs on each SCSI device” ( CONFIG_SCSI_MULTI_LUN) is enabled in your kernel. If you have an n-in-1 card reader that can deal with multiple cards, the process isn't much different. The first (and almost certainly only) partition is /dev/sda1. Now, run the command sg_map to determine the real SCSI device associated with your reader.
You can also confirm that the driver is working by looking at the file /proc/scsi/scsi . This indicates that the “raw” SCSI device associated with your reader is /dev/sg0. dev/sg0: scsi0 channel=0 id=0 lun=0 type=0ĮUSB Compact Flash 5.09 To check your SCSI devices, run the command sg_scan -i .
Install the sg3-utils package if you haven't already (on Debian, apt-get install sg3-utils). If you see that, the kernel is recognizing the USB device. If you have a look through the file /proc/bus/usb/devices, you should see a section with an S: line and the name of your reader and an I: line with Driver=usb-storage. And, plug the thing in, if you haven't already. It will prevent the whole thing from working correctly.Ĭompile your kernel with these options and reboot (or just load the relevant modules if you've got them). Make sure you do not select the “Low Performance USB Blockĭriver” ( BLK_DEV_UB).
With minimal modifications, the setup is the same for USB CD-ROM drives, floppies, etc. You should be able to follow the same procedure for other USB storage devices (portable hard drives, other media cards, etc.).