Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Mounting a Silicon Motion, Inc. USB Drive and read the data

Need help with peripherals or devices?
Post Reply
Message
Author
bkpsusmitaa
Posts: 485
Joined: 2009-07-04 06:32
Location: Home: Barrackpore and Mysore
Has thanked: 5 times

Mounting a Silicon Motion, Inc. USB Drive and read the data

#1 Post by bkpsusmitaa »

Partial capture of the output using:

Code: Select all

 lsusb -v
Bus 001 Device 003: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) 64MB QDI U2 DISK
Couldn't open device, some information will be missing
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x090c Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.)
idProduct 0x1000 64MB QDI U2 DISK
bcdDevice 11.00
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 300mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 255
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 255
The system can't mount the USB device.
There is a post on Ubuntu here: Ubuntu 12.4 on 3.4.45 kernel: Can't access USB memory stick but can't understand the methology because of my limited skill and the way the chronological order of posts that have been made.

I understand that the following codes play a role:
fdisk -l
I read this particular line: " ... You should try to reload the ehci drivers with these command sudo rmmod ehci_hcd then sudo modprobe ehci_hcd and replug the usb to see if it work ... "
modprobe ehci_hcd
rmmod ehci_hcd

I tried these sequencially.
However, I don't understand the significance of the commands:

Code: Select all

rmmod ehci_hcd
libkmod: ERROR ../libkmod/libkmod-module.c:1802 kmod_module_get_holders: could not open '/sys/module/ehci_hcd/holders': No such file or directory

Code: Select all

For modprobe ehci_hcd
there is no response on the terminal.

The log files:
Messages log while insertion:

Code: Select all

May 31 12:02:05 HomeDebian kernel: [  563.700033] usb 1-5: new high speed USB device using ehci_hcd and address 4
May 31 12:02:05 HomeDebian kernel: [  563.833812] usb 1-5: New USB device found, idVendor=090c, idProduct=1000
May 31 12:02:05 HomeDebian kernel: [  563.833820] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 31 12:02:05 HomeDebian kernel: [  563.833826] usb 1-5: Product: TrusCont Publisher USB
May 31 12:02:05 HomeDebian kernel: [  563.833831] usb 1-5: Manufacturer: TrusCont
May 31 12:02:05 HomeDebian kernel: [  563.833835] usb 1-5: SerialNumber: 00000000001c3575
May 31 12:02:05 HomeDebian kernel: [  563.835471] usb 1-5: configuration #1 chosen from 1 choice
May 31 12:02:05 HomeDebian kernel: [  563.838442] scsi5 : SCSI emulation for USB Mass Storage devices
May 31 12:02:10 HomeDebian kernel: [  569.064846] scsi 5:0:0:0: CD-ROM            General  USB Flash Disk   1100 PQ: 0 ANSI: 2
May 31 12:02:10 HomeDebian kernel: [  569.067926] sr1: scsi3-mmc drive: 0x/0x caddy
May 31 12:02:10 HomeDebian kernel: [  569.068378] sr 5:0:0:0: Attached scsi generic sg3 type 5
May 31 12:02:15 HomeDebian pppd[970]: Timeout waiting for PADO packets
Syslog while insertion:

Code: Select all

May 31 12:01:10 HomeDebian pppd[970]: Timeout waiting for PADO packets
May 31 12:01:10 HomeDebian pppd[970]: Unable to complete PPPoE Discovery
May 31 12:02:05 HomeDebian kernel: [  563.700033] usb 1-5: new high speed USB device using ehci_hcd and address 4
May 31 12:02:05 HomeDebian kernel: [  563.833812] usb 1-5: New USB device found, idVendor=090c, idProduct=1000
May 31 12:02:05 HomeDebian kernel: [  563.833820] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 31 12:02:05 HomeDebian kernel: [  563.833826] usb 1-5: Product: TrusCont Publisher USB
May 31 12:02:05 HomeDebian kernel: [  563.833831] usb 1-5: Manufacturer: TrusCont
May 31 12:02:05 HomeDebian kernel: [  563.833835] usb 1-5: SerialNumber: 00000000001c3575
May 31 12:02:05 HomeDebian kernel: [  563.835471] usb 1-5: configuration #1 chosen from 1 choice
May 31 12:02:05 HomeDebian kernel: [  563.838442] scsi5 : SCSI emulation for USB Mass Storage devices
May 31 12:02:05 HomeDebian kernel: [  563.843072] usb-storage: device found at 4
May 31 12:02:05 HomeDebian kernel: [  563.843078] usb-storage: waiting for device to settle before scanning
May 31 12:02:10 HomeDebian kernel: [  568.840234] usb-storage: device scan complete
May 31 12:02:10 HomeDebian kernel: [  569.064846] scsi 5:0:0:0: CD-ROM            General  USB Flash Disk   1100 PQ: 0 ANSI: 2
May 31 12:02:10 HomeDebian kernel: [  569.067926] sr1: scsi3-mmc drive: 0x/0x caddy
May 31 12:02:10 HomeDebian kernel: [  569.068220] sr 5:0:0:0: Attached scsi CD-ROM sr1
May 31 12:02:10 HomeDebian kernel: [  569.068378] sr 5:0:0:0: Attached scsi generic sg3 type 5
May 31 12:02:15 HomeDebian pppd[970]: Timeout waiting for PADO packets
kern.log while insertion:

Code: Select all

May 31 12:02:05 HomeDebian kernel: [  563.700033] usb 1-5: new high speed USB device using ehci_hcd and address 4
May 31 12:02:05 HomeDebian kernel: [  563.833812] usb 1-5: New USB device found, idVendor=090c, idProduct=1000
May 31 12:02:05 HomeDebian kernel: [  563.833820] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 31 12:02:05 HomeDebian kernel: [  563.833826] usb 1-5: Product: TrusCont Publisher USB
May 31 12:02:05 HomeDebian kernel: [  563.833831] usb 1-5: Manufacturer: TrusCont
May 31 12:02:05 HomeDebian kernel: [  563.833835] usb 1-5: SerialNumber: 00000000001c3575
May 31 12:02:05 HomeDebian kernel: [  563.835471] usb 1-5: configuration #1 chosen from 1 choice
May 31 12:02:05 HomeDebian kernel: [  563.838442] scsi5 : SCSI emulation for USB Mass Storage devices
May 31 12:02:05 HomeDebian kernel: [  563.843072] usb-storage: device found at 4
May 31 12:02:05 HomeDebian kernel: [  563.843078] usb-storage: waiting for device to settle before scanning
May 31 12:02:10 HomeDebian kernel: [  568.840234] usb-storage: device scan complete
May 31 12:02:10 HomeDebian kernel: [  569.064846] scsi 5:0:0:0: CD-ROM            General  USB Flash Disk   1100 PQ: 0 ANSI: 2
May 31 12:02:10 HomeDebian kernel: [  569.067926] sr1: scsi3-mmc drive: 0x/0x caddy
May 31 12:02:10 HomeDebian kernel: [  569.068220] sr 5:0:0:0: Attached scsi CD-ROM sr1
May 31 12:02:10 HomeDebian kernel: [  569.068378] sr 5:0:0:0: Attached scsi generic sg3 type 5
After removal from the USB port:
Messages.log

Code: Select all

May 31 12:07:16 HomeDebian kernel: [  875.451573] usb 1-5: USB disconnect, address 4
Syslog

Code: Select all

May 31 12:07:16 HomeDebian kernel: [  875.451573] usb 1-5: USB disconnect, address 4
kern.log

Code: Select all

May 31 12:07:16 HomeDebian kernel: [  875.451573] usb 1-5: USB disconnect, address 4
Freedom is impossible to conceive.
Books that help:
Dale Carnegie's How To Win Friends And Influence People and Emilie Post's Etiquette In Society, In Business, In Politics, And At Home

bigrigdriver
Posts: 145
Joined: 2014-09-01 17:04
Location: East Central Illinois, USA

Re: Mounting a Silicon Motion, Inc. USB Drive and read the d

#2 Post by bigrigdriver »

rmmod ehci_hcd
The rmmod command remove a module from the running kernel.
insmod inserts a module into the kernel, but does not probe the device which depends on that module.
modprobe inserts a module and probes the device which depends on the module.

You system clearly recognizes the usb device:
May 31 12:02:10 HomeDebian kernel: [ 569.068220] sr 5:0:0:0: Attached scsi CD-ROM sr1
So, open a console and run the fdisl -l command as root. That will show you the available partitions on your system. The filesystem type of each partition will also be identified. The usb device may not be automatically mounted if you don't have a udev rule to mount usb devices. But, you can manually mount a usb device if you know the filesystem type. That's where fdisk comes into play.

Once you know the filesystem type, manually mount the usb device using information quoted above.

For example: let's suppose the usb device is formatted for a Microsoft ntfs filesystem. The command to mount the usb is as follows, using information from your post as quoted above:

Code: Select all

mount -t ntfs /dev/sr1 /media/cdrom
mount filesystem type ntfs on device sr1 at mountpoint /media/cdrom
If mount is successful, you should be able to see your files.

Warning: once you have mounted the usb, DO NOT unplug it until you have unmounted it.

Code: Select all

umount /media/cdrom or umount /dev/sr1
Then you can at your leisure do some research on writing udev rules, so that you can construct a rule to automatically mount the usb when it's plugged in.
Registered GNU/Linux user #170078

Go ask google before you ask on these boards.

It it isn't broken, Tweak It !!!

bkpsusmitaa
Posts: 485
Joined: 2009-07-04 06:32
Location: Home: Barrackpore and Mysore
Has thanked: 5 times

Re: Mounting a Silicon Motion, Inc. USB Drive and read the d

#3 Post by bkpsusmitaa »

Thanks!
How to probe for a specific filesystem? I am not aware of anything else than:

Code: Select all

lsusb -v | grep -e "Silicon Motion"
Bus 001 Device 003: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) 64MB QDI U2 DISK
idVendor 0x090c Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.)
or

Code: Select all

dmesg
No response!

I have also noticed that ehci_hcd is not installed in my system. Why?
Because:

Code: Select all

modprobe ehci_hcd
doesn't yield a response. Because,
new high-speed USB device number 3 using ehci-pci
according to

Code: Select all

dmseg
, but

Code: Select all

dmesg | grep -e "Silicon Motion"
doesn't yield an output.

Now, regarding your suggestion on mounting the USB device:

Code: Select all

# mount -t ntfs /dev/sr1 /media/test
Can only open '/dev/sr1' as read-only
NTFS signature is missing.
Failed to mount '/dev/sr1': Invalid argument
The device '/dev/sr1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

Code: Select all

# mount -t vfat /dev/sr1 /media/test
mount: block device /dev/sr1 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Code: Select all

# dmesg | tail
[ 1076.284667] scsi 4:0:0:0: CD-ROM General USB Flash Disk 1100 PQ: 0 ANSI: 2
[ 1076.286980] sr1: scsi3-mmc drive: 0x/0x caddy
[ 1076.287229] sr 4:0:0:0: Attached scsi CD-ROM sr1
[ 1076.287364] sr 4:0:0:0: Attached scsi generic sg3 type 5
[ 1213.252458] FAT-fs (sr1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 1213.253612] FAT-fs (sr1): bogus number of reserved sectors
[ 1213.253619] FAT-fs (sr1): Can't find a valid FAT filesystem
[ 1291.318468] FAT-fs (sr1): utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive!
[ 1291.319271] FAT-fs (sr1): bogus number of reserved sectors
[ 1291.319279] FAT-fs (sr1): Can't find a valid FAT filesystem
What to do?

Please look at this post:
USB Pendrive detected as a 64mb nothing
Re: USB Pendrive detected as a 64mb nothing

Well I managed to get it to mount by getting the sudo blck uuid
sudo mkfs /media/usb8
sudo mount -U <UUID>
cd /media/usb8
ls shows theres a live cd installed on it which I don't entirely understand

+ Linux Mint 13 Cinnamon 64bit +
Lubuntu 12.04 PPC 32bit G4 | Ubuntu 12.04 PPC 64bit G5
Please advise on this post - whether we could use it?
Freedom is impossible to conceive.
Books that help:
Dale Carnegie's How To Win Friends And Influence People and Emilie Post's Etiquette In Society, In Business, In Politics, And At Home

bigrigdriver
Posts: 145
Joined: 2014-09-01 17:04
Location: East Central Illinois, USA

Re: Mounting a Silicon Motion, Inc. USB Drive and read the d

#4 Post by bigrigdriver »

Plug in the Silicon Motion usb stick, then run the command "fdisk -l" in a terminal.

Post the output here.
Registered GNU/Linux user #170078

Go ask google before you ask on these boards.

It it isn't broken, Tweak It !!!

bkpsusmitaa
Posts: 485
Joined: 2009-07-04 06:32
Location: Home: Barrackpore and Mysore
Has thanked: 5 times

Re: Mounting a Silicon Motion, Inc. USB Drive and read the d

#5 Post by bkpsusmitaa »

I had done it earlier, but the system doesn't provide any information about the USB device. So I didn't post it.
Here it is:

Code: Select all

# fdisk -l

Disk /dev/sda: 500.1 GB, 500106780160 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976771055 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000db48c

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 62916607 31457280 83 Linux
/dev/sda2 62916608 272631807 104857600 83 Linux
/dev/sda3 272631808 482347007 104857600 83 Linux
/dev/sda4 482347008 976769023 247211008 83 Linux

Disk /dev/sdb: 80.0 GB, 80025280000 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156299375 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xd764d764

Device Boot Start End Blocks Id System
/dev/sdb1 * 63 44885609 22442773+ 83 Linux
/dev/sdb2 53255475 156296384 51520455 83 Linux
/dev/sdb3 44885610 53255474 4184932+ 82 Linux swap / Solaris

Partition table entries are not in disk order
Freedom is impossible to conceive.
Books that help:
Dale Carnegie's How To Win Friends And Influence People and Emilie Post's Etiquette In Society, In Business, In Politics, And At Home

Post Reply