Re: USB mass storage device problem

From: Matthew Dharm
Date: Tue Nov 11 2003 - 21:16:05 EST


You're talking to the first (and wrong) LUN of a multi-LUN device.

You can:
(1) Use a SCSI module option to set the number of LUNs higher
(2) Do an echo "scsi add-single-device 0 0 0 1" > /proc/scsi/scsi

Matt

On Wed, Nov 12, 2003 at 02:03:03AM +0000, jim beam wrote:
> Hello,
>
> I am attempting to get a CompactFlash reader to work (Soyo SB-K7VXBP). The
> device sits in a 3.5" bay and plugs directly into a USB1 connector on my
> motherboard. It also provides two USB ports, which work.
>
> The CompactFlash reader almost works. At bootup, I get this message:
>
> hub 3-0:1.0: new USB device on port 1, assigned address 2
> scsi0 : SCSI emulation for USB Mass Storage devices
> Vendor: SOYO Model: USB Storage-SMC Rev: 0214
> Type: Direct-Access ANSI SCSI revision: 02
> Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
> WARNING: USB Mass Storage data integrity not assured
> USB Mass Storage device found at 2
>
> The device shows up in /sys/block/sda and in
> /sys/bus/usb/drivers/usb-storage. Also, /dev/sda is created as a symlink to
> /dev/scsi/host0/bus0/target0/lun0/disc (I am using devfs).
>
> However, when try to mount /dev/sda, I get an error saying "No medium
> found". I have tried inserting the card after booting and also before
> booting, with the same result. I am using the 2.6.0-test9 kernel, but I
> have had this device since early 2.4 and it has never worked. It is not
> damaged hardware because Windows detects it as a drive.
>
> Trying to run fdisk on /dev/sda gives the message "Unable to open /dev/sda".
> Is there something else I need to do, or any more information I can
> provide to debug this problem?
>
> Thanks,
> Jim
>
> _________________________________________________________________
> Is your computer infected with a virus? Find out with a FREE computer virus
> scan from McAfee. Take the FreeScan now!
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/

--
Matthew Dharm Home: mdharm-usb@xxxxxxxxxxxxxxxxxx
Maintainer, Linux USB Mass Storage Driver

It's monday. It must be monday.
-- Greg
User Friendly, 5/4/1998

Attachment: pgp00001.pgp
Description: PGP signature