* scsi problem with usb
@ 2006-08-14 9:28 Manish RATHI
2006-08-18 12:06 ` Julian Calaby
0 siblings, 1 reply; 4+ messages in thread
From: Manish RATHI @ 2006-08-14 9:28 UTC (permalink / raw)
To: linux-scsi
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scsi problem with usb
2006-08-14 9:28 scsi problem with usb Manish RATHI
@ 2006-08-18 12:06 ` Julian Calaby
2006-08-18 13:06 ` Manish RATHI
0 siblings, 1 reply; 4+ messages in thread
From: Julian Calaby @ 2006-08-18 12:06 UTC (permalink / raw)
To: Manish RATHI; +Cc: linux-scsi
On 8/14/06, Manish RATHI <manish.rathi@st.com> wrote:
> 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,
--
Julian Calaby
Email: julian.calaby@gmail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: scsi problem with usb
2006-08-18 12:06 ` Julian Calaby
@ 2006-08-18 13:06 ` Manish RATHI
2006-08-18 15:00 ` Julian Calaby
0 siblings, 1 reply; 4+ messages in thread
From: Manish RATHI @ 2006-08-18 13:06 UTC (permalink / raw)
To: 'Julian Calaby'; +Cc: linux-scsi
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:julian.calaby@gmail.com]
Sent: Friday, August 18, 2006 5:36 PM
To: Manish RATHI
Cc: linux-scsi@vger.kernel.org
Subject: Re: scsi problem with usb
On 8/14/06, Manish RATHI <manish.rathi@st.com> wrote:
> 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,
--
Julian Calaby
Email: julian.calaby@gmail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: scsi problem with usb
2006-08-18 13:06 ` Manish RATHI
@ 2006-08-18 15:00 ` Julian Calaby
0 siblings, 0 replies; 4+ messages in thread
From: Julian Calaby @ 2006-08-18 15:00 UTC (permalink / raw)
To: Manish RATHI; +Cc: linux-scsi
On 8/18/06, Manish RATHI <manish.rathi@st.com> wrote:
> Hi,
> It doesn't work with /dev/sda1 or /dev/sda2, sda3, sdb, sdc1, sdb1
>
[snip]
>
> 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,
--
Julian Calaby
Email: julian.calaby@gmail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-08-18 15:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-14 9:28 scsi problem with usb Manish RATHI
2006-08-18 12:06 ` Julian Calaby
2006-08-18 13:06 ` Manish RATHI
2006-08-18 15:00 ` Julian Calaby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox