How to recover deleted file from mtp device?
I don't know which mtp device you have but I have been able to recover files using photorec (part of the package testdisk) where scapel (outdated) and foremost (also outdated) were not able to. I also recommend setting the mtp device to mass storage so photorec can read it as mentioned here How to mount Smartphone to recover files
Related videos on Youtube
Slim
I'm a passionate fullstack javascript engineer, and I'm always looking for new things to learn.
Updated on September 18, 2022Comments
-
Slim almost 2 years
Acidentally I deleted two directories of images from the internal stockage memory of my Asus zenfone MAX 3 and I don't have an SD card on it. I found foremost is a tool to recover deleted data. But it's not able to give it the
/run/user/1000/gvfs/mtp:host=%5Busb%3A001%2C0
as a partition to scan it. I active theUSB debug
option following these instructions:- Go to Settings -> About Phone/Tablet.
- Go to “Build Number” at the end of the Scroll list.
- Tap on “Build Number” repeatedly 3 times
- Now Developer Option will be included in setting list of yours now. Go to “Develop Options” to check USB debugging > OK. Done.
But in USB configuration I have:
- Load
- MTP(Media Transfer Protocol)
- PTP (Picture Transfer Protocol)
- RNDIS (USB Ethernet)
- Audio Source
- MIDI
I plug the usb cable to the pc and I got this alert message:
Use USB to transfer files
I pressed
OK
. -
Slim almost 6 yearsI tried to use
USB DEBUG
option and then I usedphotorec
but the device is not displayed in the list. -
Slim almost 6 yearsI run
photorec
but I didn't find the device in the list of devices. -
vidarlo almost 6 yearsUSB Debugging on Android is not for giving raw block-level access to the flash of the phone. It's a debugging API.
-
Slim almost 6 yearsSo it's not able to recover data from linux?
-
Luis Alvarado almost 6 yearsFollow the link provided about setting it up as a mass storage. Also mention in your post what storsge device you are using and what you have done so far to configure it.
-
vidarlo almost 6 yearsNot over MTP or USB debugging, no. You have to get a image or raw block-level access. Read and understand the naswer by Oli on that Q&A.
-
Slim almost 6 yearsI have already read it and I followed the first part of the answer and It does not resolve my problem.