I have solved my problem! The problem was that the RedHat 9.0 default kernel is not compiled with the option CONFIG_SCSI_MULTI_LUN set ON.
I don't know exactly which distributions have this option on or off.
You have to be logged in as root for my solution
For that reason, linux only probes the first LUN, and when you have multiple LUN's in your device (mp3 player: SD slot and internal flash memory, card reader: one reader for each card type, etc), you have to do the following:
1st way:
recompile your kernel with the option CONFIG_SCSI_MULTI_LUN set ON
2nd way (worked for me but is irritating because you have to repeat it each time you boot your computer if the scsi hosts are changed):
check to which scsi host your device is connected with
cat /proc/scsi/scsi
(this is necessary because you don't know before to which host it is connected: if I boot my computer with my mp3 player attached it is connected to scsi0, when i plug it in after the boot my cdrom-players are connected to that host and my mp3player is connected to scsi1)
then, read this first before executing the next command:
you have to change the firt and last digit of the four digits in the command.
The first digit is the scsi host your device is connected to. e.g if your device is connected to scsi1, you have to change the number to 1.
The last digit is the LUN you want to force the kernel to probe for. e.g. if you have two devices in your mp3 player, etc., you have to probe for LUN 0 and LUN 1, so set the digit to 0 or 1 (LUN 0 is probed automatically)
you have to repeat the command for each LUN that you want to probe for.
echo >/proc/scsi/scsi "scsi add-single-device 0 0 0 1"
with tail -f /var/log/messages you can check what happens if you connect your device (it displays the kernel messages but start it in a separate shell session because it doesn't stop)
you can use it to check which device you have to mount
now you can mount all the parts of your device with
mount /dev/sdx /mnt/map (replace x with the correct letter and replace map with the map you want to mount your device to
Last edited by abcdef123; 06-03-2004 at 02:52 AM.
|