scsi problem with usb

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I am using linux 2.6.17 for my usb controller driver in host mode for mass storage emulation. Mass storage device is detected and I got following prints


/ # INQUIRY message sent

  Vendor: Generic   Model: Flash D           Rev:     

  Type:   Direct-Access                      ANSI SCSI revision: 00

SCSI device sdb: 1024 512-byte hdwr sectors (1 MB)

sdb: Write Protect is off

sdb: assuming drive cache: write through


SCSI device sdb: 1024 512-byte hdwr sectors (1 MB)


sdb: Write Protect is off

sdb: assuming drive cache: write through

sdb:<7>usb-storage: queuecommand called

unknown partition table

sd 1:0:0:0: Attached scsi removable disk sdb

sd 1:0:0:0: Attached scsi generic sg1 type 0

INQUIRY message sent

  Vendor: Generic   Model:  AUTORUN  Disk    Rev: 8.00

  Type:   Direct-Access                      ANSI SCSI revision: 02


SCSI device sdc: 1024 512-byte hdwr sectors (1 MB)

sdc: Write Protect is on

sdc: assuming drive cache: write through


SCSI device sdc: 1024 512-byte hdwr sectors (1 MB)


sdc: Write Protect is on

sdc: assuming drive cache: write through

 sdc:<7>usb-storage: queuecommand called



 sdc1 sdc4

sd 1:0:0:1: Attached scsi disk sdc

sd 1:0:0:1: Attached scsi generic sg2 type 0



crw-r--r--    1 root     root       5,   1 Jan  1 00:01 console

crw-r--r--    1 root     root      29,   0 May 11  2006 fb0

crw-r--r--    1 root     root      89,   0 May 11  2006 i2c-0

crw-r--r--    1 root     root      89,   1 May 11  2006 i2c-1

crw-r--r--    1 root     root       1,   1 May 11  2006 mem

crw-r--r--    1 root     root      90,   0 May 11  2006 mtd0

crw-r--r--    1 root     root       1,   3 May 11  2006 null

brw-r--r--    1 root     root       8,   0 Aug 14  2006 sda

brw-r--r--    1 root     root       8,   1 Aug 14  2006 sda1

brw-r--r--    1 root     root       8,   2 Aug 14  2006 sda2

brw-r--r--    1 root     root       8,  16 Aug 14  2006 sdb

brw-r--r--    1 root     root       8,  32 Aug 14  2006 sdc

crw-r--r--    1 root     root      21,   0 Aug 14  2006 sg0

crw-r--r--    1 root     root      21,   1 Aug 14  2006 sg1

crw-r--r--    1 root     root      21,   3 Jan  1 00:01 sg3

crw-r--r--    1 root     root     204,  64 May 11  2006 ttyAMA0

crw-r--r--    1 root     root     204,  65 May 11  2006 ttyAMA1



I mounted usbfs and able to see mass storage in /proc/bus/usb/devices

However when I try to mount by
Mount -t vfat /dev/sda /mnt/pendrive then
I get error "Mounting /dev/sda on /mems failed: No such device" I tried it on sdb and sdc as well but it's not mounted.

I also tried to run fdisk /dev/sda but same type of error appears.

Can any one tell me abt possible problem?

Regards
Manish

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux