yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Limetteneis:
Hi,

bad news....I sent my GNEX to a professional data recovery company and they analyzed it. Even for them It was impossible to restore anything! :(

After reading about some guys wihtin this thread that managed a restore of their data I am not sure what is the cause for my restoration to fail....

The company stated that the complete folder structure was destroyed and partly overwritten by the factory reset. Furthermore there are some erroneous/damaged sectors....

OMG...can't wait to tell it to my wife... :crying:
[Samsung Galaxy Nexus] Nonobstant:
In my case, I did a wipe data-factory and i just lost everything. This tutorial is good but didn't allow me to recover my photos and videos.

The command "adb start-server" must be entered between step 4 and 5. Everything is in that video (based on the 1st post of this topic) :

type "How to recover deleted Pictures and files off your INTERNAL memory on Samsung Galaxy S3 Part 1" in youtube

Follow it step by step and it will probably works.

[MENTION=4283339]3alaawi[/MENTION] : don't use cygwin64, it doesn't work for me on my windows 7 64B. I used Cygwin32 and it worked (but don't forget to add pv and util-linux during the Cygwin installation). Everything is in the video tutorial on youtube.

Last thing (i think it may help) : open all windows (DOS command prompt and Cygwin) as administrator. Maybe it's useless but I also checked "Execute the program as administrator" on pv.exe and nc.exe (in file properties > compatibility).
[Samsung Galaxy Nexus] Knight77:
Ah someone suggested me the adb start-server, but indeed is not my problem...I input the adb commands in cygwin but nothing happens...so evenutally I will check step later. If I can reach it...

Note: I tried adb start-server in dos window and it works. I also tried this before cwing but nothing changed.
[Samsung Galaxy Nexus] Knight77:
No help here ? :(
[Samsung Galaxy Nexus] floepie:
Well, I'm at wit's end here. Whichever data block I attempt to dump to the PC, I wind up with a 0 byte file RAW file in the "nexus" directory. ADB has been granted su rights, and no errors are present in the console. Any thoughts for a Nexus 4? Thanks.
[Samsung Galaxy Nexus] bkong:
Almost worked

Well I followed everything right, used to the video tutorials which were really helpful. The thing is recuva recovered the same files as the app diskdigger did. All the pictures were either album art or cached images from apps like youtube, facebook, reddit, and vine. I was trying to recover my deleted DCIM folder, and I made sure I did not take any pictures after deleting them so they wouldn't be overwritten. Seems like the all the cached images and video stills just overwrote it anyway :(.
[Samsung Galaxy Nexus] floepie:
Finally able to generate the RAW file. Turns out that the 32 bit version is working. With the 64 bit version, pv was not available from the repos, so I ended up downloading it and sticking it into the bin folder. Perhaps there were missing dependencies. But, with the 32 bit version, pv was available from the repos during setup, but the cygwin install took a VERY long time with all the default packages. Hope that helps someone.
[Samsung Galaxy Nexus] bigdadd3:
I did everything as mentioned in the op. When I'm trying to mount the .raw I'm getting this error:

"A virtual disk support provider for the specified file was not found"

I looked at this http://support.microsoft.com/kb/2013544

and then tried the following but it didn't work

To work around these problems, follow these steps:

1) Start Registry Editor.

2) Visit the following registry key: “HKLM\SYSTEM\CurrentControlSet\Services\FsDepends”

3) Under the “FsDepends” key, change REG_DWORD value “Start” from “3” to “0”

4) Restart the computer

Someone give me suggestions please
[Samsung Galaxy Nexus] bigdadd3:
I got it to work. I just renamed my .raw file to .vhd and then was about to mount it. Recovering through Recuva as I type this. For anyone else having this issue, I hope this works for you as well.
[Samsung Galaxy Nexus] fastludeh22:
Ok first off to the original creators of these guides, THANK YOU. Its great to see there is still worthwhile contributions here. To all the people helping each other out, thank you as well as I have gathered what I needed from those posts and have it pulling my .raw file as I type.

Ok so ya, wish I would have seen the 64 bit version does not work, spent 15 strait hrs trying to get it to work to give up and have the 32 bit version running in 15 min via op's instructions, lol.

