PDA

View Full Version : Probe ALL LUNs



devtrash
06-30-2003, 04:22 AM
I am trying to get my SanDisk 2in1 card reader to work. From what I understand the Smartmedia slot ( the one I need) is on LUN 1. Is there a way to enable that additional LUN? I have asked on the Knoppiz mailing list if "Probe Additional LUNs" was selected in the latest versions kernel but got no reply. Any help would be appreciated.

VeeDubb
07-04-2003, 06:49 AM
For sure you can do it by selecting "probe multiple LUN's on each device" when configureing a custom kernel. I have also heard of people using various boot params, but I've not had any success that way.

rickenbacherus
07-08-2003, 03:47 AM
You could try something like this for example:

echo "scsi-add-single-device 1 0 0 1" >
/proc/scsi/scsi

That might get your card reader into the /proc filesystem.

BTW-
Have a look at /usr/src/linux/.config and you'll see this:


CONFIG_SCSI_MULTI_LUN is not set

VeeDubb is right- you'd need to recompile the kernel. I don't know why it's not set.

devtrash
07-08-2003, 04:30 AM
You could try something like this for example:

echo "scsi-add-single-device 1 0 0 1" >
/proc/scsi/scsi

That might get your card reader into the /proc filesystem.

BTW-
Have a look at /usr/src/linux/.config and you'll see this:


CONFIG_SCSI_MULTI_LUN is not set

VeeDubb is right- you'd need to recompile the kernel. I don't know why it's not set.

According to Klaus, on the mailing list, it's not set because then there would be 7 erroneous SCSI drives on the desktop.

probono
08-21-2003, 04:09 PM
Did anyone get this to work? I have a 6in1 USB card reader but only the slot with LUN 0 is recognized.

Breetai
08-21-2003, 07:33 PM
I have not tried it with Knoppix, but it has worked with both RedHat 9 and Mandrake 9.1

in /etc/modules.conf add the line

options scsi_mod max_scsi_luns=12

The only way I know of doing this with Knoppix is with a remaster.

Breetai
08-21-2003, 07:53 PM
I forgot that /etc/modules.conf is not to be edited. It is built by the stuff in /etc/modutils

I would add it to the end of /etc/modutils/aliases

# support for SansDisk 5-in-1 reader
options scsi_mod max_scsi_luns=12

Stephen
08-21-2003, 09:37 PM
I forgot that /etc/modules.conf is not to be edited. It is built by the stuff in /etc/modutils

I would add it to the end of /etc/modutils/aliases

# support for SansDisk 5-in-1 reader
options scsi_mod max_scsi_luns=12

And then run update-modules as root for the changes to take effect on the next reload of the module.

probono
08-21-2003, 10:02 PM
Thanks for the quick reply. Still I can only use one out of four slots of my USB card reader. How can I check whether all LUNs are activated?

cat /proc/scsi/scsi


Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: SONY Model: CD-RW CRX140E Rev: 1.0n
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: IC Model: USB Storage-CFC Rev: 301b
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 01
Vendor: IC Model: USB Storage-SMC Rev: 301b
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 02
Vendor: IC Model: USB Storage-MMC Rev: 301b
Type: Direct-Access ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 03
Vendor: IC Model: USB Storage-MSC Rev: 301b
Type: Direct-Access ANSI SCSI revision: 0
So far, it looks just as before.
But:
scsi_info /dev/sdc


SCSI_ID="0,0,2"
MODEL="IC USB Storage-MMC"
FW_REV="301b"

That last thing wasn't there before your hint. But still I cannot mount the MMC card:

mount /dev/sdc1 /mnt/test
mount: /dev/sdc1 is not a valid block device

Breetai
08-21-2003, 10:27 PM
I would try


mount /dev/sdc3 /mnt/test

The reason being, is I suspect the following is true:


/dev/sdc1 CFC
/dev/sdc2 SMC
/dev/sdc3 MMC
/dev/sdc4 MSC

probono
08-22-2003, 12:24 AM
unfortunately no:

CFC *does work* with mount /dev/sda1 /mnt/test

yet I don't know how the others (especially the MMC) can be mounted... but I think it is sdc1 because of

scsi_info /dev/sdc


scsi_info /dev/sdc
SCSI_ID="0,0,2"
MODEL="IC USB Storage-MMC"
FW_REV="301b"


Interestingly,
cdrecord -scanbus


Cdrecord 2.01a14 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.7'
scsibus0:
0,0,0 0) 'SONY ' 'CD-RW CRX140E ' '1.0n' 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) 'IC ' 'USB Storage-CFC ' '301b' Removable Disk
1,1,0 101) *
1,2,0 102) *
1,3,0 103) *
1,4,0 104) *
1,5,0 105) *
1,6,0 106) *
1,7,0 107) *

How can I make MMC show up here instead of CFC?

spurious
12-27-2003, 07:19 PM
I've just written a post about how to detect and mount a 6-in-1 USB multi-card reader (for Compactflash, Smartmedia / x-Media, SD/MMC and Sony Memorystick), without recompiling the kernel, at this thread in the Tips & Tricks forum (http://www.knoppix.net/forum/viewtopic.php?p=31491#31491) .