yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] Wartickler:
Never hurts to try :) Literally... as long as you don't use the device you should have minimal data loss while installing any software required...

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] l3admonky:
I need some help. This exact issue happened to me a couple days ago and while I've managed to copy my phone's memory to my disk I'm only able to recover a very small amount of information using readily available recovery software, such as recuva, and unfortunately none of the really important information I was hoping to recover was recovered. That being said I came across testdisk and photorec. Testdisk is reporting that "the harddisk seems too small" and that it can't recover what seems like any partitions (see image). Is there anything I can do to fix the size or repair the partitions? Any suggestions would be greatly appreciated.
[Samsung Galaxy Nexus] scandiun:
I presume that you copied a single partition and not the entire memory block. Did you try actually "mounting" the partition?
[Samsung Galaxy Nexus] l3admonky:
I followed the exact instructions from the OP and copied mmcblk0p12 to my computer and then converted it to a vhd using FAT32. it shows up in Computer as a drive now so I guess it's mounted.

Some fun facts.

I have a Verizon galaxy nexus and the mmcblk0p12.raw file shows up as 28.5 GB so the whole 32GB was copied.
[Samsung Galaxy Nexus] scandiun:
The 28.5 GB are because you have a 32GB gnex, and the most space is occupied by the data partition (which includes inside the sdcard).

This is what shows testdisk on the data partition of my Nexus 7 (sdcard is included):

testdisk /list n7-p9.raw
TestDisk 6.13, Data Recovery Utility, November 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Please wait...
Disk n7-p9.raw - 14 GB / 13 GiB - CHS 1781 255 63, sector size=512

Disk n7-p9.raw - 14 GB / 13 GiB - CHS 1781 255 63
Partition	Start End Size in sectors
P ext3 0 0 1 1780 138 23 28604417

TestDisk 6.13, Data Recovery Utility, November 2011
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk n7-p9.raw - 14 GB / 13 GiB - CHS 1781 255 63
Partition Start End Size in sectors
>P ext3 0 0 1 1780 138 22 28604416

Structure: Ok.

Keys T: change type, P: list files,
Enter: to continue
EXT3 Large file Sparse superblock Recover, 14 GB / 13 GiB
[Samsung Galaxy Nexus] scandiun:
You can try mounting the image under linux without converting anything:

sudo mkdir /ext4
file n7-p9.raw
sudo mount -t ext4 -o loop,ro,noload,noexec n7-p9.raw /ext4/

If you look under /ext4 there should be the sdcard in

su
cd /etx4/media/0/

For more information:

How to Mount Dirty EXT4 File Systems
[Samsung Galaxy Nexus] LaNsLyDe:
anyone know the correct mount point for a nexus 4?

successful on a galaxy nexus btw. I have some mp4s i got , but they need repairing...anyone know of a good software to repair these files?

awesome tutorial!
[Samsung Galaxy Nexus] gnustomp:
I'm trying this but I doubt i'll get much back as I've already formatted and written over the memory several times since I corrupted it.

EDIT: nup, it got formatted clean.
[Samsung Galaxy Nexus] sasaengineeringworks:
try it on 32bit system

try it on 32 bit system as it hard to find 64 biit netcat
[Samsung Galaxy Nexus] zamzameir:
this thread just saved my gnex..ahh thank you :D
[Samsung Galaxy Nexus] ultimatelegend1:
I have a similar problem I flashed cyanogen mod and lost my internal storage what I mean is when I open file manager the sdcard file is completely empty and in the storage it only shows 2gb instead of the 16gb that I'm supposed to have so plz guys can u lend a guy a hand:)
[Samsung Galaxy Nexus] evilvoice:
For those that are getting the 0 byte error, try checking that you are backing up the correct partition. I tried for hours to back up /dev/block/mmcblk0p26 only to find out the real location is /dev/block/platform/msm_sdcc.1/mmcblk0p26 and it works now. So, try that if you are getting the error.
[Samsung Galaxy Nexus] JATCHUHAN:
Hello can anyone help please. I am trying this on a galaxy s3 19300 international. But my raw file always stops at 166mb in size. The path I am using is /dev/block/platform/dw_mmc/mmcblk0p12 to restore my userdata. What am I doing wrong, am I using the correct path for this phone? Thanks in advance
[Samsung Galaxy Nexus] Vybramo:
i have problem with <code> nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p12.raw </code> ... pv command doest exist
[Samsung Galaxy Nexus] JATCHUHAN:
Never mind managed to get it working. Installed everything on a different computer and when I installed cygwin I installed every option including nc.exe file. Managed to dump my raw files from mmcblk0 and mmcblk0p12. Thanks to the op
[Samsung Galaxy Nexus] 3vilN1n@z:
Only getting 0 byte file

