I have Moto G S5 (Android 8.1). I connected it to my laptop (Ubuntu 18.04). I moved some files (about 4 Gb) from a folder in internal storage to root folder of the internal storage.
Transfer happened succesfully. But the File manager of android doesn't show those files in the root folder. And I can access those files from my laptop, but when I try to open it. It shows Unknown MTP error
. The SD card capacity when viewed from Android has decreased by 4 Gb (same as those files), but when I see the SD card capacity through Ubuntu the capacity remains intact.
Please suggest me some steps to recover those files. I tried copying those files back to the original location, but I get the same MTP error.
adb shell
to gain shell access, then use themv
command to move the files back to their original location. I wouldn't trust MTP farther than I can throw my house. To my experience, theadb shell
approach has the best chances (even better if you have root access). – Izzy♦ Oct 13 '18 at 22:35adb pull
– though in my experience, even that is faster than transferring via MTP (but then again, what is not?)) – Izzy♦ Oct 14 '18 at 14:27