LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   USB mass storage detected but does not mount (https://www.linuxquestions.org/questions/linux-kernel-70/usb-mass-storage-detected-but-does-not-mount-830460/)

archieval 09-05-2010 09:42 AM

USB mass storage detected but does not mount
 
"fdisk -l" displays nothing

Code:

/system/bin # cat /proc/modules
usb_storage 93911 0 - Live 0xbf092000
scsi_mod 99688 1 usb_storage, Live 0xbf074000
gspca_vc032x 22400 0 - Live 0xbf069000
gspca_main 22576 1 gspca_vc032x, Live 0xbf05e000
uvcvideo 58104 0 - Live 0xbf04a000
s3c_bc 4076 0 - Live 0xbf044000
s3c_lcd 6252 0 - Live 0xbf03d000
pvrsrvkm 225856 30 s3c_bc,s3c_lcd, Live 0xbf000000

Code:

/system/bin # ls /dev/ | grep usb
usb1
usb2
usbdev2.1_ep00
usbdev2.1_ep81
usbdev1.1_ep00
usbdev1.1_ep81
usbmon2
usbmon1
usbmon0
usbdev2.1
usbdev1.1
/system/bin #

usb flashdrive inserted
Code:

/system/bin #
/system/bin # usb 1-1: new high speed USB device using s5pc110-ehci and address4
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access    Kingston DT 101 II        1.00 PQ: 0 ANSI: 2

/system/bin #
/system/bin # ls /dev/ | grep usb
usbdev1.4_ep00
usbdev1.4
usbdev1.4_ep02
usbdev1.4_ep81
usb1
usb2
usbdev2.1_ep00
usbdev2.1_ep81
usbdev1.1_ep00
usbdev1.1_ep81
usbmon2
usbmon1
usbmon0
usbdev2.1
usbdev1.1
/system/bin #
/system/bin # mount -t auto /dev/usbdev1.4 /fd
mount: No such device
/system/bin # mount -t auto /dev/usbdev1.4_ep00 /fd
mount: No such device
/system/bin # mount -t auto /dev/usbdev1.4_ep02 /fd
mount: No such device
/system/bin # mount -t auto /dev/usbdev1.4_ep81 /fd
mount: No such device
/system/bin #

Im working on Linux kernel source 2.6.29, does anyone has any idea?

I think I posted in wrong section? Please move if needed.

ofaring 09-05-2010 10:22 AM

1. Check the output of dmesg after inserting the usb key.
Code:

$ dmesg
2. Look for something to the affect of "sda: sda1" (depending on your hardware). What this means is that the drive you inserted has been assigned the device name "sda" and the partition on it is called "sda1". To mount it, use something like this:
Code:

# mount /dev/sda1 /mnt

archieval 09-05-2010 08:17 PM

When I dmesg with sd or sda or sdb, nothing appears. When I dmesg with usb this is what I get:
Code:

/system/bin # dmesg | grep usb
<6>usb 1-1: new high speed USB device using s5pc110-ehci and address 2
<7>PM: Adding info for usb:1-1
<6>usb 1-1: configuration #1 chosen from 1 choice
<7>PM: Adding info for usb:1-1:1.0
<7>PM: Adding info for No Bus:usbdev1.2_ep01
<7>usb-storage: device found at 2
<7>usb-storage: waiting for device to settle before scanning
<7>PM: Adding info for No Bus:usbdev1.2_ep82
<7>PM: Adding info for No Bus:usbdev1.2
<7>PM: Adding info for No Bus:usbdev1.2_ep00
<7>usb-storage: device scan complete


bsat 09-05-2010 11:33 PM

don't pipe the message of dmesg to grep, if I remember right the line that specifies the "sda" does not have the string "usb" in it. Jut plug your pendrive and do dmesg,you might be able to see the "sda" line.

basheer 09-05-2010 11:53 PM

#lsusb and post the output

archieval 09-06-2010 12:06 AM

I don't have the lsusb binary in my embedded system, it was not installed, there is really no sdb/sda in the /var/log/messages. Apparently I have solved the problem by putting Y on all the config in the SCSI part of the kernel config file. I think I missed the sd_mod.ko module but I don't know exactly what compiles that so instead of compiling modules, I compiled all of them to be built-in and automatically installed during bootup. After that everything went well.


All times are GMT -5. The time now is 08:48 PM.