105

I have LG L5 (e610 model) device with Cyanogenmod 10. When I connect the phone to a computer with Linux (I have mtpfs installed), I can see both internal storage and the SD card. However when I navigate inside them, I can't see some of the files.

For example, if I open file manager app on the phone, I can see several files in the Internal storage/Notifications directory, however the directory on the computer only shows one of those files.

If I switch USB connection type to PTP (camera) - as OS X doesn't support MTP natively - Image Capture sees the phone as a camera, however it can only see about a third of all the images present on the phone.

I don't have a Windows machine to try, but I suspect the results would be similar.

I tried upgrading Cyanogenmod to the latest nightly, clearing and reinstalling it - same results. Any idea as to what is going on? How can I make all files appear on the host computer?

  • 1
    Similar question on SO: stackoverflow.com/questions/13737261/… – Vadzim Jan 30 '15 at 15:26
  • I have the same issue with LG G3 running Lineage OS 14.1 (Android 7.1.2) and rebooting doesn't fix the issue, selecing USB storage instead of MTP doesn't fix it either. – Shayan Jan 4 at 20:55
  • I am the 100th upvoter. – neverMind9 Jun 2 at 22:33

11 Answers 11

71

This is apparently a known bug in Android which is not even acknowledged by Google since Oct 2012, bug #2 — depending on the method of creating files on the Android device, these files may remain invisible when accessing the device using MTP, until the device is rebooted.

Known workarounds include:

  • Use USB storage mode instead of MTP, if it is supported by the phone. This is apparently not an option for LG Optimus L5 (e610), because this phone has unified internal storage (file storage is in /data/media on the same ext4 filesystem as /data), which cannot be exported as an USB storage device.

  • Clear data of the “Media Storage” app, then use the SDrescan app to rebuild the media database (discussed here).

  • Share files over the network using third-party apps such as AirDroid or one of Samba server apps (in the latter case you will need to have root to make the server reachable from most clients, including Windows).

  • 7
    Oh! I didn't realise that rebooting the device might help. Let me try that. – Aleks G May 29 '13 at 15:46
  • 1
    While it might not work for the internal SDCard, there might be a solution for the external SDCard enabling UMS :) – Izzy May 29 '13 at 15:58
  • 1
    As I don't have enough reputation yet, I'd like to add another option that worked for me: copying the files via "adb pull". Basically, this means that I quit trying to use MTP, it does work well, but the problem is that it seems to work well, but I can't trust it anymore. – Charles Roberto Canato Dec 17 '16 at 12:21
  • 1
    The best workaround I found is to install SSHelper (an Android ssh server) and rsync from the Linux (or windows) computer. Use USB tethering for fast connection. Explained in detail in this answer. – Organic Addict Dec 25 '16 at 12:56
  • 1
    TLDR, reboot the phone - because apparently that is the current industry standard for file IO on android, reboot after every write ... – ThorSummoner Sep 14 '17 at 20:37
34

Go to settings > apps > all applications > media storage > tap 'clear data' ...

Reboot and everything will appear in Windows Explorer once again.

  • 1
    Thanks for your answer. Note however that (1) you did not add anything new that wasn't already in another answer; (2) there's no need to clear data in media storage at all; a simple reboot does the trick. – Aleks G Dec 24 '13 at 15:31
  • 5
    @Aleks G actually this was the best and most direct (quick) instructions that worked for me. It's a good answer :). I didn't need to use SDrescan as said in the other answer, (thank goodness), and I DID need to do the exact thing this answer said - rebooting did not work in my case. – user31812 Mar 28 '14 at 5:30
  • 4
    On my nexus 5 latest update the Media Storage is app is hidden, You must select "Show System Apps" from the menu in the apps screen in order to find the media storage app. YMMV. – Nir Levy Feb 10 '16 at 20:23
  • I'd just like to add that (at least, on the Marshamallow ROM I'm using), clearing Media Storage data does work for redisplaying most files, but still there are files which don't get displayed. Yes, it's almost 2017, these are already old question and answers, and this problem still exists. – Charles Roberto Canato Dec 17 '16 at 12:17
17

Similar to ScoobyDo's answer

  1. Disconnect the USB cable from phone.
  2. Click 'Clear data' on the Media Storage application.
  3. Then 'Force stop'.
  4. Reconnect the USB cable to phone.
  5. The Media Storage application is restarted and rebuilds the media list.
  6. Missing files are now available.
  7. This avoids rebooting, which was important for me.

Your mileage may vary

  • 3
    My mileage varies :) On my Xperia Z1 with Android 4.3, the Media Storage app restarts after reconnecting USB, but doesn't start rebuilding the media list. The phone appears on my desktop, but shows no files. I have to actually reboot the phone in order to rebuild the database. It would sound like the quickest solution though, for those devices on which it works! – Daniel Saner Jul 22 '15 at 9:24
5

The SD Scanner worked for me on Android 5.0.2.

It requires no Root permissions. May be limited to only "new and updated files" (but not deleted ones).

I've found it in the accepted answer to the linked question and also in a question on rescanning SD memory on 4.4.

3

Im running a Galaxy note 3

The solution to the problem i found was by using the android file browser and moving the folder/file i had downloaded to another directory that wasnt as cluttered.

This enabled me to see the 50mb .rar file i had downloaded and pulled it onto my PC.

I dont know if this solution will help anyone, but it worked for me.

Thanks all :)

2

Go to Menu > System Settings > Storage

  1. Unmount SD card and press "OK"
  2. Mount SD card

You will see Scanning media files on SD card... in the notification bar. This means you are fine and the stuff in SD card is rescanned so you can see them now :)

1
  1. Disconnect your device from PC
  2. Movie file To other directory like "Playlist" via file manager
  3. Now, connect again your device and do your stuff with your files :)
0

This is how I solved this problem on my Galaxy Note-3:

  • Install FTP File Server Application on your android device
  • In your computer: Map network drive -> Add network location -> Choose FTP site -> enter the ip address of the FTP server
  • Connect (unanimously or by ID) to the "Server" and you'll be able to access ALL folders and files in the android device.
  • Thanks for the answer, but that's not going to help in my circumstances, as (1) I don't have a windows machine; and (2) the policies on our desktops explicitly block outgoing ftp connections. – Aleks G Aug 31 '14 at 9:01
0

My solution in Android 4.4 KitKat to fix this is running a system wide media scan. Normal apps can't do this anymore as of KitKat so you need root unfortunately. I used this app:

https://play.google.com/store/apps/details?id=com.logika.rescan&hl=en

  • I wonder why this app is listed as "incompatible with all of your devices". I have Android 5.0.2 Moto G (2nd gen, XT1079). – yurkennis May 3 '15 at 20:20
0

Tried the "Media Rescanner" app @georgiecasey linked to, but it did nothing. However, simply renaming the folder that was missing using a File Explorer app on my phone from "Music" to "Music1" did the trick - it showed up immediately in Android File Transfer. Simple, quick, dirty :)

The folder can easily be renamed back when you're done transferring. Easy solution for those one-off transfers, perhaps not the best one for often recurring ones though.

0

All I had to do is restart the android device. In my case a lenovo tablet, model A10-70F, Android version 6.0.

  • Restarting did NOT work on my LG G3. – Shayan Nov 30 '18 at 13:14

protected by Matthew Read May 7 '15 at 16:14

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.