yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] phageous:
Awesome post... I followed the steps and was able to dump the data to a raw file. Unfortunately, all the data recovery tools I used were not able to find any picture form my DCIM folder. Most of them found thumbnail pictures from my Picasa web album as well as album covers from Google Music, and a couple of pictures I sent through Gmail, but nothing from my DCIM folder. Also, my Galaxy Nexus phone had about 10GB of MP3s and I would think they can't all be overwritten, but the toolsl couldn't find any mp3 either.

Has anyone managed to recover lost pictures and videos from the DCIM folder for Galaxy Nexus? If so, what tool did you use?

Thanks for your help!

---------- Post added at 06:31 AM ---------- Previous post was at 06:08 AM ----------

To add some context to the problem I am running into: I didn't lose my files by accidentally deleting them or wiping things out during root. When I was using my phone like normal, my Galaxy Nexus suddenly rebooted itself and came up with an Android icon and some mysterious progress bar. I was jogging and didn't know what happened... until 5 minutes later the phone rebooted again, apparently been factory reset!

While I am able to dump the memory successfully following this guide, the tools I tried couldn't recover anything. The files they found, apparently, are files currently present on the phone after the factory reset, pulled down by GMail, Picasa and Google Music. I couldn't find anything that resided on my phone before that reset.

When I browse through the posts in this thread it appears the method worked for most people. I wonder if the main difference is the factory reset actually zero'ed out the internal memory so nothing is recoverable? Sad if that is true, but then I won't be wasting more time on the futile attempt then...:(
[Samsung Galaxy Nexus] mattmartin77:
So this worked great for me. I have a ton of files I can recover in Recuva, but when I select them all and choose a location, it always says "Maximum path length exceeded" and I cant recover the files.. Anyone know what I should do?
[Samsung Galaxy Nexus] anirudhks:
try recovering it to a simple folder structure than a lengthy , like simple c:\recovery the more deeper the length of folders you go its a problem as its limited to 256 charecters.
[Samsung Galaxy Nexus] mattmartin77:
I tried that, the total length was the problem. I had 5 or 6 mp3 files that had a exceedingly long filename that was causing issues. Thanks for the help!
[Samsung Galaxy Nexus] sean.paul:
Why when I enter the command , I am faced with the error ؟؟؟

commond not found

please help me
[Samsung Galaxy Nexus] mattmartin77:
had this problem too. The thing is that adb isnt in the path for the terminal, so you need to make a symlink to it from your /bin folder.

just type in

ln -s "/cygdrive/[your path to adb, mine is /c/android/platform-tools/adb]" /bin/adb

then try again.
[Samsung Galaxy Nexus] mattmartin77:
I have another question now. Now that I got all my data back (and upon inspection, it never actually got deleted, just moved to a folder called 0 for some reason...), how do I unmount or whatever you would call it the drive I created?

Edit: Figured this out anyway. Use the same disk manager to delete the volume.

Replacement Question: When I was going through the recovered data, I found a video from snapchat that I had already viewed, which means that the deleted videos are recoverable. Being the idiot that I am, I deleted it. Is there a way to search for deleted files directly from my phone? Or would I have to go through all of this again just to find a few of these (admittedly awesome ;) ) videos?
[Samsung Galaxy Nexus] Bradley47:
Hi. n00b here.

I accidentally deleted picture files on my Galaxy Nexus JOP40C which I would like to recover. However, until now I never knew anything about bootloaders or root access, so the recommendation by you, efrant, on another thread was to use these instructions to recover everything.

My question is- Assuming I run adb backup, what will happen when I unlock the bootloader (wiping everything) and root the phone (wiping everything) and then restore? Will ALREADY DELETED files appear during the 'restore' with the files that were wiped as a result of unlocking/rooting? Or do you think only current files will save to adb backup for later restoration?

Thanks for the help.
[Samsung Galaxy Nexus] jcarmi04:
Go to my post on page 18, post 176. You won't have to wipe anything, though incur the same writes to your phone when installing Busybox and pushing the root.

Not sure about "adb backup" - either what it is or what will occur.
[Samsung Galaxy Nexus] hololodilolo:
couldn't found raw file

I tried to recover on my nexus 7 16g. I didn't had any problem until step 7. I pulled data partition about 14gb but after finished that I couldn't find the raw file under nexus folder and anywhere inside my computer. I have no idea why. Appreciate for any advice. Thanks :confused:
[Samsung Galaxy Nexus] anirudhks:
Did you check your current working directory as in .. in command window can you do a pwd and see where the file is currently being streamed to ?
[Samsung Galaxy Nexus] hololodilolo:
How can I check? Sorry for that I'm not familiar with cmd. Now I'm doing again and getting 0 B/s at 8.63GiB :confused:

Should I run the process again? Thanks alot !!!
[Samsung Galaxy Nexus] anirudhks:
Before you run the command " nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p12.raw "

type pwd and press enter it will give you the current path . which you are in .. if it says like /home/user , that means thats inside the cygwin folder..

is it constant with 0b/s?
[Samsung Galaxy Nexus] hololodilolo:
0b/s is going constant. so I closed all and run it again now. here is what I got when I type pwd. Thanks!!!
[Samsung Galaxy Nexus] anirudhks:
are you opening a cmd and then going to cygwin ? you will need to open the cygwin.bat in that folder directly than opening a cmd...
[Samsung Galaxy Nexus] hololodilolo:
Sorry for mistake. Now I did again from cygwin.bat and got /home/HoloWalu << my user name. Should I continue the process? Thanks!!!
[Samsung Galaxy Nexus] anirudhks:
yes now after you do a adb shell make sure you type SU and then press enter and then do the nc command
[Samsung Galaxy Nexus] hololodilolo:
Ok. Now the process is going again. So the raw file will appear (under cygwin/nexus folder) only after finished the process or we can see the file during the process. Sorry for noob question. Thanks alot for your help!!!
[Samsung Galaxy Nexus] anirudhks:
you should see the raw file in the nexus folder growing in file size and it also show the speed should not be 0
[Samsung Galaxy Nexus] hololodilolo:
the speed is over 1mb/s but I don't see any raw file under nexus folder :confused:
[Samsung Galaxy Nexus] anirudhks:
check your home folder in the c:\cygwin\home\HoloWalu
[Samsung Galaxy Nexus] hololodilolo:
Ok now I sees the raw file and it shows 0kb. File size is increasing in cygwin terminal and speed is still over 1mb/s. It is normal right? :good:
[Samsung Galaxy Nexus] anirudhks:
yes should be... :)
[Samsung Galaxy Nexus] trout_of_death:
I get to where I am typing the nc command to create the RAW file. as soon as I execute the command the file gets created, 0 or 1kb big and the command stops running. Any tips? Sorry, I am a noob at this and have been trying to figure it out all night on my own... bed time. catch ya in the moning.
[Samsung Galaxy Nexus] anirudhks:
what about the 2nd window do u see anything on the second one where u do PV
[Samsung Galaxy Nexus] trout_of_death:
Yes, it will give me data rate of transfer and stop running immediately. No errors. Just stops running 00:00sec.
[Samsung Galaxy Nexus] haris2030:
thanks
[Samsung Galaxy Nexus] Wartickler:
My thought is that whatever is your particular partition, you have the wrong one.

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] Wartickler:
According to jcarmi04's post 176 there should be a way to unlock without actually having it wipe your device.

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] TechGuyDev:
Thanx

Nice post i will try at my best ... :cowboy:
[Samsung Galaxy Nexus] trout_of_death:
I went through it and checked, its the correct partition... :confused: next thought?
[Samsung Galaxy Nexus] capt.nizam:
Thanks

Thanks a lotttt works flawles on my note 2

For Note 2 User or any other Android used need to recover look at this thread - > http://xdaforums.com/showthread.php?t=2140410
[Samsung Galaxy Nexus] sachin_madan:
Stuck at Step 6

not working for my Galaxy S3,

did everything step by step but stuck at step 6,

nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p15.raw

* *0 B 0:00:00 [ * 0 B/s] [<=>*

as soon as i hit enter, the process is over ....returns nothing, 0KB Raw file.......please help
[Samsung Galaxy Nexus] anirudhks:
After you run a dB shell make sure you run such command . And then the nc command..
[Samsung Galaxy Nexus] trout_of_death:
make sure you run what command after you run a dB shell?
[Samsung Galaxy Nexus] anirudhks:
Sorry you need to run the SU command
[Samsung Galaxy Nexus] sachin_madan:
may please tell in detail about SU command

and at what stage should i run that?????
[Samsung Galaxy Nexus] anirudhks:
First run the adb forward command as step 1 then run adb shell ªâ step 2 on step 3 run su. You will get a pop up on phone as allow root .. click grant and continue with the nc command step
[Samsung Galaxy Nexus] sachin_madan:
I did the same infact, ran the superuser command and granted permission on my S3 and then the NC command,

nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p15.raw

* *0 B 0:00:00 [ * 0 B/s] [<=>*

this is after that only....

Is the memory block same for S3 Jelly bean (4.1.2)??
[Samsung Galaxy Nexus] acruz2446:
i am having trouble on where to put the adb.exe i put it in the orgin path of the c:/cygwin and in the c:adb [path but when i poen the terminal i get the message

bash:adb: command not found, how would i fix this issue?
[Samsung Galaxy Nexus] sachin_madan:
Also, i checked the mmcblk files at dev/block in my S3, there is no block with name of mmcblk0p15......

mmcblk0p12 is there and i tried all the steps with mmcblk0p12.raw, but the same result
[Samsung Galaxy Nexus] sachin_madan:
Hey,

tried adb shell mount and found that mmcblk0p12 is my S3 data partition....

tried a couple of times and BINGO, its finally running........

will try to finish the process now......:)
[Samsung Galaxy Nexus] sachin_madan:
Hi,

Did everything .....got raw file, run recuva but didnt get even a single lost picture.....:confused: it shows the recoverable pictures even older than ithe one i was looking for, not even a single result for those pictures......

any other way guys????
[Samsung Galaxy Nexus] rjkool3:
Stuck trying to transfer

First I must say THANK YOU for this post. Even though I haven't succeeded yet I see others have and it gives me hope. I have nearly everything working but when I type in the NC command to transfer, the time updates but nothing else. I left if for an hour and still nothing. Then just to see what would happen if I hit keys I hit the tab key and it copied the line, then each time I hit enter after hitting the tab key the first time it begins to copy the data... AKA it appears I have to continually hit the enter key for it to copy data. am I missing something? I did a test run on a 60MB block and it took 4.5 minutes. If I'm right that would mean at this speed the 12GB user data partition would take 15 hours? Any help would be much appreciated. The worst part is it isn't my phone its my brother in laws (who doesn't speak English or know much about computers) and I'm leaving to go home in a day and a half so I'm going to start it running but I'm hoping someone can give me a pointer as to why I need to hit enter to copy the file. (oh and I am using the su command and granting access on the phone, without it I didn't seem to get anything to happen)

Thanks,
[Samsung Galaxy Nexus] anirudhks:
Could u give more details about what OS you are using and the hone details ...
[Samsung Galaxy Nexus] rjkool3:
details

Sorry I meant to include that. Laptop is win 7 x64 and phone is galaxy s3 running a rooted version of stock ATT system 4.1.1. Baseband I747UCDKL3.

I'm using stock gs usb cable and I was able to copy the one partition. I used the latest version of cygwin and had to install pv manuallt placing the exe in the folder using another post at sourceforge.net/projects/pvforcygwin/files/pv-1.3.4-1/

. Any other info that would be handy?
[Samsung Galaxy Nexus] anirudhks:
First things first have you logged in as Administrator on the PC ?

Have teh UAC been turned off on the Windows level

The PV and the NC need to be in the bin folder of the cygwin

make sure Antivirus is disabled , most of the times the nc.exe is detected as a virus on the machine ..
[Samsung Galaxy Nexus] rjkool3:
Copying very slow

Yes the PV and NC are in the bin folder, Antivirus is disabled and the windows UAC were disabled and I am logged in as administrator.

Again thanks for the replies.
[Samsung Galaxy Nexus] anirudhks:
ok for the next thing when you run adb shell and then run the SU do you see a pop up asking for root previelegs or screen flashes saying super user granter permission or you dont see anything at all ?

also make sure the path of the ADB is in the environment variables of the OS ..
[Samsung Galaxy Nexus] rjkool3:
going slow

Yes I get the screen granting superuser access. Also the adb platform folder is in the path environment variable.
[Samsung Galaxy Nexus] anirudhks:
ok good so now have you correctly selected the partition which you want to recover , could you post a screnshot of al the disks that were identified in the fdisk command you ran ?
[Samsung Galaxy Nexus] rjkool3:
I was unable to get Fdisk installed or if it is installed i couldn't find it and instead used a program on the phone to find out which partition it was.

This is the data it gave me:

mmcblk0

15028.00MB

mmcblk0boot0

2.00MB

mmcblk0boot1

2.00MB

mmcblkop1

60.00MB

mmcblk0p10

10.00MB

mmcblk0p11

13.62MB

mmcblk0p12

3.00MB

mmcblk0p13

3.00MB

mmcblk0p14

1500.00MB

mmcblk0p15

12532.00MB

mmcblk0p16

8.00MB

mmcblk0p17

840.00MB

...... There were more but they didn't seem important. #15 is the one with the user data that I'm trying to get, and the size matches exactly to what it should be for user data.

This is the command I typed to get the process started just for reference.

Lieu@Lieu-LAPTOP ~

$ adb forward tcp:5555 tcp:5555

Lieu@Lieu-LAPTOP ~

$ adb shell

shell@android:/ $ su

su

root@android:/ # /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p15
[Samsung Galaxy Nexus] anirudhks:
after you do adb shell and su , you can run the fdisk command to find the partition as sometimes the partition may be on a different path than /dev/block/ so the fdisk will actually give you the path as well

so run the command from the cygwin prompt itself after you run su .

" find /dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \; "
[Samsung Galaxy Nexus] rjkool3:
Aha so I was looking at the wrong path. Now to see if it eventually starts transferring.

(i tried hitting tab and/or enter key and it simply ends the command if i hit enter.)

After 3 minutes it still says 0B for the size
[Samsung Galaxy Nexus] anirudhks:
ok that means there is a slight problem in the command , the pic is very small I cant see anythying much can you post individual screens?

---------- Post added at 11:02 AM ---------- Previous post was at 11:01 AM ----------

also file size might be 0 till it completes , but there should be a speed of transfer on the other window which keeps fluctuating.. should not be 0b/s
[Samsung Galaxy Nexus] rjkool3:
Didn't realize it would be so hard to see the picture. The path is actually:

/Dev/block/platform/msm_sdcc.1/mmcblk0p15

The transfer speed still says 0 after 18 or so minutes. Before when I would hold the enter key the transfer rate would increase up to 250... but would stay 0 otherwise.
[Samsung Galaxy Nexus] anirudhks:
This is 100% copy paste problem the command you put in there i am guessing is copy paste from a note pad , dont do that , type manually the whole command and see the magic :)
[Samsung Galaxy Nexus] rjkool3:
What makes you think its a copy and paste? is the formatting in the window not right? I typed it from the posting. I didn't copy and paste it in. I've tried other partitions too and none of them want to transfer correctly for me. I've even tried multiple phones since mine is the same phone and still no go.
[Samsung Galaxy Nexus] anirudhks:
ah thats my bad sorry coz this was the same problem for many where the command was copy pasted and the result ended quickly without any movement further , so was trying to get that out of the picture...

ok reboot your system

make sure no adb.exe is running in task manager connect your phone keep the phone screen unlocked ( better to set the time out option to 10 mins ) and then follow the commands below , one by one typing manually , lemme know how it goes..

adb forward tcp:5555 tcp:5555

adb shell

su

/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/Dev/block/platform/msm_sdcc.1/mmcblk0p15

next new window of cygwin

adb forward tcp:5555 tcp:5555

pwd

( note the directory path it shows , coz the file will be pushed there )

su

nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p15.raw

---------- Post added at 01:58 AM ---------- Previous post was at 01:57 AM ----------

----------

change the bin path some of the phones have xbin and few have just bin so based on the folder name u can modify
[Samsung Galaxy Nexus] rjkool3:
OK did that. Looks like maybe it uncovered a problem. When I typed the SU on the second screen it said root user does not exist? But the phone is rooted and granted permission for super user on the first window.
[Samsung Galaxy Nexus] anirudhks:
ok on the second screen do this..

adb forward tcp:5555 tcp:5555

pwd

( note the directory path it shows , coz the file will be pushed there )

adb shell

su

nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p15.raw

I am now 100% sure it will work
[Samsung Galaxy Nexus] rjkool3:
Sorry looks like there may be another problem. It says it cannot connect to remote host and says read only file system... 2 errors
[Samsung Galaxy Nexus] anirudhks:
this happens if u run su again without running the dd command

so now again run the dd command on the first window and then try on the 2nd window with su should work

---------- Post added at 04:47 AM ---------- Previous post was at 04:46 AM ----------

so run this one again

on first window

/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/Dev/block/platform/msm_sdcc.1/mmcblk0p15

and then the 2nd window command
[Samsung Galaxy Nexus] rjkool3:
Again I have to say Thank you SOO much for the help you've been giving me. Much Appreciated.

I ran it like you said and it solved the connections problem but now its saying it cannot save the file because it is read only.
[Samsung Galaxy Nexus] anirudhks:
can you double check if the nc.exe is in the bin folder of cygwin
[Samsung Galaxy Nexus] rjkool3:
Yep its there
[Samsung Galaxy Nexus] anirudhks:
ok sometimes adb can be a bit naggy can you try again killing the adb.exe from task manager and opening a new cygwin terminal?
[Samsung Galaxy Nexus] rjkool3:
Got the same result as before. I'm packing to go now. if you cannot think of what else it could be I will have to abort. I may be able to do it remotely on their computer after I go home but that becomes harder. Again thank you So much for you help. If you come up with something in the next 18 hours or so I should have an internet connection in the city before my flight.
[Samsung Galaxy Nexus] anirudhks:
after adb shell and su

try a adb remount to mount the filesystem in r/w mode.. and then try
[Samsung Galaxy Nexus] heart_napper:
Please Help (S3 Samsung User)

Man Can u help me on this, i appreciate your efforts you've done a great job here.

every thing went out smoothly except for the mmcblk0p15 file it says that its only 66 KB file and this process is not taking even a second my phone is S3 but i don't know why this is happening i accentedly deleted all my photos and i want them back i haven't used the camera since then just not to over right any data, do u think that my user data files are not in this partition or what ?? please help
[Samsung Galaxy Nexus] ppp65:
Can anyone answer a question re which block I need to be looking at for a Galaxy S2. I've copied off mmcblk10 and mmcblk12 but when I run file recovery on both of these I don't see any files from my camera DCIM folder. The drive sizes look correct. When I use Recuva to query the phone directly it does detect all the photos and videos correctly and it tells me that many of them are in Excellent condition but when you recover them the files are corrupt. Surely this means they are still there somewhere?
[Samsung Galaxy Nexus] heart_napper:
PLZ HELP

Well thanks a lot man this really helped me alot but there is a slight problem some most of photos aren't there, when i use other program like Stellar Pheonix it successively bring all photos but the photos are corrupted ... any suggestions ?? or other partitions are required to search in ??

appreciate your usual help
[Samsung Galaxy Nexus] rjkool3:
This phone just doesn't seem to want me to save the pictures of his trip! I tried the remount and it gave errors. See screen shot.I'm so dumbfounded as to why its not working. I have limited knowledge of linux and unix but this code seems like it should be working.
[Samsung Galaxy Nexus] chobitscxd:
Any chance that I can get my photos back?

I forgot to backup my photos in the internal sd card before I run a factory reset,so they're gone. I did exactly what you say in the instruction, but every time the output of userdata partition is 1.34 GiB when the actual total size is more than 10 GiB, the process seems to abort for some reasons. I run every recovery software I know on the "VHDified" RAW, but nothing is found.

My phone is GT-7100 aka. Galaxy Note 2:crying:
[Samsung Galaxy Nexus] anirudhks:
ok I had a similar situation yest for another fone had same problem as u .... just do all the same thing on window one , before u start make sure no adb is running task manager , also install busybox once again from playstore , and on the second window all you need to do is adb forward command and then nc command directory no need of the adb shell and su there,, this will work as i had same exact problem lsat night

---------- Post added at 12:50 AM ---------- Previous post was at 12:49 AM ----------

\\can yo ugive a screenshot of all the partition using the find command? as in the op
[Samsung Galaxy Nexus] anirudhks:
use recuva , much better than stellar as the format is different or scan technology is diff

---------- Post added at 09:17 AM ---------- Previous post was at 09:16 AM ----------

are you sure the partitions are free as in no data is overwritten as of now . since format ?
[Samsung Galaxy Nexus] uch1da:
root@android:/ # /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p15
555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p15 <
[B]nc: bind: Address already in use[/B]

What can I do to fix "nc: bind: Address already in use"?
[Samsung Galaxy Nexus] anirudhks:
Did you retry the nc command after a failed attempt before ? as in you ran nc and it failed so you re ran the commands before disconnecting and reconnecting the mobile ?

if yes , kill all ADB sessions . kill nc and pv in the task manager and then unplug and replug ur mobile and run through the commands .