Hi, Following entries are there for /dev/sdc and /dev/sdb crw-r--r-- 1 root root 5, 1 May 9 15:48 console crw-r--r-- 1 root root 29, 0 May 11 13:48 fb0 crw-r--r-- 1 root root 89, 0 May 11 13:51 i2c-0 crw-r--r-- 1 root root 89, 1 May 11 13:51 i2c-1 crw-r--r-- 1 root root 1, 1 May 11 13:49 mem crw-r--r-- 1 root root 90, 0 May 11 13:52 mtd0 crw-r--r-- 1 root root 1, 3 May 11 13:49 null brw-r--r-- 1 root root 8, 0 Aug 14 12:06 sda brw-r--r-- 1 root root 8, 1 Aug 14 12:06 sda1 brw-r--r-- 1 root root 8, 2 Aug 14 12:07 sda2 brw-r--r-- 1 root root 8, 16 Aug 14 12:07 sdb brw-r--r-- 1 root root 8, 17 Aug 17 15:17 sdb1 brw-r--r-- 1 root root 8, 18 Aug 17 15:17 sdb2 brw-r--r-- 1 root root 8, 32 Aug 14 12:07 sdc brw-r--r-- 1 root root 8, 33 Aug 17 15:17 sdc1 brw-r--r-- 1 root root 8, 34 Aug 17 15:17 sdc2 brw-r--r-- 1 root root 8, 35 Aug 17 15:19 sdc3 brw-r--r-- 1 root root 8, 36 Aug 17 15:19 sdc4
Again running mount with dev = sdc1, sdc4, sdb, sdb1 ["mount -t vfat <dev> new/" ] give "Mounting failed No such device" As told I also ran "mkdosfs /dev/sdb" Few cases were failure where I hanged on write (0x2a). One case was successful. Following SCSI cmds were sent [ 0x0, 0x0, 0x28 [READ(10)], 0x28, 0x28, 0x28, 0x2a, 0x2a, 0x2a ] in success case. I checked on catc that status of cmd was success with residual =0. However still mounting with /dev/sbd or /dev/sdb1 give error "No such device". Pls tell me if you want more information. 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