Now maybe I can help out. Knight77 are you fimilar with miniADB? If you or anyone else is not, basically its a full running adb server that doesn't require it to be installed. You unzip it all to a folder, click on the runme.bat and it opens a cmd window with adb ready to run. I have been lazy since I found this and is all I use for adb now. Here's where it should help you, and hopefully others. In fact I find it so easy maybe the op would consider adding it the instructions. Once you have those files in a folder, copy all the files from there except the runme.bat to the bin folder of cygwin. Atthis point adb should run from anywhere in cygwin. Worked great for me, let me know if it helps you.
[Samsung Galaxy Nexus] Knight77:
Thanks for the reply! I will try it and let you know. Let's hope...
[Samsung Galaxy Nexus] Dexters labmate:
When I create the .RAW file in the "cygwin/nexus" folder it shows up as 0 bites and the VHDtool will not convert it. I have tried it with numerous blocks to no avail.

Samsung Galaxy S Aviator
[Samsung Galaxy Nexus] STM2121:
Does anyone know if there is any remote access service that will do this for the galaxy s3? Thanks
[Samsung Galaxy Nexus] no.one.writeme:
Hi there Wartickler,

The size of dump of the cache partition was 432MB.

In recuva I selected all files. With photorec I recovered 10 text files, mainly TWRP log files.

Best regards,

Luis
[Samsung Galaxy Nexus] no.one.writeme:
Update

Hi there again,

Instead of making a dump of a specific partition I make a dump of the whole mmcblk. I took an hour and five minutes and generated an image file of 14.7GB.

Now, with both testdisk and photorec I can see all of the partitions, and I am able to choose which partition I want do undelete files or search for erased files.

Thank you once again for the original idea.

Best regards,

Luis.
[Samsung Galaxy Nexus] scandiun:
Each partition has its own filesystem so specific tools should be used for that filesystem. Recuva is only for vfat / ntfs which in some cases may be useful fot the sdcard partition, even considering that in most modern devices the sdcard is just a subfolder or a data partition which is really in ext4 filesystem or so but the subfolder is mounted as fat.
[Samsung Galaxy Nexus] no.one.writeme:
Yes, I know, but I used recuva following the tutorial described on the OP so that I could compare with the method of using photorec on the raw partition.
[Samsung Galaxy Nexus] scandiun:
There are special forensics linux distributions, but I warn you, that's not for beginners. Take a look at Distrowatch.
[Samsung Galaxy Nexus] no.one.writeme:
Thanks for the tip, but I am ware of that, that's why I thought of testdisk and photorec. Also, they are available for Dos, Windows, Linux and MacOS which broadens the scope of this fine guide.

Btw, congratulations also are in order regarding your own guide.

Thank you so much.

Best regards,

Luis.
[Samsung Galaxy Nexus] katetem:
tag,try it when I'm home

From my Galaxy Nexus,new purchase
[Samsung Galaxy Nexus] Wartickler:
Excellent! Another (mostly) satisfied customer :)
[Samsung Galaxy Nexus] no.one.writeme:
Hi there Warticler,

I am not "(mostly) satisfied"! I am greatly satisfied!

I cannot thank, both you and scandiun, enough for your great guides!

Best regards,

Luis.
[Samsung Galaxy Nexus] Wartickler:
hehe...

Oh good!! :) :) :)
[Samsung Galaxy Nexus] Wartickler:
Any luck??

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] no.one.writeme:
Hi there Wartickler,

If your question is intended to me, as I said previously I was testing the procedure described in your guide, using photorec and testdisk as a proof of concept.

The practical result is, as seen in the attach images, amazing.

Dumping the whole mmcblk0 and using testdisk afterwards you can browse the whole disk partitions and can selectively undelete folders or files.

If the goal is to recover all the files in the free space or whole partition, in case of a sdcard format or corruption, using photorec is recommended.

Best regards,

Luis
[Samsung Galaxy Nexus] Wartickler:
Whoops! Sorry Luis and thank you for the extra information. It is most certainly helpful. I was asking Kate if they had had any luck. I edited my post :p

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Med1a:
Thank you for your super benefits information .. it's really helpful! :good:
[Samsung Galaxy Nexus] scandiun:
The steps are exactly the same that doing it via wifi, except that is faster. The USB tethering is the fastest of them. Just disconnect your computer from all networks, connect the phone to the computer via USB, the phone can be connected to the network via wifi or 3g, go to the phone under Settings -> USB modem -> Click usb modem.

Then in the computer's connection properties you can see the two IPs:

IP -> computer's ip

Gateway -> phone's ip

Usually the computer will have 192.168.42.194 and the phone 192.168.42.129

Note that you can use adb with tethering but using the ftp method is much faster (8 MBps in my case)

