How to dump /sdcard/ partition as .img to recover lost precious photos - General Questions and Answers

I have a Moto G falcon and unlocked bootloader. I then installed twrp and then CM 11. I had taken pics of my childs 16th bday on the stock rom and screwed up big time.
I would like to dump the 5.5 gig partition to sd card to try and run recovery software on it to recover photos.
so far I have been given the following advice, I dont know how to implement it however.
If you don't use the phone's internal SD storage - there is still a chance you can recover the photos.
You can dump the /sdcard/ partition as a .img and use data recovery software on it.
I would make a backup of this partition asap, before attempting anything else.
To make this backup you will need a usb OTG cable and some external storage (sdcard or pen.) The .img will be around 5.5GB.
You will need root and the command is: dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/<external_storage>/userdata.img
Do not accidentally dump the .img onto /sdcard/ (internal storage)
After making a backup - you can explore your options.
There are undelete apps for android such as DiskDigger undelete.
Click to expand...
Click to collapse
I have my Moto G connected to PC with otg cable and a 16 gig sd card in PC and usb debugging is on. I am in fastboot
Appreciate your help. thanks

Holysmoke99 said:
I have a Moto G falcon and unlocked bootloader. I then installed twrp and then CM 11. I had taken pics of my childs 16th bday on the stock rom and screwed up big time.
I would like to dump the 5.5 gig partition to sd card to try and run recovery software on it to recover photos.
so far I have been given the following advice, I dont know how to implement it however.
I have my Moto G connected to PC with otg cable and a 16 gig sd card in PC and usb debugging is on. I am in fastboot
Appreciate your help. thanks
Click to expand...
Click to collapse
What does "I don't know how to implement it" mean, exactly?
Do you need help following the quoted instructions?

thenookieforlife3 said:
What does "I don't know how to implement it" mean, exactly?
Do you need help following the quoted instructions?
Click to expand...
Click to collapse
sadly, yes

Holysmoke99 said:
sadly, yes
Click to expand...
Click to collapse
Ah.
I'm busy with school at the moment, but I will give you in-depth instructions in a few hours.
Sound good?

thenookieforlife3 said:
Ah.
I'm busy with school at the moment, but I will give you in-depth instructions in a few hours.
Sound good?
Click to expand...
Click to collapse
absolutely!

Okay, so let's get started!
from previous post said:
If you don't use the phone's internal SD storage - there is still a
chance you can recover the photos.
You can dump the /sdcard/ partition as a .img and use data
recovery software on it.
I would make a backup of this partition asap, before attempting
anything else.
To make this backup you will need a usb OTG cable and some
external storage (sdcard). The .img will be around 5.5GB.
You will need root and the command is:
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of= <external_storage>/userdata.img
(the above is all one line)
Do not accidentally dump the .img onto /sdcard/ (internal storage)
After making a backup - you can explore your options.
Click to expand...
Click to collapse
To follow the above instructions, follow my steps:
1. Root your phone!
2. Download and install the attached terminal app.
3. Plug in your empty sdcard.
4. Open the terminal app and execute the following command:
Code:
su
5. Now, execute the command found in the quote above.
• This should create a file called userdata.img on your sdcard.
6. Eject your sdcard from your phone, plug it into your PC, and extract the userdata.img file with an archive manager (7zip, WinRAR).
7. Retrieve your photos!
Hope this helps!

thanks so much for your reply...
I am using an OTG cord. Do the same instructions apply?

Holysmoke99 said:
thanks so much for your reply...
I am using an OTG cord. Do the same instructions apply?
Click to expand...
Click to collapse
What are you using an OTG cable for?
Why do you need one?

thenookieforlife3 said:
What are you using an OTG cable for?
Why do you need one?
Click to expand...
Click to collapse
my phone doesnt have an sd slot

Holysmoke99 said:
my phone doesnt have an sd slot
Click to expand...
Click to collapse
Okay, and yes, it's the same procedure.

thenookieforlife3 said:
Okay, and yes, it's the same procedure.
Click to expand...
Click to collapse
I will report back tomorrow how this goes. thanks!

thenookieforlife3 said:
Okay, so let's get started!
To follow the above instructions, follow my steps:
1. Root your phone!
2. Download and install the attached terminal app.
3. Plug in your empty sdcard.
4. Open the terminal app and execute the following command:
Code:
su
5. Now, execute the command found in the quote above.
• This should create a file called userdata.img on your sdcard.
6. Eject your sdcard from your phone, plug it into your PC, and extract the userdata.img file with an archive manager (7zip, WinRAR).
7. Retrieve your photos!
Hope this helps!
Click to expand...
Click to collapse
do you know what to put for the red part?
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/<put_correct_location_for_external_storage_here>/userdata.img

Holysmoke99 said:
do you know what to put for the red part?
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/<put_correct_location_for_external_storage_here>/userdata.img
Click to expand...
Click to collapse
300TH POST! :laugh:
Yes, you put the exact directory on the USB stick you've got plugged into your OTG cable where you want to dump the .img.

thenookieforlife3 said:
300TH POST! :laugh:
Yes, you put the exact directory on the USB stick you've got plugged into your OTG cable where you want to dump the .img.
Click to expand...
Click to collapse
thanks, but how do I determine what the directory is named?

Holysmoke99 said:
thanks, but how do I determine what the directory is named?
Click to expand...
Click to collapse
You need to first be sure your USB stick is mounted on your device.
Then, you use a file explorer app to find out where the stick actually is. I don't know for sure, but try looking for a /mnt in the root of your device.
After you find where it's mounted, it's all easy from there. Just go into the stick's filesystem, and create a folder like "images".
Lastly, the directory name you put into the dd command will look something like this:
Code:
/mnt/usb/images
Please note that it may not be exactly like that.

Related

Need help backing up data with ADB on my captivate (broken screen)

[resolved]
I have a broken (completely black) screen on my captivate Im trying to back up all my files from the INTERNAL memory. I can't see the screen so obviously I can't mount the phone to view the files on my PC. I have gotten 'pull /system/ /local/' to work however when I try something like 'pull /data/ /local/' it says "pull: building file list... 0 files pulled. 0 files skipped."
Basically, how do I use ADB to get all of my files to my computer? Help is certainly appreciated. After this I will probably reset the phone and then maybe sell it as is. Not too sure.
Question: Do u happen to have any recent clockwork backup and/or tibu backups on ur phone? If either is present u could directly navigate to those folders (in adb) and pull the files u want.
Alternate option: U cud put in an external sd card, and copy the files from internal sd to external sd if u are not comfortable with the pull commands.
diablo009 said:
Question: Do u happen to have any recent clockwork backup and/or tibu backups on ur phone? If either is present u could directly navigate to those folders (in adb) and pull the files u want.
Alternate option: U cud put in an external sd card, and copy the files from internal sd to external sd if u are not comfortable with the pull commands.
Click to expand...
Click to collapse
I do not have any type of backups apps or anything like that on the phone.
I have an external sd card however Im not sure how thats different than using adb to copy the files from the internal memory to my computer. I am fine with using pull but maybe im using the wrong directory name for my personal files?
Have you tried qtadb or droidexplorer. Would be easier imo.
newter55 said:
Have you tried qtadb or droidexplorer. Would be easier imo.
Click to expand...
Click to collapse
That requires a rooted phone right? My phone is currently not rooted and I don't know if I would want to. How come I cant just use the adb pull command on the folder with my data in it?
edit - i might have found a command that works, i will update when finished.
ok this worked for me: 'adb pull / d:\backup\'
thanks everyone for your help.
Yeah. Assumed you were rooted sorry. Just thought that way you could see everything and point and click.
So I have a similar situation to this only I have a phone that isnt rooted and usb debugging isnt enabled. However I know the phone boots on, and I can also get into recovery mode where I am able to ADB to get a basic shell, and see the device but that is about it. I feel that if I could enable usb debugging thru recovery mode I might be able to mount the /sdcard and then pull files from there. anyone got any ideas if I could get a reboot with usb debugging enabled from recovery or maybe just a command that I could use in shell via recovery?? Please Please lol. I have a strong feeling i might have hit a wall.
http://forum.xda-developers.com/showthread.php?t=1164598

[Q] Copy ROM to USB without OS

Hi I need some help to get my phone working again. This is a bit more difficult because the Nexus S doesn't have a removable SD card slot. The OS on my phone is gone, but I still have clockwork recover working. The problem is that I do not have any zip files on the internal SD card to flash a new ROM. Does anyone know how to get a ROM zip file copied over to the Nexus S for flashing? Phone isn't working now :crying:
Copy full ROM images via fastboot from Android SDK
btaing said:
Hi I need some help to get my phone working again. This is a bit more difficult because the Nexus S doesn't have a removable SD card slot. The OS on my phone is gone, but I still have clockwork recover working. The problem is that I do not have any zip files on the internal SD card to flash a new ROM. Does anyone know how to get a ROM zip file copied over to the Nexus S for flashing? Phone isn't working now :crying:
Click to expand...
Click to collapse
Hi,
I don´t know how you are experienced, bu first read this page below:
http://forum.xda-developers.com/showthread.php?t=1445635
BR
art_k
FIX
btaing said:
Hi I need some help to get my phone working again. This is a bit more difficult because the Nexus S doesn't have a removable SD card slot. The OS on my phone is gone, but I still have clockwork recover working. The problem is that I do not have any zip files on the internal SD card to flash a new ROM. Does anyone know how to get a ROM zip file copied over to the Nexus S for flashing? Phone isn't working now :crying:
Click to expand...
Click to collapse
If you have cwm 5.8.0.2 or 6.0.1 u can go to mount and storage, scroll down and click on mount usb storage. Plug it in to a pc and your sd card will pop up. then drag and drop a rom!
if not just go into fastboot plug it to your pc and flash via fastboot (google it how to do it, bcz i dont, sorry)
hit that thanks button if it helped
Thank you for correction and new information about cwm
Cascabreu said:
If you have cwm 5.8.0.2 or 6.0.1 u can go to mount and storage, scroll down and click on mount usb storage. Plug it in to a pc and your sd card will pop up. then drag and drop a rom!
if not just go into fastboot plug it to your pc and flash via fastboot (google it how to do it, bcz i dont, sorry)
hit that thanks button if it helped
Click to expand...
Click to collapse
It is a new information for me about possibility access USB via cwm.
Thank you Cascabreu
buenas noches
art_k
Cascabreu said:
If you have cwm 5.8.0.2 or 6.0.1 u can go to mount and storage, scroll down and click on mount usb storage. Plug it in to a pc and your sd card will pop up. then drag and drop a rom!
if not just go into fastboot plug it to your pc and flash via fastboot (google it how to do it, bcz i dont, sorry)
hit that thanks button if it helped
Click to expand...
Click to collapse
Worked!!
GREAT
btaing said:
Worked!!
Click to expand...
Click to collapse
im glad that i finally helped someone!

Need Help!! Wiped phone in TWRP, but install zip wasn't on phone! No backups!

