Linux - MobileThis forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Firefox OS, Sailfish OS, Maemo, MeeGo, Ubuntu Mobile, WebOS, Open Mobile Alliance and other similar projects and products.
A reminder that LQ now has a dedicated Android sister site: AndroidQuestions.org
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Scenario: Add data on SD card from Phone (Click images and save to Card). Access the Card on PC through the Phone the images are not seen. However the images are seen on Phone.
Only after removing the Card and reinserting it in the Phone are the Images seen on the PC. Or rmmoding and modprobing the MMC driver they are visible.
Can anyone help me narrow down on the root cause of this issue?
Any pointers will be much appreciated.
What phone? Are you mounting the SD card using the phone's capabilities, or taking it out of the phone and using a separate SD card reader? If you can't see the files in the latter case then something weird is happening (like an encrypted loopback volume perhaps).
Its a phone running Linux kernel(2.6.31). SD card is mounted using the phone's capabilities. I have tested the same scenario using Card reader too. the images are seen properly. here are the steps
1. insert card in phone.
2. add images to it.
3. access card (thru phone) on PC -> no images seen (Not always but mostly. especially when more than 3 images added at one time)
4. umount card from phone and access through Card Reader -> images are seen properly
5. reinsert card in phone
6. access card on PC -> images are seen
Intuitively, this looks like another process locking the image files and making them unreadable - or - something on the phone acting as a file server and filtering what can be seen. But neither of these make sense in the context of a USB slave device. (Software on the phone should not be able to access the card at the same time.)
I think it might be related to the MMC driver, yes.
How are you viewing the card? With a file manager app I guess?
Can you see the files with ls -a at the command line?
If you unmount and remount the volume at the command line, do they become visible again?
When images are added on the card the phone shows the images properly. Accesing the sdcard through command line (via jtag) also shows the images properly.
Unmounting and remounting the card through command line the PC will NOT show the images. only physically reinserting the card in the phone will show the images on the PC.
Are you saying the usb mass storage driver is not the problem here?
yes yes i appreciate that. thank you. Im only worried cos after doing multiple tests im still not able to blame a particular module. for eg. MMC driver/USB Mass storage or any other module for that matter. Since it would help me focus on one thing.
Just for my knowledge, are MMC driver, USB Mass Storage and Media scanner service the only modules to be investigated for this problem? or am i missing something here..