yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] jcarmi04:
I tested mounting a RAW and received a different error message. If possible, try recovery how I recommended in an earlier post (without mounting the VHD), mount the VHD in another computer you have (seems like it might be system specific), I would either see the fix recommended in the web link below, or Google for more specifics regarding your system.

//support.microsoft.com/kb/2013544

---------- Post added at 01:59 PM ---------- Previous post was at 01:52 PM ----------

That first terminal stays "forever" and can be minimized. The second transfers and shows 3 hr progress.

Your memory block did not transfer correctly. One step to ensure first is that you are doing the first series of commands and including "SU" and receiving the # prompt:

adb forward tcp:5555 tcp:5555

adb shell

SU

/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12

Also, check to make sure completed all of Wartickler's steps in the first post (doesn't hurt to do em again) and retry. The error you are receiving is because (I imagine) you are getting a 53KB file as opposed to 29GB. Open in Notepad to check out the read out.
[Samsung Galaxy Nexus] Hikari:
As you can see Ive already typed "su" and granted perms.. so that side seems just fine.. Ive also tried from scratch again and again. with su, without su... All the same... busybox is in xbin. otherwise Id get a "not found" error. I tried that just to be sure anyways.. I try the Notpepad thing now.. Thanks!

EDIT: Notepad++ shows nothing inside
[Samsung Galaxy Nexus] jcarmi04:
I think I have the source of the error. If your file is actually 0 KB and has literally no data when open Notepad, then the issue is when you open your second Cygwin terminal, you need to ensure that you put in all three lines of code:

adb forward tcp:5555 tcp:5555

cd /nexus

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

When I recreated the problem by skipping "adb forward tcp:5555 tcp:5555" I got the same issues you had (hung terminal 1, no output terminal 2, and 0 KB file). FWIW (Wartickler and anyone), though not necessary to edit, I don't need to enter "adb forward tcp:5555 tcp:5555" in terminal 1 and can just skip to adb shell (which makes the connection automatically).

If I was wrong and the above doesn't fix, you can check below; but, I don't believe any will pertain to you.

How large was the file that was saved / was there any transfer progress returned after you entered "nc 127.0.0.1....mmcblk0p12.raw"? (Notepad will just give you an error read out for our benefit, since VhdTool can't convert anything smaller than 12 MB which is clearly not the 29 GB you need, so it's too bad that we can't get any info.)

Did you edit the first image's command prompt read out? If not, after you type "adb forward tcp:5555 tcp:5555" the terminal/phone should respond with something similar to (my read out): * daemon not running. starting it on port 5037 * * daemon started successfully * Though, if you have already connected once without rebooting your computer you won't get the message. FWIW, can also check via "adb reboot" to ensure that step is correct.

The other thing I note from your first image is that you don't change to "shell@android" and stay at "root@android" though imagine it should work regardless.

2 other things worth checking (apologize if you've already): Does BusyBox have SU privileges on your phone and is your BB install directory actually "xbin" and not just "bin"?
[Samsung Galaxy Nexus] Hikari:
so, let me see..

I sent all commands in every step to the terminal. No exceptions. My rom is PA 2.99 8JAN build and is fully rooted my busybox is in xbin. Ive checked. also if it was in bin the terminal would simply return "...xbin/busybox... not found" error... adb was already running..

After I issue "nc 127.0.0.1....mmcblk0p12.raw" command the terminal acts like I had simply sent "return(enter)" without any commands before it .. I dont really think root shell matters. There are people who did without root and others with root both reached success..
[Samsung Galaxy Nexus] jcarmi04:
Here's as close as I've gotten to your problem (again, if you have no data saved in you "mmcblk0p12.raw" file ... I used "p7" since even it transfers with such little data when done correctly).

I suppose you could check your cable (manufacturers) and, if not, try transferring either another block (p11 should have about 400 MB, which you can then test using vhdtool) or try transferring via wifi per scandiun's steps.

Sorry to not be of more help.
[Samsung Galaxy Nexus] Wartickler:
I'm sorry I can't be of more help than this: try using the mmcblk0. I'm not sure that it behaves the same as p12 (that it is ext4) so maybe scandiun's post will have more information on how to mount it.

BTW, I wasn't aware of anyone who had successfully completed the tutorial without root. Just sayin'...

P.S. what is PA 2.99 8JAN?

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] Hikari:
I see. Thanks for the help!

PA -> PARANOID ANDROID

2.99 8JAN -> version 2.99 8th January build.

it simply is an AOSP type rom with PA Hybrid Engine and customizations.. I dont think that would matter...

Anyways Thanks again!
[Samsung Galaxy Nexus] JonnyZaggi:
The Method works for me until i have to initialize disk.

i can mount the .raw file which i converted to vhd using vhd tool.

But now i cant select any of the options and it says the partition is not assigned.

So i cant proceed to get any data :(

any idea?
[Samsung Galaxy Nexus] jcarmi04:
From what I can tell, you didn't do the next step correctly. Right-click on Disk 2 (in your case) and select "Initialize Disk" - NOT right-click on the actual partition space (black bar).

If it fails, to test, you can go through all of Wartickler's steps with block 11 (mmcblk0p11), since it is only ~400MB and will be wayyyyy quicker to re-check this step.
[Samsung Galaxy Nexus] ReynaldoH:
Thanks a lot, this worked like a charm!
[Samsung Galaxy Nexus] Wartickler:
Glad to hear the method is still working (:

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] jcarmi04:
So, I actually have some recovery questions for any/all. If another post or forum is more appropriate please let me know (or if this is Verizon 101 or Nexus 101 stuff too, please point me in the right direction).

I've been using a full version of WinHex to recover my data (not converting to VHD and mounting) and am getting some strange (for me) results. Also, FWIW, I've been recovering the phone's entire memory block (mmcblk0). I currently have 3 Nexus phones (Verizon has sent me two replacement phones to troubleshoot a 4G problem and am using the 2nd replacement phone as my primary Nexus, have my initial "new" phone off until I hash out best recovery steps, and have been tinkering with the 1st replacement phone).

Today, with my tinker phone, I performed a "Factory data reset" and once up entered a Gmail account that I've never associated with any phones. Once the memory block was completely transferred, I immediately performed another FDR and again entered that same email account that had never been associated with any phone. Again, once transferred, I immediately performed another FDR but this time entered my Gmail credentials that are primarily associated with my phone. The results are below of recovered file types and sizes; but, I was primarily looking for JPGs, an XML (SMS backup), and MP4s that I filmed. The first two tests (with the "new" email account) recovered ZERO personal files or files of interest. The third one recovered many JPGs and a few other files that I wasn't interested in but happy to see recovered.

Apologies for the long post, but this is troubling since it makes me feel like what I am recovering (with these steps) is not actually pulling from the phone's internal storage and is somehow/somewhere cached in the Gmail account (saved in some obscure hole when that Gmail account is associated with device). Can anyone offer insight or better/worse luck when recovering? On other attempts I've gotten slightly more (maybe a FLV or something), but this is the first time I've done successive batteries ... and the results have thrown me.

REC1 = 1,310 files for a total of 754MB

REC2 = 1,299 files for a total of 725MB

REC3 = 1,998 files for a total of 834MB

.pdf

x

x

3

.zip

15

13

17

.elf

17

14

17

.jar

150

144

150

.html

2

2

2

.gif

x

x

16

.gz

9

9

7

.jpg

7

7

607

.docx

x

x

2

.png

149

133

212

.so

300

300

300

.spl

1

1

1

.sqlite3

62

60

64

.tif

1

1

1

.m4a

1

1

1

.mp4

4

4

4

.ogg

12

62

62

.xml

529

547

529
[Samsung Galaxy Nexus] bicecream:
THANK YOU!

Thank you so much. you have no clue how much you have helped me!

I will make a video tutorial soon on how to do it for GALAXY s3 SGH i747!

Thank you again!!
[Samsung Galaxy Nexus] Wartickler:
Awesome! That sounds great. I'll link to it from the post if you like?

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] Wartickler:
So let me make sure I'm not missing something obvious and that I understand correctly. The variability of the results of the first two is unexplainable but it sounds like you are pulling about the same amount of stuff both times. The obvious part is that the third attempt is with a gmail account that you have presumably had for a long time. The fact that, when you attach that account to the phone, you have a ton of pictures suddenly showing up makes sense to me: when that account begins to sync you are drawing down pictures from the cloud through Picasa or Google+. So when you do the recovery it's really not a recovery of hidden/deleted photos but of files being made available on the phone...make sense?

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] ricjandro:
I would just like to thank the OP and recognize his/or her effort in taking the time to post this tutorial. I had lost all my files on my phone which included a video recording of my mother's last words to me before to passed away from cancer. After trying every program designed to recover lost files with none of them working, I was completely distraught.

If I hadn't stumbled upon this thread, all the files that are precious and irreplaceable would have been gone for good. Nevertheless, I am lucky to have found this thread. Again, thank you OP, I am sincerely grateful and I deeply appreciate the help you provided.

Richard
[Samsung Galaxy Nexus] ankushkatari:
Thank you this helped very much.. Couldnt recover everything but something is better than nothing!
[Samsung Galaxy Nexus] jcarmi04:
thanks for the response! I wish I had either of those accounts to explain it, but double checked and don't. am open to any suggestions, since I'm getting close to recovering my phone and want best results.
[Samsung Galaxy Nexus] blion:
Guys, am trying to recover some photos and videos (taken by the built in camera) which were accidently deleted on my note 2. Its all stock and unrooted so I will root it first before trying. However, can someone confirm that the partition is userdata -> /dev/block/mmcblk0p12?? If i remember correctly, the photos and videos were under the DCIM - Camera directory. Any help appreciated!!!
[Samsung Galaxy Nexus] gnustomp:
It's different for other phones. DON'T TOUCH ANYTHING IF YOU WANT A SUCCESSFUL RECOVERY. It depends if the blocks haven't been overwritten yet.
[Samsung Galaxy Nexus] blion:
Ok, in that case how do i find out which one is the correct partition ???
[Samsung Galaxy Nexus] jcarmi04:
I would just get the whole data block (mmcblk0 - Nexus, but assume same). File recovery should be identical ... but please someone correct me if I'm wrong.

Also, as stated, stop using phone until that's done.
[Samsung Galaxy Nexus] blion:
Okies! Will try that and post back if it works or not!
[Samsung Galaxy Nexus] jgcoroleu:
I unlock bootloader in my motorola razr hd and deleted all my files, this method works for my cellphone? thxs
[Samsung Galaxy Nexus] blion:
Confirmed that it works for note 2. As recommended i used mmcblk0 though it took a few attempts cos at the start it kept on returning a 0 byte file. Realised that i had to use su command and also grant su access on the phone! Thanks!!!
[Samsung Galaxy Nexus] Wartickler:
It should (:

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] Wartickler:
That may be a missing piece of the puzzle for people having no luck with this guide. I'll add it to the OP.

What step was that?

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] jcarmi04:
Not sure if it occurs for everyone, but:

adb forward tcp:5555 tcp:5555

adb shell

SU

/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12
[Samsung Galaxy Nexus] Wartickler:
I think explicitly granting SU on the phone is what I was talking about...

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] blion:
Yep, i had to explicitly grant SU right on the phone. That was what worked for me. Not sure if it had an effect but i also removed the timeout password protection as well. Thanks mate!!!!
[Samsung Galaxy Nexus] jcarmi04:
Nothing I'd want to try: http://android.stackexchange.com/qu...to-run-adb-shell-as-root-without-typing-in-su

1. Flash ROM with mods

2. Create custom boot.img and flash

3. Restart adbd on your device with root permissions

Not sure if there are other ways, but neither Superuser nor Super SU allowed a bypass of that command.
[Samsung Galaxy Nexus] anirudhks:
not sure if i am doing right ... but I have followed the steps exactly I have the data being transfered for close to 12 hours now its still doing for a 16GB partition ( internal SD ) is that ok ?

edit : works now.. :D i think it was because I did copy Paste ...

Thanks a lot for this thread saved all my data after I accidentally formated my internal card via TWRP ..
[Samsung Galaxy Nexus] Wartickler:
You're very welcome. What did you mean about copy paste?

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] anirudhks:
I had copied the commands from the thread and had replaced the partition only

Later typed the commands manually and it worked
[Samsung Galaxy Nexus] ngsngn:
Hi guys, need some help here.

I'm using Nexus 4, from what i check from N4 thread, it is using mmcblk0p23

I tried the process, but at the 2nd terminal window. I get the same problem except the last part as per post num #129.

The time elapsed keep moving but is at 0B/s

I checked my file size is forever 0bytes despite running over >10mins.

FYI, i'm using Franco nightly kernel #53. This kernel itself uses modified ramdisk.

Any help here is appreciated.

Thanks.
[Samsung Galaxy Nexus] anirudhks:
Hi if you tried doing a copy paste from the thread to anote pad and then execute u will get this problem also

the path varies from the thread and the actual mmc path so make sure you have that right... '

and recomended to type the whole command instead of copying and then replacing the bits..
[Samsung Galaxy Nexus] ngsngn:
Hi, i tried typing manually, but it still can't work. I believe the path is the same for N4 except instead of 12, it uses 23.

Anyone correct me where i went wrong? 1 more to note, when i boot into bootloader, it is using secure image. Any difference?
[Samsung Galaxy Nexus] anirudhks:
can you post a screenshot of the fdisk list?
[Samsung Galaxy Nexus] ngsngn:
Hi,

what is the command for fdisk?

Alternatively, i think this is what you mean: http://xdaforums.com/showthread.php?t=1993036
[Samsung Galaxy Nexus] anirudhks:
Yes correct but sometime the mount may vary on certain n4 so can you run the command below and then paste the screenshot?

su

find /dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \;
[Samsung Galaxy Nexus] anirudhks:
ok so here is your sequence f commands that needs to be put in , recomended to type everything than copy paste...

make sure the phone is in unlocked ( screen active not lock screen )

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/mmcblk0p23

in the other window

adb forward tcp:5555 tcp:5555

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

hope this works for you :)
[Samsung Galaxy Nexus] ngsngn:
Sigh! Still cannot. Tried typing manually as well. Can't work :(
[Samsung Galaxy Nexus] anirudhks:
when you do a su does the phone say root previlegs given?

---------- Post added at 08:42 AM ---------- Previous post was at 08:38 AM ----------

also are you sure that the busybox is in bin or xbin?
[Samsung Galaxy Nexus] ngsngn:
nope, phone nv prompt. when i do an su, the cygwin terminal becomes root@android

my busybox is in xbin. When i tried bin, i get an error busybox not found
[Samsung Galaxy Nexus] anirudhks:
I am guessing root to be the issue here , is the phone rooted?
[Samsung Galaxy Nexus] ngsngn:
yup, rooted. installed custom rom and custom kernel. can't be not rooted right? titanium backups work, so can't see where went wrong.
[Samsung Galaxy Nexus] anirudhks:
so when u do a su on the screen do yu see a notification saying root prevleges given ,, may not prompt but just a notification saying root was granted ?
[Samsung Galaxy Nexus] ngsngn:
Nope, my notification bar and my screen doesn't show anything.
[Samsung Galaxy Nexus] anirudhks:
ok I will pm you some stuff..
[Samsung Galaxy Nexus] ngsngn:
have replied. Thanks.
[Samsung Galaxy Nexus] silverhunk:
stucked at step 5:

command not found
[Samsung Galaxy Nexus] anirudhks:
can you post a screenshot please?
[Samsung Galaxy Nexus] silverhunk:
ok.see the attachment

im thinking it is because the ADB mode thing which i dont know how to get into ADB mode

