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
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel