[One (M7) Q&A, Help & Troubleshooting] GearX:
I'll just help myself and other users which may have the same problem some time ;)

http://xdaforums.com/galaxy-nexus/g...emory-data-recovery-yes-t1994705/post34185439

That helped me a lot and I've taken some parts of it. Here is a short version:

This is a little how2 get the raw out of your smartphone partition. As an example I take my htc one m7

1) download Google SDK

2) make sure all drivers of your smartphone are installed (including adb)

3) download cygwin (install to c:/cygwin)

4) download netcat (extract only the nc.exe to c:/cygwin/bin)

5) make sure usb debugging is enabled on your device

6) create a folder for the raw to cygwin (e.g. c:/cygwin/One)

1st step => make the raw file

Install cygwin. in the packages window you need to search for "pv" and "util-linux" in the repo windows. If you don't you will have trouble.

Before you start operating you should know that if you have a display lock you should disable it for the time of the backup process.

Now start up 2 windows of cygwin. The first command in both windows must be:

$ export PATH="/cygdrive/[B]c/ADB/[/B]sdk/platform-tools":$PATH

the fat marked part is various and depends where you have unzipped the adb so you need to change it for your usage.

Next step is that you need to make a txt file on your device to see the partition table and decide which partition you need to choose. To make that textfile you simply type into one of the cygwin windows:

adb shell

then:

su

then:

find /dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \; > /sdcard/list_of_dev_partitions.txt

then exit shell:

exit

Now search on the root of your sdcard a file named

list_of_dev_partitions

. You found it? great! Open it and search for the partitions address you want to backup. In my case it was the whole /data partition with the address /dev/block/platform/msm_sdcc.1/mmcblk0p37

So the next step was to open the tunnel for a disk dump by typing

adb forward tcp:5555 tcp:5555

then

adb shell

then

su

then

/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/[B]block/mmcblk0p37[/B]

And again you need to replace the fat marked part with you partition path or otherwise it won't work! For my HTC One M7 it looks like this /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/platform/msm_sdcc.1/mmcblk0p37

Samsung or LG phones have another path. Always keep that in mind.

Now switch to the second cygwin windows and type

adb forward tcp:5555 tcp:5555

then

cd /[B]One[/B]

then

nc 127.0.0.1 5555 | pv -i 0.5 > [B]mmcblk0p12[/B].raw

fat typings => use your personal data!!!

If you did everything right then your second window of cygwin should display something like this:

If it says 0 bytes then your partition path is not correct. You may have a typing failure. Check everything! If it works => congrats now go and drink some beer with friends. 27GB take about 2,5 hours to backup!

2nd step => make it workable

When the backup process is done then do following steps on Windows:

1) click start

2) right click on computer

3) click Manage

4) select any storage and click on disk management

5) "add virtual partition"

6) as location enter the path of your raw (select "show all files" ;) )

7) right click on new partition -> initialise

8) select partition table button & hit OK

9) right click on on the partition and make a new volume

10) leave the volume size, select a untaken drive letter, "do not format this volume" -> hit okay

11) open explorer, right click on new volume, quick format it in FAT32

3rd step => recovery!

Now your backup handles like a "broken" SDCard in your computer. For the data recovery I recommend test disk for recovery because you can choose many file formats to recover. You can also try with Piriform Recuva but I had the best results with test disk. That tool is available for many OS :good: