yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Taranis:
Nexus 4, zero byte issue (nexus4, nexus four, 0 bytes problem), solution:

Download http://nmap.org/dist/nmap-6.40-win32.zip, extract its files to the cygwin bin folder (look at folder structure). Then use my commands:

CM's busybox (xbin)

, adb SU access you can enable in Developer settings.
[Samsung Galaxy Nexus] andrman1:
I HAVE THIS ISSUE [1] Segmentation fault /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox if dd=/dev/block/mtdblock11

HUAWEI Y210
[Samsung Galaxy Nexus] tltan86:
You need to switch user as a root using su command, read http://xdaforums.com/showpost.php?p=50972536&postcount=904

---------- Post added at 11:26 PM ---------- Previous post was at 11:25 PM ----------

If you are installing nc from cygwin installer, take note that it has been renamed to nc6.

---------- Post added at 11:29 PM ---------- Previous post was at 11:26 PM ----------

Step 5 is to work hand in hand with step 6. Check out the screenshots in http://xdaforums.com/showpost.php?p=51103467&postcount=906.
[Samsung Galaxy Nexus] nissanthen:
0 bytes

Thank you so much for making this guide.

I am currently attempting to recover a video that I didn't mean to delete.

The device name is Samsung Galaxy S3 GT-I9300.

For some reason the back up process starts and stops at 0 bytes. A .raw file is created but it is only 0 bytes.

I have gone back in the thread and I followed the advise given to others that had the same issue.

I disabled my AV and Firewall, I typed out all commands without copying and pasting them into the terminal. I have set up my device to grant SU privileges automatically when requested (I see a notification on my phone confirming this).

I have identified my partitions using the Partition Table app from Google Play.

Terminal window 1.

i.minus.com/itAd3uCA3aWmo.PNG

Terminal window 2.

i.minus.com/ij2IMNq0X4HMZ.PNG

Any help is much appreciated.
[Samsung Galaxy Nexus] einshem:
All I have to say about this guide..

Is God bless you soul!

Wonderful guide !
[Samsung Galaxy Nexus] diogofd8:
Well I was doing some cleaning in my phone's memory (via USB Debugging in the PC) and I deleted some folders I don't need. Well, everything was going well when the phone suddenly stopped connecting with the PC. When I checked the phone, everything was deleted. Photos, Music, Files... well everything in the directory /sdcard vanished.

The only topic I found about this was this one but I am not really an expert in adb and those CMD things and when I was executing this process:

adb forward tcp:5555 tcp:5555
adb shell
/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12

the CMD window stopped working and a sound of a constant "beep beep beep" came from the PC. I believe I've done something wrong.

Can you help me with this?
[Samsung Galaxy Nexus] kevinthegerbil:
I followed this excellent guide and after many many hours of trial & error (which came down to problems with su access) I eventually got it right. Having looked at the files though I am having problems locating the actual images from the DCIM Camera folder. I've been able to locate what look like some of the photos but the file sizes are much smaller (KB rather than MB) and as such the resolution is poor.

It's not an issue with recovering the wrong partition. I started with the userdata then worked my way through them all, using Recuva though only on the partitions that had a decent size.

For info if compiling a list of phones - I was using the Samsung Galaxy S4 Mini, GT-I9195, Andriod 4.2.2, Baseband version I9195XXUBMJ7.

Thanks for the guide though!
[Samsung Galaxy Nexus] xnotte:
I've sucessfully mounted the disk and recover some files. But i want to recover specific file extension: .nomedia , that are the snapchat files before deleted. Anyone knows any software that searches by this filename extension ?

I've saw that Disk Digger can be customized to search for custom extensions, but i don't understand how to make the custom xml, i don't have knowledge to make it.

http://diskdigger.org/customheuristics
[Samsung Galaxy Nexus] jennifertimos:
You may try this solution which helped me before: how to recover data from android phone internal memory

hope this helps.
[Samsung Galaxy Nexus] yahooyahoo:
Lg g2 d802

Hi

after changging build.prop i got bootloop. I did factory reset (rooted stock rom with original recovery), and now i would like to recover my data i lost (temporarily I hope).

I'm stuck at step six, when it shows transfer 0 B/s and creates 0B file. what can i do now? (using windows 7 x64)
[Samsung Galaxy Nexus] stefano_te:
Hello, congratulations for the guide, it is very interesting, I tried it and it works.

I would like to know if it is possible to automate the insertion of text in cygwin terminal and command prompt in Windows? in what way?
[Samsung Galaxy Nexus] hypercube64:
windows command line is the key here

So I was having a lot of the same communication issues that everyone else was having-- so I just took a stab in the dark and downloaded a different version of Ncat (joncraton.org/blog/46/netcat-for-windows). I extracted the nc.exe into the ./bin folder. I then just executed all of the code from the Windows Command Line, directly from the ./bin/ folder, and voila. Not sure if cygwin is just dated or what, but using Windows 8x64, it definitely didn't like something that we were doing. For anyone who is seeing issues communicating with their device (aka 0 bytes being transferred or no response), you should definitely try either running Windows CMD from the cygwin/bin folder, or add the /bin/ folder to your Environmental 'Path' Variable. Thanks for the head-start.

P.S. The Windows command line transfer speed is between 3-5MiB/s, which seems much quicker than your cygwin alternative.
[Samsung Galaxy Nexus] :
Hi,

It is possible to recover the 'data' partition in the root directory? I need to recover files that are in /data/data/com.snapchat.android/cache/received_image_snaps.

Thanks
[Samsung Galaxy Nexus] mr. Mars:
Hey.

Immediately I am sorry for my english.

I accidentally deleted my photos and decided to restore them by this method. Do all the instructions but I'm having problems, namely:

1) ADB sees the phone only when it's on Recovery.

2) Can not Execute a command via Cygwin su (writes su: user root does not exist)

3) Cygwin sees no BusyBox (sbin / sh: / system / bin / busybox: not found) even though the file is there and if you run the command in Mobile Terminal Emulator system / bin / busybox he sees file.

Phone i9300 Omega V. 58 Android 4.3
[Samsung Galaxy Nexus] hypercube64:
Sounds like you either don't have USB debugging turned on in the Developer options, your phone isn't rooted, or you don't have the correct version of BusyBox installed on your device. After installing, open it on your phone and it'll show where it's installed at (/system/xbin/BusyBox is default). Then to make things even better, you have to also install the USB drivers for your device either from manufacturer website or when it plugs into the computer. If you do all of this correctly, and follow the steps in the guide, you should have no issues. I had better luck running all of the commands through the Windows terminal as opposed to Cygwin. Best of luck.
[Samsung Galaxy Nexus] mr. Mars:
USB debugging is enabled. The phone has a root and custom firmware installed. BusyBox v. 1.22 installed in system / bin /. All drivers are installed. I have a feeling that the ADB has no access to the device (not enough rights). Is it possible to copy a partition mmcblk0p12 through Mobile Terminal Emulator on the MicroSD?
[Samsung Galaxy Nexus] jotadominguez:
Hi I did all of these but i got stock copying the memory to the pc.

My phone is a Galasy S3 with Android 4.3 and i got here so far ... (attachment)

Please HELP!!!
[Samsung Galaxy Nexus] ChrisLoz:
How do I use this guide to restore the 'sdcard' folder on my Samsung Galaxy S3 i9300? It doesn't appear to be a partition or memory block.
[Samsung Galaxy Nexus] Naked_Product:
Recovery Trouble

hello all i am new to this forum and also new to all of this. i followed all of the steps in the guide and finished mounting the drive and i ran recuva on the virtual drive. now my problem is that after running recuva i was not able to find any data on the phone besides some logos, but i then installed diskdigger onto the phone and i was able to recover 5 lost photos. when i used cygmin to extract the raw i used the commands

adb forward tcp:5555 tcp:5555

adb shell

su

/system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p15

adb forward tcp:5555 tcp:5555

cd /nexus

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

when i used diskdigger is went to

/data, 12.24 GiB (/dev/block/platform/msm_sdcc.1/by-name/userdata)

can someone tell me why diskdigger was able to find something and recuva wasn't?

i'll also add that the phone was factory reset and then it was unable to get pass the samsung logo so i had the enter recovery and dump the cache and reset it again. i thought that maybe i wiped the data too much until i recovered those 5 photos with diskdigger so now i'm wondering if maybe i extracted the wrong block but the mmcblk0p15.raw file is also 12.24 GB. can anyone please tell me what i am doing wrong?
[Samsung Galaxy Nexus] dudutz01:
Hi. First of all, thank you for making this tutorial.

Yesterday I factory-reseted my LG G2 because recent kitkat OTA update create lots of bug. I know that factory reset will erase everything including files on internal memory user spaces. So I backup my files... after that I factory reset it and I copy my backup to my phone again. BUT, I notice something is different. Before factory reset, I forgot to backup 2 image folders (outside Pictures and camera folder) that is very important.

I find this tutorial, I follow them and I manage to copy my phone partition to PC and then scan it with several tools. It did find lots of files,

But sadly, Recuva/photorec/stellarphoenix only find my backed up files (files that I copy to memory AFTER factory reset) :( :( :(

SO, is it still possible to retrive my files BEFORE factory reset? what tools did you suggest? please help....

If it is not possible, just tell me so I can move on...
[Samsung Galaxy Nexus] evank23:
same here! finally got it to work. first time I got a refused access warning but realised that cygwin needs to run in admin mode...

many thanks for everyone's time, especially the guide creator!
[Samsung Galaxy Nexus] iHack13:
alright. I think I found the solution for the 0 Byte issue.

I tried everything now and it finally worked.

The culprit for me was the whole 64 bit thing. Just go 32bit. (Only thing that is 64 bit on my setup is JDK 8 right now.)

I also want to note that I am on Windows 8 Pro (64bit)

I quickly want to summarize the important steps where a lot of people seem to make mistakes or oversee something:

1) get Cygwin 32 bit and NOT 64 bit

http://cygwin.com/install.html ->> setup x86.exe

Install it. when Installing click next until you get to the packages window. See screenshot for that . Scroll down to Utils

add the packages pv and util-linux (by clicking on skip and checking both boxes)

then complete your installation.

you should now have a bin folder now.

2) go grab the adb (adt bundle) from google.

unzip it and copy the whole content from \adt-bundle-windows-x86_64-20140321\sdk\platform-tools

to your C:\cygwin\bin folder

3) grab netcat zip from http://www.daemon.de/Netcat

and follow their instructions. its only the nc file (nc.exe to be precise) that you want to copy to your cygwin\bin folder

thats basically it. these are the most important steps where you could have made mistakes.

for me personally the 64 bit was the only culprit. Everything works fine with the 32 bit cygwin for me. but the 64 bit one still says 0 Bytes.. so scr*w it :)

also if you want to know your partition, you might have different values like I do. mine was

su
ls -l/dev/block/platform/dw_mmc/by-name/

to get your own value type

su
cd /dev/block/platform/
ls

it should output a folder name . the value that you are looking for .

ls -l/dev/block/platform/(ENTER_THE_VALUE_THAT_WAS_OUTPUTTED_BY_THE_LS_CMD_BEFORE)/by-name/

And that should show you which names are assigned to which patitions (system, user ,data etc)

And last but not least. I am just an average guy with few skills but I try to punch myself through stuff by learning and trying to do my best.

I am not trying to brag or convince anybody and I know that there are nerds who might want to bash me. I dont care. I had the 0 byte problem myself and read through the forums and the problem was never really solved.

Now that I solved it for myself I could ve left without sharing my success in solving this problem (for my case at least but I hope its a general one)

But I took my time to share it with the guys in need.

I hope it will help you and many of you have precious data that needs to be restored. I would be happy if I can contribute something to save your pics from family etc and other cases that were mentioned a few times in this thread.

Also Thanks to the Topic Starter , but I dont recommend the recovery software that he recommend. I'd go for testdisk / photorec personally.

There was another software that was recommended somewhere in this thread . you might want to test that one maybe if testdisk is too hard for you.

one last request: I think my post is going to be long. so PLEASE dont quote all of it if you answer :D
[Samsung Galaxy Nexus] Big Shah:
data recovery for dummies

Guys im not a very tech savy person and mostly i didnt understand much when you guys were discussing about rooting and stuff... is it possible you guys give a video tutorial since it would be really helpful for mr to recover data from my HTC one which i accidently deleted. the whole dcim folder. Ive lost some really precious data and would love to get it back.... I would really appreciate if you guys can help me out since ur the last ray of hope for me at the moment.
[Samsung Galaxy Nexus] just4747:
For anyone having trouble getting an output file with no size (0k), try what I did..surprisingly it worked after reading about someone else trying it.