EDIT: Akso i cant find the download link for netcat :(

im using Xp anyway
[Samsung Galaxy Nexus] anirudhks:
looks like the google drivers and the other tools are not installed , google for netcat nc.exe you will find it
[Samsung Galaxy Nexus] silverhunk:
EDIT: what should i actually do in step 5? Should i put the command and press enter one by one or i just copy whole command and press enter?
[Samsung Galaxy Nexus] anirudhks:
no no dont copy paste , you will need to type manually , but when you do adb forward does it give u any error?

or when u do adb shell ?
[Samsung Galaxy Nexus] silverhunk:
no error even in adb shell but when i type

/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12

it gives me this error: 55 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12 <

/system/bin/sh: /system/bin/busybox: not found

EDIT: i have already installed busybox
[Samsung Galaxy Nexus] anirudhks:
ok in that case you will need to do xbin instead of the bin
[Samsung Galaxy Nexus] silverhunk:
its working now.. but i didnt install pv package i cant find it anywhere
[Samsung Galaxy Nexus] anirudhks:
install the util package for linux in the cygwin installation prompt
[Samsung Galaxy Nexus] silverhunk:
im getting this error now

-bash: pv: command not found
[Samsung Galaxy Nexus] jcarmi04:
Reinstall Cygwin. When you install it gives you the option to add packages. In the package window, search for pv.

The instructions work, so take your time and follow them. Every time you (fail to) recover chances are your phone is on and data is being written on top of what you lost.
[Samsung Galaxy Nexus] silverhunk:
thats what i have done.. the problem is that there is no results when i search "pv".

anyway ive downloaded pv.exe from here http://sourceforge.net/projects/pvforcygwin/files/ and put it to c:\cgwin\bin

and now seems working now. this is the result when i enter nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p12.raw (in step 6):

0 B 0:04:23 [ 0 B/s] [<=>
[Samsung Galaxy Nexus] anirudhks:
after adb shell make sure u did su and this will prompt for root access on screen on mobile make sure ur screen is unclocked
[Samsung Galaxy Nexus] silverhunk:
thank you for help. :laugh:seems working now

i dont know why its still 0 B/s :confused:

EDIT: i dont know the problem but why it is still 0 B
[Samsung Galaxy Nexus] anirudhks:
hmm try killing the adb.exe and start over from the forward tcp
[Samsung Galaxy Nexus] silverhunk:
ok lets see

EDIT: it does not work:(

any way after killing adb.exe and typed adb forward... it showed this:

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

* daemon started successfully *

does it matter?
[Samsung Galaxy Nexus] jcarmi04:
That's a fine output. Does the mmc file have an error message in it (open with Notepad)?

Also, it sounds like pv.exe should be set, but for you/others it is there:
[Samsung Galaxy Nexus] jcarmi04:
Also, the SU command is not necessary in that second Cygwin terminal, only the first. Are you using the correct commands in the first terminal (make sure busybox is your correct location):

adb forward tcp:5555 tcp:5555

adb shell

su

/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12
[Samsung Galaxy Nexus] bicecream:
The how to video of this post for S3

Here you go

http://xdaforums.com/showthread.php?t=2123999
[Samsung Galaxy Nexus] silverhunk:
i have search pv but nothing is in there :(

any way i dont know where is the mmc file

EDIT: here is the output see the attachment

as you can see it says 0 b\s.. is it normal?
[Samsung Galaxy Nexus] jcarmi04:
It's normal if done incorrectly :) Sorry, couldn't resist.

Go to C:\cygwin\nexus and throw that file into Notepad and see if there's a message.
[Samsung Galaxy Nexus] silverhunk:
theres no message..its just blank

EDIT: in step 5 i dont get any output message..is it supposed to have an output message?

EDIT1: oh my God its working! thanks Wartickler for tutorial

now im heading to step 7 lol
[Samsung Galaxy Nexus] ngsngn:
Hi All,

for my case where it doesn't work. I figured it out why. It is due to nc.exe not being download from daemon.de as per OP post.

Reason being the site seems to be out of sort and i googled for alternative nc.exe

Following bicecream video guide, i download the nc.exe from the direct link and it works.

The files are transferring.

Thanks bicecream!
[Samsung Galaxy Nexus] silverhunk:
yes that was my issue ive also download nc.exe from other site and ive never got it work.
[Samsung Galaxy Nexus] bicecream:
haha no problem just press that nice Thank you button on my thread ;)!
[Samsung Galaxy Nexus] silverhunk:
thanks guys for this tutorial and for helping me.

im now scanning and hoping i can get back my files :):crying:
[Samsung Galaxy Nexus] JtotheD69:
Help please - I'm too far to quit now

After entering this line:

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

Cygwin reads:

-bash: pv: command not found
[Samsung Galaxy Nexus] Wartickler:
pv is not found. Means not installed.

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

Sorry for all the newbie questions, but.....

the tutorial and instructions don't seem to cover how to attach the converted .RAW file as a VHD on Windows XP. The options used here aren't available in XP, only Windows 7. I've searched and searched for a solution but to no avail. Also, the command prompt shows the .RAW to be converted successfully, but it still shows up in windows explorer as .RAW.
[Samsung Galaxy Nexus] Wartickler:
Found it: http://bit.ly/14wPUYI

Sent from my Galaxy Nexus Toro that is way better than yours [see also: "Mmuzzy"]
[Samsung Galaxy Nexus] e_dude:
Hello all! I accidentally erased my hard photos this morning and have spent half of the day trying to get this tutorial to work. I cant seem to see where I am going wrong. I am using a galaxy s3.

I have gone through the youtube video and made sure that I am using the correct NetCat, but am still getting the 0 Kb/s the same as Silverhunk did.

Does anyone have any suggestions to fix it. Any help is appreciated.