Take a look at the updated guide: http://xdaforums.com/showthread.php?p=29862574
[Samsung Galaxy Nexus] Febby:
Thank you! I deleted the 0 folder by mistake when I flashed a 4.2 ROM and my files had moved there lol... Going to use this to restore my data hopefully! So far the setup went great, it is now pulling mmcblk0p12 block at 3.5mbs. totally worth it if it will fix it. :)

edit: after two hours, it finished the 28gb raw file, followed instructions and am now recovering the files, not with their original names more like 100091 (extension here) names haha.. but I'll look through for the important zips and pictures I need, least they all seem to be in a healthy status and viewable as before. Thanks OP!
[Samsung Galaxy Nexus] Wartickler:
We have high hopes!

So far we've had great success from almost everyone. Here's hoping that you haven't overwritten anything :fingers-crossed:

I do wonder though... did you intend to capture the /data block which isn't p12...?
[Samsung Galaxy Nexus] Febby:
hmmm I just wanted to restore the files the were orinally in my SDcard section to be honest lol... So far I've found the pictures. =) Why? was there an easier way to just grab the sdcard section? i hope not haha.. All worked great though it seems. There is a huge file as 8,065,680KB though... hmmm wonder what is that lol
[Samsung Galaxy Nexus] Wartickler:
No it sounds like you got what you wanted !

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] :
Thanks - sounds awesome

Haven't tried yet
[Samsung Galaxy Nexus] Toasted Meat:
0B/s Transfer Issue

I'm having the 0B/s transfer issue. Nothing is being written to the .raw file and I did gain root access after using adb shell.

Phone is Nexus 4.

I'm 100% sure BusyBox is installed in /system/bin/busybox.

EDIT: NVM, I somehow got it to transfer
[Samsung Galaxy Nexus] halukozen:
Thanks to anybody who is involved on this.:good:

Secondly i would definitely recommend going on ftp method via usb tethering :good:
[Samsung Galaxy Nexus] greengoldmello:
I let it sit overnight and got a 30gb raw file...but when its converted with VHD.exe it wont mount in system tools nor diskpart..something about the directories not being refreshed. Super frusterated...
[Samsung Galaxy Nexus] berturion:
Thank you !!!

Awsome :laugh:, that worked perfectly for my Nexus 4, the userdata partition for my phone is mmcblk0p23, I found this thanks to the external link you provided. It took 1h20m to copy 13,1GB of the partition (my Nexus 4 is a 16GB verion) on my computer.

Though, I would modify your post adding the following things :

-> Install Cygwin 32bit even if you are on Windows 64bit because a needed package at the installation only exists on 32bit version ("pv" command)

-> During Cygwin install, type "pv" in the search field to install this command

:good:
[Samsung Galaxy Nexus] STARG4TE:
Same 0 KB issue on XOOM

I am having a similar problem to many, and I have not been able to fix it. I deleted my DCIM folder accidentally (sob story about losing pictures), so I rooted my XOOM using these instructions (REMOVED FOR POST/motorola-xoom-development/15179-how-rookie-rooting-flashing-unrooting-under-one-roof.html) which seemed to go pretty easily. I've installed cygwin, adb, added adb to the PATH, etc.

I am still getting 0KB .raw files, following the directions, even adding the "su" between the adb shell command and the output one. A couple things I have noticed: following adb shell, I start as "root@andriod", putting "su" brings back the same cmd prompt, with no "allow su" option popping up on the tablet. Additionally, I did use the "find /dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \;" command, and found my partitions "/dev/block/platform/sdhci-tegra.3/mmcblk0pX" (I get p1-p10 as well as plain mmcblk0), however after each one I also get a line saying "Disk XXXXX doesn't contain a valid partition table". Could either of these be giving me the 0 KB files?

I've tried using the whole mmcblk0, as well as the mmcblk0p10 partition (reads 31.3 GB, and seems to be the main one), all options return 0 KB. Any suggestions on what I am doing wrong would be helpful.
[Samsung Galaxy Nexus] floepie:
Are you using the 32 bit version? Did you grab both commands from the repos as instructed with all their dependencies? Is there a record in the log of your phone's super user app which shows that adb has root access?
[Samsung Galaxy Nexus] HarVester23:
Strange is, that after all of this i found some pictures, but not that which I was looking for. im shure, that after factory reset i coudnt "get" them on that space again, but recuva and some other soft found them. Those in the Camera folder aren not foundable, but some of "cache" images are.
[Samsung Galaxy Nexus] Agelos_21:
Hi and thanks for this wonderful thread.

It really breaks the impossible for many.

I have a question too.

I managed to extract the data folder of a Galaxy S3 mini (i8190) however the personal files are in another block. I checked with partition table the partitions of the phone and i found that the /storage/sdcard0 is in the partition /dev/fuse