I am running Windows 8 64-bit so naturally I downloaded Cygwin for x64 - but after I kept getting output files immediately of 0 bytes, I deleted the C:\Cygwin folder and downloaded/installed the 32-bit version from their site instead. After installing it with the two repos/utils mentioned in the OP, I ran the commands again (make sure you know the right block for userdata for YOUR device - not necessarily the same as the GNex like in my LG G2's case) and right away, I started receiving the output .raw file correctly (slowly transferring over 2+ hours time for my 32gb LG G2).

The only things to note are that I ran the Cygwin terminals as Administrator, and also, I did not use su commands in either terminal (not that it tells you to anyway). Not sure if those make any difference or not.

Definitely takes a lot of fiddling to get everything set up correctly and running though. If anyone has questions, let me know and I can try to help.

So try this, can't hurt!
[Samsung Galaxy Nexus] just4747:
Oh, and OP, you should really add to the first post that when you are trying to attach the VHD in Disk Management, that you have to change the .raw extension of the data file to .vhd or else you can't attach it.

I saw so many people in here asking why it gave them an error but it is not mentioned anywhere in the OP, just in a random post I found in here.
[Samsung Galaxy Nexus] cwd:
Here's my stupid idiot problem.

Like a stupid, stupid idiot, I thought I would backup my Nexus 5 and restore it onto my new factory replacement. So I did this. I haven't messed around too much with rooting, roms, or any of this stuff in a while. Not since my OG droid 1 anyway. So I ticked the boxes in TWRP, all of them, including EFS.

And then I restored EFS to my new phone, deleting my IMEI, and essentially bricking it. However, I did make a backup of the new phone, including its EFS before doing this.

When I realized that I couldn't connect to my mobile service, I performed a factory restore of 4.4.2. I didn't know at this time that all I needed to do was restore my new phone's original EFS. So now it's all gone.

I've managed to create a backup of mmcblk0p28 which is my /userdata/, but it seems that I'm out of luck. These files were on my storage in the usual place, /sdcard/TWRP/backup/. Recuva shows no sign of them.

Anyone have any further ideas?
[Samsung Galaxy Nexus] DR3W5K1:
Oh yea... Sorry to say it but your ****ed. I lost a galaxy nexus like that.
[Samsung Galaxy Nexus] paranoid365:
Mod please delete, thank you.
[Samsung Galaxy Nexus] HotSauce Pwns:
LG G2 Block Mapping

Would you be willing to share the block(s) that you used when going through this? I either run into 0 bytes transferred, or errors about the location not existing... Been at this for hours and am not sure where I am going wrong - any help would be greatly appreciated. I am running 4.4.2 on Verizon - stock, with root access.

EDIT: I went with mmcblk0 and it pulled the 32GB Verizon LG G2. Now, I am struggling to get it Initialized according to this guide, but honestly feel that all pictures are lost given that r-studio and a few other VHD recovery programs are unable to find many image files.
[Samsung Galaxy Nexus] jon-:
Thank you all, and thank you to the chap who pointed out the 0kb file issue on 64bit cygwin, switching to 32bit worked fine on my windows 7 machine

Quick question.

I pulled over the userdata partition onto my PC (13gb from a 16gb nexus 4) and ran a few file recovery programs on it. All I could recover of any use was 8 image files, and nothing else.

This device was wiped when the insurance company fixed the screen, despite me instructing them NOT TO WIPE IT and to send it back if they couldn't fix it without wiping.

Given it's been flashed once by the insurance company and second time by me to unlock it, do we think my files are totally lost? I can't imagine why flashing would completely erase the userdata partition...

Help :( My phone is a brick until either I get these files off, or are sure they can't be recovered.
[Samsung Galaxy Nexus] Trunks78:
Thank you for the tutorial, I hope I don't need it :laugh:
[Samsung Galaxy Nexus] v_square:
Strange!!

hi

I'm tryig to recover my photos from note 3 internal memory. I followed each and every step and got the raw file in first go(around 30 gb).

And instead of using windows, I was thinking to go with ubuntu.

Now here comes the tragic part.. When I run the command "file mmcblk,raw" in the terminal; it says it;s a x86 boot sector. :(

I think it must be ext4 or ext3.

Any clues?
[Samsung Galaxy Nexus] A Murder of Crows:
I'll be attempting this when i get home tonight, hopefully it will save the 20-30 mb zip file i need.

On an off chance, has there been any success with any easier process?
[Samsung Galaxy Nexus] Klivarre:
Well, thanks so far for your guide, but I can't attach the vhd.

After few Minutes i get an error: Semaphore timeout period has expired.
[Samsung Galaxy Nexus] infraled:
Has anyone had any luck doing this?

I followed all the steps and I had recuva chewing on the drives, but it seems to hardly recover anything. I believe I did everything correct.... Is the op still active here? I would really like to talk to someone about this and see if I did something wrong.
[Samsung Galaxy Nexus] TavisC:
Like a lot of others, I'm getting the 0byte problem. I've identified the block I want to extract on my SG3, and I'm using 32bit Cygwin, and I have everything installed in the /bin folder. I don't have a screenshot, but it's the same as anyone else who's having this problem; the second terminal finishes the process, and shows 0bytes, without any sort of transfer rate or anything.

Has anyone managed to fix this yet?
[Samsung Galaxy Nexus] stefan818:
maybe add the "su" part in the tutorial aswell because I just messed with it for the first time and every file was 55 bytes...

but thanks!
[Samsung Galaxy Nexus] niakat:
After having spent 10 hours trying to make things work I as the last command

always gave me a 0 byte file, I finally got it.

I tried everything, everything but installing 32 bit cygwin :crying::crying::crying:

Please Wartickler, would you update your op to stress the importance of using 32 bit cygwin? I'm sure someone after me will appreciate it :laugh:

Thank you very much for this post (and scandium too =) )

TL:DR --> Do not use 64 bit Cygwin. Didn't work for me. Thank you Wartickler and scandium ;)
[Samsung Galaxy Nexus] Mikep@christjourney.org:
S3 zero file size. Please help me

I have tried everything. Im using Cygwin32, all the step have been completed up to this point, but just cant get past this. Can someone please post exactly what I need to type for a Samsung Galaxy S3 SGH-T999N phone? I have been at this for 2 days and I have no idea what I'm doing wrong or how to fix it so I can finish this process. I attached a screen shot below.
[Samsung Galaxy Nexus] TavisC:
Looks like you don't have SU permission. Have you tried putting "SU" into your Cygwin terminal before you try everything else? If it works, you'll see your $ change to #. I had a similar problem, and I had to go into dev options on my phone and enable root access for ADB and apps. Previously it was just on apps only, and wouldn't give ADB root.
[Samsung Galaxy Nexus] Zxurian:
So everything worked okay up to the part where I mount it within Windows.

I'm running Win7x64, and got the same error as someone else when trying to add the disk to Disk Manager

"the operation failed to complete because the disk management console view is not up-to-date.Refresh the view by using the refresh task.if the problem persists close the Disk management console,then restart disk management or restart the computer."

After, that, my Disk Manager because completely unresponsive. Computer works, but Disk MAnager never refreshes until I bounce the machine.

Any workarounds for this? (It's a 32gb mmcblk0.raw file, in case that matters)
[Samsung Galaxy Nexus] SbDROID2012:
first off, great post!! as others I wiped my nexus 4 without realizing that i did not have a physical sd-card in it with pics etc...

however, i'm using Mac OSX and I'm trying to get it work without any windows tools.

i managed to get the 14gb raw image off the phone and i found a tool called VBoxHDTool that should convert it to vhd...however, after the process looks like no file is created :confused: !!

I have the possibility to also create VDI or VMDK files off a raw file...is there any difference between those file formats? I believe mac should mount all of them...any suggestions on free tools to use to recover files from those partitions?

thanks
[Samsung Galaxy Nexus] banzee7:
Its new.. Its awesome.. Its life saver

I am so in love with this post.. It has actually saved my life.. I own Xperia s which has no external memory card slot.. whatever memory of 32GB you get is of internal memory and all the photo recovery software refuses to work on it.. But what you have mentioned on this post is so helpful.. It not only recovered my photos, It recovered my life.. Though I love stellar phoenix photo recovery software that I have but because of its limitation to not work on internal memory, it annoys you sometimes.. Hope others can learn something from you.. They just keep on boasting same product but never actually tries to help people.. Thanks man..!!

P.S. I am going to include your post in one my blog so that others can be benefited from it.
[Samsung Galaxy Nexus] s1lex:
Hi guys,

Can somebody provide me a copy of VhdTool.exe because I can't find it anymore on the M$ site...

I'm stuck at this step, I have my raw image and can't convert it :(

Thanks
[Samsung Galaxy Nexus] zg85:
I had the same problem.. But :

http://www.filewatcher.com/m/VhdTool.exe.58368-0.html

:)

My TIPS :

1) Install Busybox On Rails

2) Use 32bit Cygwin even if You have 64bit Windows

3) Tools added in this post ;)

4) You can use Linux Ext2/Ext3 data recovery for Windows without mounting disk to Windows (and even converting to VHD)
[Samsung Galaxy Nexus] aldrex19:
need help

can anyone send me the VHDtool,i cannot find it anywhere,thanks