Hello everyone! I just downloaded and moved an install zip of a ROM to my sd card using root explorer. Problem is I had wiped everything beforehand in recovery without confirming that the zip was on my sd card! I was sure it was on there as I had done this many times before, but I couldn't find it using TWRP.
How can I fix this? I have an sd reader but it doesn't support sdhc
Try looking in data/media folder. Had that happen to me and that's where it was
Coderedpl said:
Try looking in data/media folder. Had that happen to me and that's where it was
Click to expand...
Click to collapse
I swear I looked everywhere, but I'll double check. Is this an issue with TWRP? I never had a problem like this with CWM.
So how do I boot into recovery with the phone off now?
goodfella44 said:
I swear I looked everywhere, but I'll double check. Is this an issue with TWRP? I never had a problem like this with CWM.
So how do I boot into recovery with the phone off now?
Click to expand...
Click to collapse
With cwm i had no issue like this. With TWRP i did.
Press and hold volume up +home + power
Thanks! Wish me luck
So frustrating! I know that the damn zip is on there somewhere, but I can't see it! I checked data/media and found TWRP, but no zip. You found the zip on the external card in data/media and not the internal storage correct? Any other suggestions that I can try other than getting a compatible sd card reader/adapter?
goodfella44 said:
So frustrating! I know that the damn zip is on there somewhere, but I can't see it! I checked data/media and found TWRP, but no zip. You found the zip on the external card in data/media and not the internal storage correct? Any other suggestions that I can try other than getting a compatible sd card reader/adapter?
Click to expand...
Click to collapse
Where did you put the file?
I found it on the internal storage as thats where I had my file.
did you use the file manager function in advanced to look for it?
and in the future make a folder called 3 and put all flash-able zips in it
i use the 3 becuz recovery has numbers at the top of the list
I always download and move the zip to the root of my sd with root explorer before I flash. Never had any problems until using TWRP. Not saying it's not my fault for not making a backup first, but something screwy is going on with it. I'll be going back to CWM.
If you can't find it... Download the file on your computer... Connect to your phone computer as disk drive... Transfer the file into a recognized folder and then flash it...
Geaux Tigers
Karl said:
did you use the file manager function in advanced to look for it?
and in the future make a folder called 3 and put all flash-able zips in it
i use the 3 becuz recovery has numbers at the top of the list
Click to expand...
Click to collapse
yes I used the file manager, but didn't find anything. I think what happened was that the zip was on internal storage and was erased when I wiped. Not sure how it was in internal storage because I'm almost positive I moved it to the root of sd before booting into recovery. I could be wrong though.
Menardo said:
If you can't find it... Download the file on your computer... Connect to your phone computer as disk drive... Transfer the file into a recognized folder and then flash it...
Geaux Tigers
Click to expand...
Click to collapse
how can I do that with no OS installed?
you can use the rooted img file and use odin so you can at least boot up
Karl said:
you can use the rooted img file and use odin so you can at least boot up
Click to expand...
Click to collapse
That's what I'm talking about! Kind sir, would you please explain in more detail on how to accomplish this?
what do you know?
do you know how to use odin?
goodfella44 said:
how can I do that with no OS installed?
Click to expand...
Click to collapse
I've never used TWRP but from the recovery you should be able to mount your phone/ sd card to your computer and transfer files... might be called mount and storage or something close to that...
I know enough to get me into his predicament!
I used this to root (don't think I used Odin with that), but I do remember messing with it for something else as I do have it installed. So I'm no expert as you can tell!
http://forum.xda-developers.com/showthread.php?t=1840030
ok go to the link above download Odin (extract to the folder) and the root66 tar
put them in a folder on your desktop
put your phone in download mode and plug in cable
(Turn off Phone
Hold down Volume Down + Power + Home Button
Press Volume Up when Prompted after the security warning)
Open up ODIN
Put the stock.vzw_root66.tar in the PDA section
Select box: Auto Reboot
it will take awhile "do not unplug" wait for it to say pass it will reboot on its own
Menardo said:
I've never used TWRP but from the recovery you should be able to mount your phone/ sd card to your computer and transfer files... might be called mount and storage or something close to that...
Click to expand...
Click to collapse
I tried that and TWRP says unable to open ums lunfile , /sys/devices/platf
Karl said:
http://forum.xda-developers.com/showthread.php?t=1840030
ok go to the link above download Odin (extract to the folder) and the root66 tar
put them in a folder on your desktop
put your phone in download mode and plug in cable
(Turn off Phone
Hold down Volume Down + Power + Home Button
Press Volume Up when Prompted after the security warning)
Open up ODIN
Put the stock.vzw_root66.tar in the PDA section
Select box: Auto Reboot
it will take awhile "do not unplug" wait for it to say pass it will reboot on its own
Click to expand...
Click to collapse
how do I do that?
goodfella44 said:
I tried that and TWRP says unable to open ums lunfile , /sys/devices/platf
how do I do that?
Click to expand...
Click to collapse
which part?

[Q] can you recover photos and vids after conducting a format on you asus tf700t?

I want to find an way on how to turn my asus tf700t into a storage mass usb so that i can run a recovery data software on my laptop and hope to recover photos and videos that i accidentally lost after I did a factory reset and wiped all my info!!!
Can you guys let me know if there is another way?
If your device is rooted and you have a microSD or SD card that is at least as big as the device's internal storage, you can make a full image of the data partition and try running your data recovery software on that image. The partition to copy is /dev/block/mmcblk0p8.
I do have root access and the sd card to conduct such procedure! now I need to figure out how to get to that particular file partition and copy it into my sd card.
/dev/block/mmcblk0p8.
manga\\//Colombia said:
I do have root access and the sd card to conduct such procedure! now I need to figure out how to get to that particular file partition and copy it into my sd card.
/dev/block/mmcblk0p8.
Click to expand...
Click to collapse
Run this in adb shell:
Code:
su (if you are not already root)
dd if=/dev/block/mmcblk0p8 of=/Removable/MicroSD/data.ext4 bs=32k
For the full size SD card in the dock, adjust the output path appropriately. It will take a while, as it needs to copy almost 32 or 64 GB.
If the image is only 4 GB, that's because of a limitation in your dd commmand and you need to find a version with large file support. Of course you should not install any apps as this reduces your chance for data recovery.
Thank you for your time.! I will let you know what happens. if it works, it can help those who are in the same shoes. as of today, I havent really found an answer. Although I am not an expert on using adb shell. I see I need the SDK android install in my laptop to run a cmd and then the adb shell.
once I run the code you mentioned above. how do i manage to copy/ mirror that file into my sd card? any codes I need to know? sorry
_that said:
Run this in adb shell:
Code:
su (if you are not already root)
dd if=/dev/block/mmcblk0p8 of=/Removable/MicroSD/data.ext4 bs=32k
For the full size SD card in the dock, adjust the output path appropriately. It will take a while, as it needs to copy almost 32 or 64 GB.
If the image is only 4 GB, that's because of a limitation in your dd commmand and you need to find a version with large file support. Of course you should not install any apps as this reduces your chance for data recovery.
Click to expand...
Click to collapse
manga\\//Colombia said:
once I run the code you mentioned above. how do i manage to copy/ mirror that file into my sd card? any codes I need to know? sorry
Click to expand...
Click to collapse
The "dd" command with the given parameters copies an image of your /data partition into a file on the sd card.
help
View attachment 2478723
I am kind of lost--figuring out how to do that! sorry
I have connected my asus tablet to my laptop. I ran cmd and input the data! nothing happens..
manga\\//Colombia said:
View attachment 2478723
I am kind of lost--figuring out how to do that! sorry
I have connected my asus tablet to my laptop. I ran cmd and input the data! nothing happens..
Click to expand...
Click to collapse
Your screenshot does not show what you typed. When you run "adb shell", you should get a prompt from your TF700 where you can run the su and dd commands (type Ctrl+D or "exit" and Enter to exit).
manga\\//Colombia said:
View attachment 2478723
I am kind of lost--figuring out how to do that! sorry
I have connected my asus tablet to my laptop. I ran cmd and input the data! nothing happens..
Click to expand...
Click to collapse
You may want to check out this guide on adb and adb shell:
http://forum.xda-developers.com/showthread.php?t=2141817
_that said:
Your screenshot does not show what you typed. When you run "adb shell", you should get a prompt from your TF700 where you can run the su and dd commands (type Ctrl+D or "exit" and Enter to exit).
Click to expand...
Click to collapse
I followed the instructions..bernblb provided below... here it is a picture of what i got.
Am I supposed to run this adb shell command with a terminal emulator...install one and run the code?
manga\\//Colombia said:
I followed the instructions..bernblb provided below... here it is a picture of what i got.
Am I supposed to run this adb shell command with a terminal emulator...install one and run the code?
Click to expand...
Click to collapse
That does not look as if you have root on your tablet. Here's what it looks like when I start an adb shell on mine:
Code:
C:\android-sdk\sdk\platform-tools>adb devices
List of devices attached
C9OKAS062039 device
C:\android-sdk\sdk\platform-tools>adb shell
[email protected]:/ #
Here is where you would run the dd command.
What do you get if you type:
adb shell - then hit <enter>
su <enter>
manga\\//Colombia said:
I followed the instructions..bernblb provided below... here it is a picture of what i got.
Click to expand...
Click to collapse
You forgot to run "su" before "dd".
I do have root access!!! check out my picture....
berndblb said:
That does not look as if you have root on your tablet. Here's what it looks like when I start an adb shell on mine:
Code:
C:\android-sdk\sdk\platform-tools>adb devices
List of devices attached
C9OKAS062039 device
C:\android-sdk\sdk\platform-tools>adb shell
[email protected]:/ #
Here is where you would run the dd command.
What do you get if you type:
adb shell - then hit <enter>
su <enter>
Click to expand...
Click to collapse
okay.. after i typed su i got [email protected]:/ #... then i copy paste then dd command and i got this!!! i have a 32 gb micro sd card inserted in the asus tablet keyboard dock...
manga\\//Colombia said:
okay.. after i typed su i got [email protected]:/ #... then i copy paste then dd command and i got this!!! i have a 32 gb micro sd card inserted in the asus tablet keyboard dock...
Click to expand...
Click to collapse
It's hard to help you if you don't read carefully what I wrote:
_that said:
For the full size SD card in the dock, adjust the output path appropriately.
Click to expand...
Click to collapse
I assume you have the microSD card in a microSD to SD adapter, so you have to treat it as a full size SD card - change MicroSD to SD in the dd command line.
_that said:
Run this in adb shell:
Code:
su (if you are not already root)
dd if=/dev/block/mmcblk0p8 of=/Removable/MicroSD/data.ext4 bs=32k
For the full size SD card in the dock, adjust the output path appropriately. It will take a while, as it needs to copy almost 32 or 64 GB.
If the image is only 4 GB, that's because of a limitation in your dd commmand and you need to find a version with large file support. Of course you should not install any apps as this reduces your chance for data recovery.
Click to expand...
Click to collapse
Hello _That
I did run the command with the proper SD path! but I got 4 gb image!!
in your response--regarding to find a version with a large file support? you mean maybe a 64 gb sd card?
I am gonna try to see if I can run a data recovery on that SD card and see what I can recover from there!! what data recovery for ext4 files software do you recommend??
manga\\//Colombia said:
I did run the command with the proper SD path! but I got 4 gb image!!
in your response--regarding to find a version with a large file support? you mean maybe a 64 gb sd card?
Click to expand...
Click to collapse
No - as I wrote this is a limitation of the dd implementation. I think Busybox comes with a better dd, but you'd need to push it via adb to a temporary filesystem to avoid overwriting anything in /data. Try playing with the truncated image you have now - if you can recover any files from it, it's worth trying to make a complete image.
manga\\//Colombia said:
I am gonna try to see if I can run a data recovery on that SD card and see what I can recover from there!! what data recovery for ext4 files software do you recommend??
Click to expand...
Click to collapse
I have no experience with any data recovery tools. Try googling "recover formatted ext4" or so. Note that the software must be able to work with an image file, not only a raw partition.
Free and open source recovery software that I can recomend. http://www.cgsecurity.org/
after running a recovery data soft on that external sd card where i copy the image of that 4 gb (partition) i wasnt able to recover the data i was looking for!!!! any ideas how to do step by step pushing that partition to a temp file system via adb
manga\\//Colombia said:
after running a recovery data soft on that external sd card where i copy the image of that 4 gb (partition) i wasnt able to recover the data i was looking for!!!!
Click to expand...
Click to collapse
You have to run the recovery software on the image file, not on the card. If you can recover *any* files from the image, it makes sense to try the next steps with a complete image.

Lost images due to changing the name of its parent folder!

I just lost 220 photos because I needed to change their containing folders name from "Camera" to "Photography", after doing this I opened the folder and the folder was empty! I tried renaming it back to Camera but my photos were still gone! And my SD card went from having 7GBs used to 5GBs used! Is there any way for me to recovery my photos?
If you don't use the phone's internal SD storage - there is still a chance you can recover the photos.
You can dump the /sdcard/ partition as a .img and use Windows data recovery software on it.
I would make a backup of this partition asap, before attempting anything else.
To make this backup you will need a usb OTG cable and some external storage (sdcard or pen.) The .img will be around 5.5GB.
You will need root and the command is: dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=//userdata.img
Do not accidentally dump the .img onto /sdcard/ (internal storage)
After making a backup - you can explore your options.
There are undelete apps for android such as DiskDigger undelete.
There is also undeleter on xda:
http://forum.xda-developers.com/showthread.php?p=54848945​
lost101 said:
If you don't use the phone's internal SD storage - there is still a chance you can recover the photos.
You can dump the /sdcard/ partition as a .img and use Windows data recovery software on it.
I would make a backup of this partition asap, before attempting anything else.
To make this backup you will need a usb OTG cable and some external storage (sdcard or pen.) The .img will be around 5.5GB.
You will need root and the command is: dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=//userdata.img
Do not accidentally dump the .img onto /sdcard/ (internal storage)
After making a backup - you can explore your options.
There are undelete apps for android such as DiskDigger undelete.
There is also undeleter on xda:
http://forum.xda-developers.com/showthread.php?p=54848945​
Click to expand...
Click to collapse
Can you tell me in detail how to dump the image? Or can you give me a link to a tutorial?
What model is your phone? Is your Bootloader unlocked?
lost101 said:
What model is your phone? Is your Bootloader unlocked?
Click to expand...
Click to collapse
Motorola Moto G first gen XT1032 rooted, bootloader unlocked with TWRP custom recovery. I have Cyanogenmod 13 unoffical running android 6. My laptop does not have any drivers so if that is a requirement please tell me so I can install.
Download: Moto G USB Drivers (WinXP/7/8/10 32Bit-64Bit)
Download: ADB and Fastboot files
Test adb by enabling Settings > Developer options > USB debugging: (option may be named differently in CM13)
adb devices​
lost101 said:
Download: Moto G USB Drivers (WinXP/7/8/10 32Bit-64Bit)
Download: ADB and Fastboot files
Test adb by enabling Settings > Developer options > USB debugging: (option may be named differently in CM13)
adb devices​
Click to expand...
Click to collapse
Ok, done. Now what?
lost101 said:
Download: Moto G USB Drivers (WinXP/7/8/10 32Bit-64Bit)
Download: ADB and Fastboot files
Test adb by enabling Settings > Developer options > USB debugging: (option may be named differently in CM13)
adb devices​
Click to expand...
Click to collapse
Ok scratch that, I just plugged in my phone into my laptop and went into the Camera folder and all my photos are there but they are all 0 bytes! Is there another way to recover them?
It's best to backup the entire internal storage before trying anything. Also limit use of phone / apps on phone. Do not install or update anything.
If you don't already own one, buy a USB OTG cable - example.
ADB commands on PC:
adb shell
su
<grant root permission request on phone>
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/storage/usbdisk/userdata.img​
Note: The dd command above will dump the .img to external usb pen / card. You can then use PC data recovery software on the .img file.
EDIT: http://www.nburles.co.uk/android/recovering-data-from-an-android-device-using-dd - This page details how to dump directly to PC if you have busybox installed on your phone.
lost101 said:
It's best to backup the entire internal storage before trying anything. Also limit use of phone / apps on phone. Do not install or update anything.
If you don't already own one, buy a USB OTG cable - example.
ADB commands on PC:
adb shell
su
<grant root permission request on phone>
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/storage/usbdisk/userdata.img​
Note: The dd command above will dump the .img to external usb pen / card. You can then use PC data recovery software on the .img file.
EDIT: http://www.nburles.co.uk/android/recovering-data-from-an-android-device-using-dd - This page details how to dump directly to PC if you have busybox installed on your phone.
Click to expand...
Click to collapse
ok thanks!

Categories

Resources