Skip to contentSkip to conversation

scsi problem with usb

DISCUSSION Manish RATHI 2 participants 4 messages Aug 14, 2006 – Aug 18, 2006 SCSI

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 5 lines · Manish RATHI

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.

Try mounting using "/dev/sda1", rather than "/dev/sda".

The device "sda" is the *entire* disk, "sda1" is the first partition on it - this will contain your data.

Thanks,

Signature · 3 lines
Julian Calaby

Email: [email protected]
#2 lore raw

Hi,
It doesn't work with /dev/sda1 or /dev/sda2, sda3, sdb, sdc1, sdb1

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,  17 Aug 17  2006 sdb1
brw-r--r--    1 root     root       8,  18 Aug 17  2006 sdb2
brw-r--r--    1 root     root       8,  32 Aug 14  2006 sdc
brw-r--r--    1 root     root       8,  33 Aug 17  2006 sdc1
brw-r--r--    1 root     root       8,  34 Aug 17  2006 sdc2
brw-r--r--    1 root     root       8,  35 Aug 17  2006 sdc3
brw-r--r--    1 root     root       8,  36 Aug 17  2006 sdc4
crw-r--r--    1 root     root      21,   0 Aug 14  2006 sg0
crw-r--r--    1 root     root      21,   3 Aug 14  2006 sg3

I am able to run fdisk and mkdosfs on /dev/sdb but again mount fail with "No such device"

Thanks
Regards
Manish

-----Original Message-----
From: Julian Calaby [mailto:[email protected]]
Sent: Friday, August 18, 2006 5:36 PM
To: Manish RATHI
Cc: [email protected]
Subject: Re: scsi problem with usb

Quoted 6 lines · Manish RATHI

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.

Try mounting using "/dev/sda1", rather than "/dev/sda".

The device "sda" is the *entire* disk, "sda1" is the first partition on it - this will contain your data.

Thanks,

Signature · 3 lines
Julian Calaby

Email: [email protected]
#3 lore raw
Quoted 3 lines · Manish RATHI

Hi,
It doesn't work with /dev/sda1 or /dev/sda2, sda3, sdb, sdc1, sdb1

[snip]

Quoted 3 lines

I am able to run fdisk and mkdosfs on /dev/sdb but again mount fail with "No such device"

Well, sorry I couldn't help more - this is now outside of my experience.

Thanks,

Signature · 3 lines
Julian Calaby

Email: [email protected]