When i make dd for this partion it comes with a result of 63bytes which is impossible since i checked partion tables and it is saying that is 4663.9Mbytes.

Any help to extract this particular patition?

Thanks in advance
[Samsung Galaxy Nexus] MaGaRCaN:
Where can I download netcat?

EDIT: this is the new link http://www.daemon.de/Netcat
[Samsung Galaxy Nexus] worf_1977:
On cygwin repositories
[Samsung Galaxy Nexus] aitormb:
Hi, first of all thank you for such a helpful guide. I already got my mmcblk0p12.raw file in my computer. Right now, I have it in my XP computer, and when i go to Select Storage-->Disk Management. , and i try to check for the attach vhd option, theere is no such option in the action menu. How i do it then in windows xp?

Is there anything else i need to install in my computer? thanks in advance for your reply :)
[Samsung Galaxy Nexus] STARG4TE:
Re

I am using the 64 bit version (running Windows 7 64 bit). I grabbed util-linux from the repo, i couldn't find pv in the cygwin repository, so I found it at sourceforge and followed the directions to add it. I downloaded 2 root checkers, both check good, and I downloaded a superuser app, told it to give apps and adb access, and one event popped up, but did not say much beyond that there was a request for it by the super user app (time stamp lined up with telling it to allow apps and adb access).

I am still getting 0 KB versions, did I install pv wrong, or do something else wrong?
[Samsung Galaxy Nexus] Agelos_21:
Any help for this???
[Samsung Galaxy Nexus] Jeff998:
I got better result with this :

Console 1 :

D:\Android\Sdk\platform-tools>adb forward tcp:5555 tcp:5555

D:\Android\Sdk\platform-tools>adb shell

shell@mako:/ $ busybox nc -l -p 5555 -e busybox dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata

Console 2 :

C:\cygwin\bin>nc 127.0.0.1 5555 | pv -i 0.5 > test.raw
[Samsung Galaxy Nexus] trainman261:
First off - I'm sorry for not reading the entire thread, I already spent huge loads of time trying to get this stuff recovered (I read until page 14). First off, this is the information on (what I am pretty sure is) the partition I want to recover:

c Win95 FAT32 (LBA)

Disk /dev/block/platform/s3c-sdhci.0/mmcblk0p2: 2013 MB, 2013265920 bytes
4 heads, 16 sectors/track, 61440 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Am I right when I assume that instead of

(...) dd if=/dev/block/xxx

I have to use

(...) dd if=/dev/block/platform/s3c-sdhci.0/mmcblk0p2

?

And, what is the "127.0.0.1" IP address? Would I possibly have to change it?
[Samsung Galaxy Nexus] cumeeting:
root

root is necessary
[Samsung Galaxy Nexus] trainman261:
All figured out - thanks a lot

OK, I got everything figured out. I had the 64-bit version of cygwin instead of the 32-bit version (might be something to mention in the guide, because I assumed that if my system was 64-bit, 64bit cygwin would be better for me). I got the RAW file, and backed it up to two different locations, and possibly more later, so that I don't lose it (yes, I get obsessive sometimes :D ). When I have more time - I already spent about 24h+ on this - I will see what files I can pull out of it. Preliminarily it looks like at least some stuff is recoverable - although EaseUS found 25GB worth of stuff on that 2GB partition, so some more exact studying of what's there will need to be done. If anyone is interested, I can report back on how it went. But, most importantly, I'd like to say a BIG, BIG THANK YOU to the OP and everyone else who contributed, and when I get around to it, a link to this thread will be in my signature.
[Samsung Galaxy Nexus] spakimo:
Desperate lost 500 photo of my children after UNLOCK WIPE

Hi All, I'm desperate!!! I have lost 500 photos of my children after UNLOCK WIPE for ROOT my Galaxy Nexus with Nexus Root Toolkit!

I try the guide of first post and also the way with adb wifi connection. What I try to backup is the entire memory block mmcblk0. The command that I use are:

First console Cygwin:

adb connect 192.168.42.1:5555

adb shell

su

ftpput -v -u simo -p simo -P 21 192.168.43.85 mmcblk0.raw /cache/myfifo

Second console Cygwin:

adb shell

su

dd if=/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata of=/cache/myfifo

This night what I can see is that I receive a file of more than 32 GB and this is the first thing that I understand, the memory is of 32GB!!?!? I have interrupted the copy first of the entire receive because apparently did not seem to stop the receiving of data... After I have attached the RAW file and search the lost photos... I can find only some photo but seem that I have not backup the userdata...

Could help me to understand what is wrong in my procedure....

Thanks a lot!
[Samsung Galaxy Nexus] spakimo:
An update I have re-backup with this command:

dd if=/dev/block/mmcblk0 of=/cache/myfifo

and after 2 hours the created file is about of 20 GB I try to search with Recuva and EaseUS the photo but only some photo are founded... now I'm trying to backup the mmcblk0p12... with this command:

dd if=/dev/block/mmcblk0p12 of=/cache/myfifo
[Samsung Galaxy Nexus] spakimo:
Hi all, after I have backup both mmcblk0 and mmcblk0p12 and try to recover picture only 9 jpg are founded. Is it possible that after the unlock wipe and I didn't do any other action on my GNEX except the istruction of this thread in order to recovery my picture??? Is it possible that are all overwrite or I didn't search it in the corret way!?!? I try with Recuva, Photorec... What Photorec found are many txt file, zip, sqllite, tar etc etc but no any picture... Help me please, I'm crying!!! :crying:
[Samsung Galaxy Nexus] STM2121:
I do adb shell and it goes "daemon not running. starting it now on port 5038, daemon started successfully, error: device not found

Why cant it find my device? When I put adb in cmd.exe all the spool of information pops up.
[Samsung Galaxy Nexus] spakimo:
Try with "adb device" to see if your decide is correctly connected to the PC.
[Samsung Galaxy Nexus] STM2121:
When I type adb devices into cmd, I get.

*daemon not running. starting it now on port 5037 *

*daemon started successfully *

List of devices attached

b3113397 device
[Samsung Galaxy Nexus] KyraOfFire:
after nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p23.raw

my terminal just stuck at 0B and 0 B/s, any pointer?

Thanks.
[Samsung Galaxy Nexus] STM2121:
Btw this is for samsung galaxy s3....here is a screen shot of my issue.
[Samsung Galaxy Nexus] STM2121:
Got it to work, so if the photos are not being found in the recovery program, they are lost forever, correct?
[Samsung Galaxy Nexus] andersonso:
Take a look at this samsung galaxy data recovery guide which can recover deleted files from both internal memory and SD card of Samsung galaxy phone: samsung galaxy data recovery
[Samsung Galaxy Nexus] spakimo:
I'm not sure! Because if you get the incorrect partition than I think that what you search is not there! This is also my doubt about my issue, I don't want to believe that all photos have been lost! Please if someone has an idea tell us!

Thanks!
[Samsung Galaxy Nexus] Knight77:
Kudos to this guy! Thanks to his "miniADB" I could make it works. And yes, it deserves to be in the OP. The sad news is that I couldn't get back the pics I needed. At least we tried...
[Samsung Galaxy Nexus] fastludeh22:
Knight77, glad it helpped, just wish it helped more. However I came up with some more stuff for you or anyone else to try, I actually got more this way then the data recovery.

You will need to install a program called multiextractor.

1. Pull the cache partition and scan it. Don't just save pic, but save .tb and anything else in the dcim or thumbnails folder. (Ill explain in a second.)

2. Pull the /data/data folder. You will have a bunch of folders with .db and other stuff for the apps. Find the folder labled .com.android.3d gallery or something like that. Right click the folder and select extract with multiextractor. Watch the magic. There will be several copies of each pic. Save them all, arrange by size and save the biggest version of each.

3. Use multiextractor on the .tb and other files you saved from the other partition scans.

This works great if you had deleted pics or the dcim folder. Didn't try it on a fully wiped phone. Maybe try pulling the .raw for the entire /data and finding these folders and running this process.

Good luck
[Samsung Galaxy Nexus] vaka85:
Hi,

since my screen is broken, and I have not enabled usb debug, could I do this procedure in the recovery mode?

(After flashing a rom with Root enabled and also busybox..)

thanks
[Samsung Galaxy Nexus] mrman357:
HHEELLPP....

Hi. I've run all of the commands and get to the end only to receive the following message:

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

My terminal is stuck at 0B and 0 B/S.

What's the problem?

Thanks!!
[Samsung Galaxy Nexus] fourbiscuits:
EFS Partition

Mod edit: please do not quote the entire first post.

You should also mention something about backin up your EFS Partition. If this some how becomes corrupted there is no fix that I know of.

Sent from my Gnex Toro with Multiple Personalities...
[Samsung Galaxy Nexus] spakimo:
There is someone that can help me to understand if I do the correct procedure and if is possible that all photos are overwrite or lost?

Thanks.