Here's the situation: forgot about the auto-Factory Reset when rooting Nexus devices & I nuked my friends Nexus 4.... she lost a lot of pictures so naturally I feel like a horses arse... So I followed the steps exactly and after many many attempts, I still cannot get anything other than a 0 byte file (the RAW file creates but has no size to it).

Phone Details:

Nexus 4 on VZW

Android 4.2.2 (build JDQ39)

Fully rooted/unlocked factory ROM

Here's a screenshot of what I'm running in Cygwin (and the results of it):

I'm not sure what I'm doing wrong... any help would be greatly appreciated!
[Samsung Galaxy Nexus] nexusfouruser:
Hi there. I'm having a similar problem. I am using fazm's instructions (http://xdaforums.com/showpost.php?p=47366246&postcount=777). I, too, get a 0B file being made. After trying another nc.exe (http://xdaforums.com/showpost.php?p=47366246&postcount=777), I still get a 0B file, but with a timer counting up forever. I'd really appreciate some help!

I am using a Nexus 4 running KRT16O. I wiped my /data, foolishly thinking that a TWRP /data backup includes internal storage. It doesn't!

Thanks for the guide. Hopefully we're close to getting things working!
[Samsung Galaxy Nexus] Plunte:
Anyone found out the blocks on Xperia Ray?

Tried this guide and all went smooth until I came across the blocks on my Xperia Ray phone;

1|shell@android:/dev/block $ ls

ls

loop0

loop1

loop2

loop3

loop4

loop5

loop6

loop7

mtdblock0

mtdblock1

mtdblock2

mtdblock3

ram0

ram1

ram2

ram3

ram4

ram5

ram6

ram7

vold

zram0

Anyone knows what I should pick to recover my userdata and pictures?
[Samsung Galaxy Nexus] ycon:
Firstly, thanks for this excellent guide.

However, I'm also stuck at this same position (getting no progress in the .raw). I've got a i9305.

My C Drive (where ADB SDK is installed) only has 5GB's free- so could that be the issue? How to I direct the .raw to extract on a different drive? I *THINK* i've already tried extracting it elsewhere by typing "/cygdrive/c". But still the RAW is 0 B/s
[Samsung Galaxy Nexus] ycon:
I figured it out- I needed SU privileges, and changing the drive letter was easy (cd /cygdrive/c for D drive).

So for me to get it working I did:

adb forward tcp:5555 tcp:5555

adb shell

SU [PHONE REQUESTED PERMISSION, clicked grant]

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

I'm amazed I figured that out- what a learning curve :good: Fingers crossed I'll get files from the .raw file eek

* Also, ensure you extract to a non-fat32 file system (fat 32 has a 4GB max filesize for a single file)
[Samsung Galaxy Nexus] getaceres:
Sorry to say that but I think nobody here has been able to recover data from a Nexus 4. All the success cases are from Samsung devices but for Nexus 4 we get consistently 0 bytes files.
[Samsung Galaxy Nexus] ycon:
No luck for me :(

Unfortunately whilst it found other random JPEG/PNG's (mainly smilies/clipart), it didn't find my DCIM/Photo content!

Why is this?

I've got a 16GB i9305, and I'm selecting the 11.2GB sector (largest by far, named 'data') called "mmcblk0p16.raw"

Could the DCIM (photo's) be used on another sector of the internal memory?
[Samsung Galaxy Nexus] anthonyja:
Step 13 HELP PLEASE

ok so i have my raw file approx 15gb, it says its mounted as H: drive in my computer and its only 100mb

Right-click on the name (e.g. "Disk 1") to the left of the Unallocated space and select

Initialize Disk.

I cant seem to find "intitilize disk", i right clicked on DISK 1 which is my new drive. All i see is "detach VHD" thats availible for clicking.

Any help would be appreciated. Thank you

EDIT: I removed the H: volume

Added Screenshot
[Samsung Galaxy Nexus] 3vilN1n@z:
I got my hopes up with that! Tried the same thing (made sure SU was granted) but got the same result (0 byte file) :confused:

Any other ideas?
[Samsung Galaxy Nexus] seminarian:
I have LG Nexus 4. Inserting SU made a succesfull dump. For LG nexus 4 the userdata is block 23. This is what i did
[Samsung Galaxy Nexus] seminarian:
I have a problem though. I've ran Recuva on the Virtual hard disk and it only finds 256 files. My raw file was 13 GB. There are only stupid png's from apps to be found. I dont find any of my pictures that were on my phone? :crying:

What is the reason for this? Is there something else that I can do?

Should i dump another block? Or use some other recovery software than recurva?
[Samsung Galaxy Nexus] w0dash:
I have currently the same problem. The dump is ok, but I only find cached pictures from apps, and not a single photo from my DCIM folder. Maybe that folder is not on the user-data partition?

Btw., I found a handy data-recovery app. There is a mobile and a desktop version. The desktop version is very useful, because it is able to scan a raw file directly, without the need to convert it to a VHD and mount it. Maybe it could be mentioned on the first post.

I am trying to pull the whole memory dump of mmcblk0 as I am writing, but the connection is awkwardly slow with less than 1B/s... And I do not know why.
[Samsung Galaxy Nexus] seminarian:
Mack@Macktop /nexus

$ nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0.raw

55 B 0:00:00 [3.84kiB/s] [<=> ]

Mack@Macktop /nexus

This is what I get when I try to pull the mmcblk0, a 55 byte file. What do I do wrong?

In shell i did this command " /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0"
[Samsung Galaxy Nexus] w0dash:
Try to delete nc.exe and pv.exe and install them (x86) via the cygwin installer, if you haven't done so.

Also, try running the commands on the shell of your nexus after su.
[Samsung Galaxy Nexus] seminarian:
Done that and I get the same result. :(

---------- Post added at 10:17 PM ---------- Previous post was at 09:47 PM ----------

I seem to be doing wrong. I can't reproduce my previous 13GB result of block 23. Always 55byte :(

EDIT: I lost my root because I flashed CWM again. After fixing this I'm dumping mmcblk0 as I type at 3MB/Sec, will run the program u suggested on the raw file. Fingas crossed.
[Samsung Galaxy Nexus] seminarian:
Update: My mmcblk0.raw is only 4.92 GB. Is that normal? Shouldn't it be the sum off al capacities?:confused:
[Samsung Galaxy Nexus] w0dash:
I've now got a 14,6GB big dump of the whole memory, but I don't find the pictures I wanted to restore; I guess they already got overwritten.
[Samsung Galaxy Nexus] seminarian:
Just read this.. Any1 can confirm this? Any1 knows a solution? :confused:
[Samsung Galaxy Nexus] ateryan:
hello

i have nexus4!

i try all way for convert mpt to a drive but im not seccessful

my request from who has nexus 4 is please insert created raw OR VHD file for my phone

excause me for weak english...

thanks...
[Samsung Galaxy Nexus] andyroo54:
Hi Thanks for this guide, however I have run into a small problem.

I have run these commands:

user@T5Z12S ~

$ adb forward tcp:5555 tcp:5555

user@T5Z12S ~

$ adb forward tcp:5555 tcp:5555

user@T5Z12S ~

$ adb shell

shell@mako:/ $ /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12

5 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12 <

shell@mako:/ $

Then I ran:

user@T5Z12S ~

$ adb forward tcp:5555 tcp:5555

user@T5Z12S ~

$ shell

-bash: shell: command not found

hingstona@6T5Z12S ~

$ shell

-bash: shell: command not found

user@T5Z12S ~

$ cd /nexus

user@T5Z12S /nexus

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

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

user@T5Z12S /nexus

$

However the file that was created is 0bytes in size, no files were copies? Is there meant to be a progress bar or something?

Is this because I didn't run in SU?

Thanks,

EDIT: I ran this command in SU and still no result. File is created, but is 0kb.. ??

Counter just counts up forever.

Nexus 4 phone
[Samsung Galaxy Nexus] seminarian:
Do you have root? Check it with roottester
[Samsung Galaxy Nexus] andyroo54:
Yes I rooted the phone. It doesn't even prompt me for permission because I already have root.

I've tried everything, read through this whole thread. I think the problem is maybe with netcat but I can't be sure..

I think I just have to accept I won't get my photos back.. thought I had two backups but one died and the other not all of the data had copied...
[Samsung Galaxy Nexus] JCVH:
Just a piece of information:

I wiped my DROID3, found hope in this fine tutorial, and ran into the same behavior with the zero bytes output files, and it was a quite dumb thing:

in the adb shell command, i put:

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

and it didn't gave me any error, and in the other terminal i got the zero bytes output

If you look closer, in my system busybox is installed in /system/xbin , so i must change that bit in BOTH commands, nc and dd.

I ran:

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

and it worked just fine.

I also added the bs=32M at the end, so it could get a little faster (not that faster really).

Anyway, i'm doing this only for good measure, as it looks that my data was encrypted, so there is no really very much hope of finding anything.

Thanks for your attention.

See ya!

JCVH
[Samsung Galaxy Nexus] sfex3best:
What should I do if my c:\ on my pc is really small in size so it will always fail to write because of the tiny space left on it.

Is it possible to create the raw file on my D:\ ?
[Samsung Galaxy Nexus] pdppdp:
Well it should prompt even with root.

Gesendet von meinem Galaxy Nexus mit Tapatalk
[Samsung Galaxy Nexus] w0dash:
Of course, you can change the directory with "cd" befor you run netcat on your host.

You just have to look how your other drive is mounted in cygwin.
[Samsung Galaxy Nexus] panni:
For those with problems using the nc.exe, this heavily improved version by nmap works very well and won't be detected as a virus (as with some nc.exe variants with -e option):

http://nmap.org/ncat/

You have to use ncat.exe instead of nc.exe in the second terminal though.
[Samsung Galaxy Nexus] mr.dime:
Hi Panni!

I don't know even how to thank you!!!:)

I spent almost 2 weeks, trying to solve my problem (with 0 B 0:00:00 [ 0 B/s] [<=> response). I spend dozens of hours reading heaps of docs, but without success. And finally I read your post!

I had downloaded nmap pack and just copied everything into cygwin\bin folder. I had used ncat instead of nc in the second terminal window (as you wrote) and finally it worked! I've managed to copy mmcblk0p8.raw from the phone to my laptop!

Thank you! Thank you really a lot!!!
[Samsung Galaxy Nexus] djg5125:
I'm currently stuck on the process using cygwin.

When I type in the first string for adb forward tcp:5555 tcp:5555 I get an error saying -bash: adb: command not found

Does anyone know how I can fix this and get through the rest of this tutorial?
[Samsung Galaxy Nexus] pdppdp:
Adb is not in the path. You can google it. Or I can tell you how in few hours (no machine right now).

Gesendet von meinem Galaxy Nexus mit Tapatalk
[Samsung Galaxy Nexus] csbhanu:
Problem retrieving Samsung Galaxy Mini Camera Pics

Dear Sir, I accidentally deleted camera pics from phone (Samsung Galaxys3 Mini gt-18190n), followed all steps for data recovery but still not getting camera pictures , see tons of junk pictures being retrieved but not a single from camera. I retrieved from mmcblk0 and mmcblk0p25 blocks. Any suggestions where can I trace them , I have extracted an searched in all block under dev/block
[Samsung Galaxy Nexus] sersoft2:
I tried this method after a factory reset on a SGS III and a Galaxy S II x both were fully formatted and no data was recoverable. Damn it Samsung...
[Samsung Galaxy Nexus] colakzd:
thanks
[Samsung Galaxy Nexus] MaYaKMC:
Help!!! Please!!!

Hi to everyone. I got a phone philips w336 android. Did twice reset to factory settings, after which kept one contact in the phone. Received list_of_gnex_partitions.txt. Pulled from the phone all the blocks. Mount the computer could only those with larger capacity 12mb. I scanned them up using Recuva. I'm frustrated and don't know what to do((( there't find any contacts file contacts2.db or contacts.db. I really need my contacts. Binding to a google account was not... please Tell me is there any possibility to solve my problem!? Thank you!
[Samsung Galaxy Nexus] AIBOT221:
I had the same issue, couldn't get Disk Management to Initialize the virtual disk so that I could view it through the explorer. I ended up downloading ReclaiMe [reclaime.com/download.aspx] and once I launched the program it instantly recognized the Virtual Disk and I was able to scan and view all of the files in the VHD.
[Samsung Galaxy Nexus] vercus:
Information for those, who are having troubles with mounting the "vhd" image in windows (vhd service stopped or smth), just like I've had - you can skip this, using an "r-studio" program - it allows you to work with a hard drive image directly - so you just open the image in the programm, and start scanning.

Sorry, if this information doubles any other previously posted information - i could not fould it, so, decided to post.
[Samsung Galaxy Nexus] GaRzY:
Nc 0kb solved!!

Hi, I was another ho have 0KB NC error, and the problem was that the busybox aren't correcly installed. The first thing you have to do it's call to busybox command from adb shell for test it's the command it's correcly executed (as example image).

When I have the problem, busybox command shows noting, then, I decide to flash another room for my Galaxy S4 (bye bye CyanogenMod), and then, install busybox again. busybox or system/busybox must shot a lot of text (as you can see in the image).

Hope you help

(sorry but It's my first post and I don't allow to link external imgs)
[Samsung Galaxy Nexus] xperator:
man I went through all this but I couldn't recover my pictures :( they were there but they were about 20kb each and they were so small.

my stupid friend deleted my camera gallery by accident and now all my pictures are gone... :(
[Samsung Galaxy Nexus] freshes:
totally crap, didn't touch anything on my phone, nothing overwritten, but still I only can find useless images from the cache . Do not waste your time and skip this method.
[Samsung Galaxy Nexus] demonunter:
Tiny files!

Hello to all! About 2 months ago I managed to do this guide successfully (after days of trying). Though I got a ~28GB file, but didn't have any of my deleted photos in it, I at least was content to succeed accroding to this guide.

Anyway, now I am trying to make it for a friend, and all I get are small 55-66 BITES files! I also tried to do it with my phone again, and get the same problem (may be important to say that a couple of days ago I "Triangled Away" my device and "Full Unrooted" it with SuperSU, and now rooted it again for the purpose of the guide.

What is wrong??

Thanks!

demonunter

OK GUYS I FOUND THE PROBLEM AND SOLUTION (MIGHT BE EXTRA NON-NEEDED)!

1.GO TO APP MANAGER, ALL, AND DISABLE ANYTHING CONNECTED WITH "KNOX" OR WITH THE SAME ICON, AND "SECURITY POLICY UPDATES".

2. IN CYGWIN ENTER THE COMMAND LINES INCLUDING THE "su" LINE AFTER "adb shell", AND GRANT THE SU PERMISSION IN YOUR PHONE.

WALLA! IT WORKS.

(only 2 might be needed. Also probably shpul use cygwin terminal "as administrator").
[Samsung Galaxy Nexus] DeaDkeD:
I need help

plz help me i did all what list says but device is not found i check it already 5 times all works but still device not found
[Samsung Galaxy Nexus] patgat:
Get 0 Bytes accessing Android 4.2.2 data

Hello,

I think I rode about the 80 pages of this Thread.... and began by the installation described on the first page of this forum.

Tried everything with my S4: ,

rooted,

USB in debug mode,

Su Shell command,

used Ncat instead of Nc in the second Cygwin,

Shut down a lot of time my Samsung S4 etc..

but can't get anything else than

0 Bytes=> (please have a look to the screen shot attached)

It is said that the "aim computer refused the access".

:crying:

Can somebody help please?
[Samsung Galaxy Nexus] CookieHD:
advice

Hello all,

i am new on this forum as member but i used many of advices from this forum without asking. Now i have problem with my girlfriend HTC One, she lost 300 photos from her smartphone, i tried to recovery it or find solution how to recovery. I read replays but do not know if it is good idea to use this solution to recovery data, because for bootloared unlock is needed to wipe data. I am not sure if it is good idea to recovery 2 times deleted photos form internal memory.

Please can somebody advice if it is good or bad idea to use this solution ?

HTC One android 4.2.2 from French bought 2 months ago

Thank you and excuse me for noob post... :/
[Samsung Galaxy Nexus] patgat:
Solution founded port 5037

Hello,

Here is something which can interest all S4 Samsung 4.2.2 owners.

Have a look to the image in attachment.

When I try port 5555 on server I get 5037

I could get my file mmcblk0p2 with ncat 5037....

:good:
[Samsung Galaxy Nexus] gino100000:
Cmd wont connect to cygwin folder

Hello there. I need some help if somebody can please. I have a GALAXY S3. I did everything and i have extracted the raw image but because my C: capacity is low i did that on a different partition. When i try to enter the cygwin foder on cmd it wont go in there. All the rest of the process had no problem. ps: my system is windows 7.
[Samsung Galaxy Nexus] green_reaper:
partition issue

how do i find out which partition i need? i have a sprint galaxy s3 and i cannot find a list of partitions for the system data
[Samsung Galaxy Nexus] britoso:
Check my post for the command to list partitions. It may work for you too. Find the one whose size matches your internal memory size.
[Samsung Galaxy Nexus] green_reaper:
unfortunately i cant find that post or the command that will list my partitions is there an app i can use or something to list the partitions on my phone?
[Samsung Galaxy Nexus] britoso:
Here it is: http://xdaforums.com/showpost.php?p=48268651&postcount=822

This is the command:

find /dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \;
[Samsung Galaxy Nexus] green_reaper:
so just to be clear i enter that line of commands into cywgin? or into cmd.exe? and that will list the different partitions on my device?
[Samsung Galaxy Nexus] britoso:
run that in an adb shell. "adb shell". You need adb working first
[Samsung Galaxy Nexus] green_reaper:
ok

ok ill message u to make it a quicker easier process and when i figure it out ill post it here for other galaxy s3 NON i9300 users
[Samsung Galaxy Nexus] s2503:
can someone please tell me if steps listed on page 1 work for recovering pictures on samsung galaxy s3? thank you!
[Samsung Galaxy Nexus] Sylvia German:
Hi,

I connect my Samsung Galaxy s4 with an USB Cable to my laptop. When I write "adb shell" I get following message:

error: device offline

Can anyone please help me?
[Samsung Galaxy Nexus] clickpop:
Raw File Seems too Small

First, thanks for this incredible tutorial.

I'm running into a weird problem and am sure I'm just doing something stupid. I have recovered my whole block in a 15GB raw, but when I attach the VHD it's showing a volume with a capacity of 64mb and 21mb of free space. Any help would be much appreciated.
[Samsung Galaxy Nexus] pdppdp:
Did you look into the drive/ folders? Maybe it's just an error from disk management.

Did you have any other problems during procedure?

Gesendet von meinem Galaxy Nexus mit Tapatalk