I have connected my rooted Mi3 android phone to Ubuntu 14.0.4 using
jmtpfs. I am using
~/Desktop/phone as my mount point. I am able to browse the Android device using
Now I want to recover the files from my phone because I have done a factory reset. I am using the dd command to make a clone of the storage of the phone. When I try to do this I get the following error:
:~/Desktop$ sudo sh -c "dd if=~/Desktop/phone of=/media/sf_phone_recovery/image" dd: failed to open ‘~/Desktop/phone’: Permission denied
Is it because the phone has root priviliges?
:~/Desktop/phone$ ls -l total 0 drwxr-xr-x 29 root root 0 May 19 4441318 Internal storage
I have also tried Foremost to recover files but it takes forever to run. Have important files on my phone. Help needed asap.
This is the output of
:~$ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 14.2G 0 disk ├─sda1 8:1 0 8.3G 0 part / ├─sda2 8:2 0 1K 0 part └─sda5 8:5 0 5.9G 0 part [SWAP] sr0 11:0 1 1024M 0 rom
I am running Ubuntu using VirtualBox on Mac OSX Yosemite.
EDIT: This question has been answered at the android.stackexchange.com link.
I am marking the answer given by @solsTiCe as the correct answer because it contains important information about MTP protocol and dd command. It also offers an alternative of using the Android terminal to dd the system image on the SD card/ pen drive (connected to your phone via a USB OTG cable). Haven't tried it yet.