Mounting usb drive on iMX6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mounting usb drive on iMX6

1,377 Views
kunalkulshresth
Contributor III

Hi All,

I am trying to read content of usb thumb drive when inserted into USB hub interface of the board. After boot up I could see /dev/sda and /dev/sda1. So I understood that I can mount the partition and then read the files from partition. But after I run mount command (mount /dev/sda1 /mnt/xyz) it does mount (there is no error), but mounted folder does not show anything, which is not what I expected.

Is My understanding correct in that I expected mount to work.

I planned to write a application to read/open the content (image) of the pen drive. But now, it is not mounting and I am not sure what to do next.

Any help here will be good and to clarify my understanding.

Thanks and regards,

KK

0 Kudos
1 Reply

661 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kunal

could you test this usb stick on windows computer

and write some file in it, then attach to linux and after mounting

check file with ls  -l  /mnt/xyz/

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos