Hi,
I am facing problem with mentor usb host mode.
I am doing mass storage emulation using pen driver with bulk only transport
protocol. Device is detected. I am able to run mkdosfs and fdisk over it. I
checked that file systems are correctly create with scsi write and read
operations successfully done.

Mkdosfs /dev/sdb or fdisk /dev/sdb work correctly.

However while mounting ( mount -t vfat /dev/sdb /new/ ) give error "No such
device.

I checked the major no as per documentation. I am finding them correct.

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 Jan  1 00:10 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've checked major_names[] for index 8, there device name is "sd".

Pls note that mount give same error for sdb1, sdc1, sdc4, sdc2, sda, sda1.
Can you give me any clue?

I also checked in sysfs that major & minor numbers for sdb are 8, 15.

I am using 2.6.16 kernel in static compilation for scsi and mass storage.
Have any one used usb mass storage over 2.6.16 in static mode rather than
modules?

Thanks
Regards
Manish

-----Original Message-----
From: Alan Stern [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 14, 2006 8:06 PM
To: Manish RATHI
Cc: linux-usb-devel@lists.sourceforge.net
Subject: Re: [linux-usb-devel] Usb storage mount problem


On Mon, 14 Aug 2006, Manish RATHI wrote:

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

> 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
...
> 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

> 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.
> 
> Can any one tell me abt possible problem?

You have two USB mass storage devices: /dev/sdb and /dev/sdc.  So of course
trying to mount /dev/sda doesn't work.

If mounting /dev/sdb doesn't work, it could be that the device isn't 
formatted.  You might have to run

        mkdosfs /dev/sdb

You shouldn't try to mount /dev/sdc; instead you should try to mount either
/dev/sdc1 or /dev/sdc4.  But first you will have to create entries for sdc1
and sdc4 in /dev, because they don't exist already:

        mknod b 8 33 /dev/sdc1
        mknod b 8 36 /dev/sdc4

BTW, this would be much easier if you used udev.

Alan Stern



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to