yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] LoScienzo:
Transferring issues

My phone randomly disconnects while transferring data, making it impossible to recover the entire partition... what is the problem there?

Details:

data transferring stops and shell gets closed, the command line goes back to the inital state of

User@Computer ~

$ |

when i try to reconnect the device without unplugging and replugging the cable, if i type "adb forward tcp:5555 tcp:5555" cygwin returns the error "Device offline" twice.

if i don't unplug the cable immediately, my phone freezes and then reboots;

Edit: i just managed to trasfer 3,84GB (last try was 1,02GB)... that is an improvement, but i still need to get my whole 11,4GB partition on my pc. The transferring process was stopped the same way as the last trials.

Any help is highly appreciated
[Samsung Galaxy Nexus] Marmalize:
Hello guys!

I need to ask something but before i asking, i need to say sorry if my english was bad since its not my native language :D.

Okay to the questions, I'm trying to recover my apps database after i unlock bootloader on my motorola moto g xt1033, when i run the command on first terminal it give me this reply:

$ adb shell
shell@falcon_umtsds:/ $ su
su
root@falcon_umtsds:/ # /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p36
-p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p36 <
dd: writing 'standard output': Connection reset by peer
26+0 records in
25+0 records out
12800 bytes (12.5KB) copied, 0.006740 seconds, 1.8MB/s

And as the tutorial says i open the next terminal and type the command it give me this:

$ nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p36.raw
0 B 0:00:00 [ 0 B/s] [<=>

Am i doing something wrong? Busybox installed properly on xbin and I'm using cygwin 32bit with nc, pv, util-linux downloaded via cygwin setup, and i already checked using whereis command for nc and pv its installed properly too, what should i do? Do i need a internet connection to transfer data? Since both of my laptop and devices using Wi-Fi connection, awaiting for advices, once again sorry for my bad english :D, Thank you.
[Samsung Galaxy Nexus] Prasourabha:
Simply follow this guide

https://www.youtube.com/watch?v=MI4asuFS3BE
[Samsung Galaxy Nexus] S1ikIfy:
Does this work the same for Samsung Galaxy S6 with Android 6.0?
[Samsung Galaxy Nexus] gs6e:
Samsung Galaxy S6 Edge

Hi there,

I followed complete process and successfully created 64GB .raw file and then windows partition. I tried to recover data from .raw file with photorec but nothing recovered then created windows partition and tried Recuva tool, again nothing recovered :( before asking question(s) here is brief story:

I own Samsung Galaxy S6 edge (Android 6.0.1) and had fingerprint as well as password security. For long time my phone didnt restart so I forgot my password and then last week it did restart and refused to accept my fingerprint and kept asking password. I tried all possible work arounds (google, samsung find my device etc) but nothing helped. Then I tried Dr.Fone application it couldn't unlock the screen and bricked my phone during recovery process, then I had to use smart switch to initialize the phone. After that the phone was unlocked but offcourse all data gone. I switched off my phone and searched internet. First I rooted my device and then saw this forum for data recovery and followed the process but nothing recovered (not even one single photo). The internal memory of my phone was over 95% full out of 64 GB.

1. Does smart switch application and/or Android 6.0.1 factory reset overwrite complete phone memory inorder to permanently delete everything or it simply flag space as free? Anybody aware of the process ?

2. If it is only flag and not overwrite then is it possible that data got permanently deleted because of rooting and keeping the phone switched on for some time (max. 1 day) without downloading /installing anything other then what was required for rooting and for this recovery process? I mean it is 64 GB and I was expecting to recover atleast half of the data. I am very sad :crying: .

Thanks for reading and helping out.
[Samsung Galaxy Nexus] evilzombie96:
Hey i tried using undeleter, but it didnt recover any images or videos from my formatted phone. So i was wondering if extracting the .img of my phone will do any better?
[Samsung Galaxy Nexus] evilzombie96:
http://imgur.com/a/tj19R

This is the result i get after putting in all the codes, as there was no action from cygwin, have i done anything wrong? Can anybody guide me the correct way to extract the file?
[Samsung Galaxy Nexus] niranxda:
cant identify my drive name or getting 0kb of raw file

hello,

pls help me iam trying to get recover some lost files from my motorola g3 internal memory. i have successfully attached my device followed the steps but iam not able to get raw file correctly

i have attached my phone's internal memory details in a text file

pls help asap

coz its my friends phone and i accidently formatted it :((
[Samsung Galaxy Nexus] ctnky:
guys i have zero knowledge about cygwin and i can't even complete the setup. can you explain the steps like you talking to a child please :)

i have to recover the data. my 10 year old sister lock with a pin the phone and forgot the pin, every single photo and video from my cousin's wedding in there, our family waiting me for recover these stuff. i tried to unlock or bypass the pin but i can't, so i thinked that if i flash stock rom then i can connect the phone via usb and recover like an flash drive with file scavanger. but it cannot recognized like a flash drive as you know pc says its a phone so i can't recover a single thing. so i found this guide but i don't understand what i read and i want to get over the dumb feeling so please help me :(
[Samsung Galaxy Nexus] chronicels:
I felt sa bad for what happened to my photos stored in my internal memory when I accidentally deleted it until I saw this post. It was really amazing how you discuss the topic and I understand it. Actually I really I think did it and follow the steps the problem is, I think the photos are already gone :'( To summarize what happened:

My system

Android lollipop 5.1

I installed the wrong zip framework at TWRP custom recovery. When I rebooted twice, stuck on logo. When I try to backup I saw my data 0mb? Contacts, Sms and photos internal all gone! :'( I insist the backup maybe it is just a glitch. Done backing up, tried to wipe data, dalvik cache etc in order to boot up problem but no luck. So no choice until I use the sp flash tool to format + download its stock rom. Its all good after the flashing thing but the problem is, after I restored the backup I made before the data is REALLY gone. So what really happened here, by installing the wrong zip made my data corrupt? I tried also this procedure but cannot seem to recover those files. My question is, can this procedure recover files that has been formated and flashed by sp flash tool? If yes maybe I am restoring the wrong partition? I tried the command cat /proc/emmc to see the partitions and I even tried all the partitions one by one but no luck. Hoping someone could help me. I even tried disk digger and some android data recovery tools at the web but no luck. Thank you in advance.
[Samsung Galaxy Nexus] paul2834:
Was running into the same issue and this fixed it. The first cygwin console was waiting for the second for too long. So the right move is to have both final commands typed in and then enter one after the other so that wait time is minimalized.

I hope I recover my wechat logs, images, and videos now. I have Android 4.3, so TRIM might have gotten to them already. I'm about to see...

EDIT: Just to be clear, my issue was getting 0KB raw image files and the cygwin saying connection was rejected by peer.
[Samsung Galaxy Nexus] that lost guy:
Thanks a lot, it worked on my moto g osprey. Although, I could recover only a handful of photos among thousands lost but that was due to I had already started using the device. Wish I had found this earlier.
[Samsung Galaxy Nexus] paul2834:
Well, here's my update. No useful photos were found so far. Testdisk showed nothing and Photorec was taking forever to run and didn't recover anything I wanted from wechat. I had to stop prematurely to catch my flight.

Related question. Anybody know if the raw file that gets generated here can be used to restore our phone? My note II is crapping out hard and it's stuck at the Note II logo screen and can't boot into recovery. Download mode seems to work though, so I'm considering flashing an official stock rom, but then I would lose all my data. Anybody know if the raw image file we make here can be used as a backup? I don't have other back ups to fall back on.
[Samsung Galaxy Nexus] o santo:
Did you find out any solution? I have the same problem.
[Samsung Galaxy Nexus] xoxoJI:
dears,

i stuck on converting raw to vhd. i only receive 2mb file.vhd from my 15Gb phone image.

any suggestions will be appreciate
[Samsung Galaxy Nexus] adityananda95:
thus us what my terminal is showing when i am putting the commands as told.

Aditya@Aditya-PC /cygdrive/c/Users/Aditya/Desktop

$ adb forward tcp:5555 tcp:5555

/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk 0p12bash: adb: command not found

Aditya@Aditya-PC /cygdrive/c/Users/Aditya/Desktop

$ adb shell

bash: adb: command not found

Aditya@Aditya-PC /cygdrive/c/Users/Aditya/Desktop

$ /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12
[Samsung Galaxy Nexus] Mentalists:
Does this works on Micromax A311 4.4.2?
[Samsung Galaxy Nexus] Mentalists:
Unable to find VHD

Can anyone please provide link of VHD tool i need it for recovering data from my phones internal?

:fingers-crossed::good:
[Samsung Galaxy Nexus] ThomasAn:
So, guys, this method will not work on Android 6.01 ?
[Samsung Galaxy Nexus] adamo000:
I found in 10s with google.

http://www.techieshelp.com/downloads/VhdTool.exe
[Samsung Galaxy Nexus] Hillterpty:
Thanks for your topic , the Android internal memory data recovery tool can help Android user to get lost data and missing files on phone memory ,
[Samsung Galaxy Nexus] bilmenegerekyok:
I'm using Sony Xperia E4 with Android v4.4.4. Please help me I want to rescue my deleted photoes but I cannot.
[Samsung Galaxy Nexus] Knasttker:
Thanks this topic , we can lean more about how to recover data from memory
[Samsung Galaxy Nexus] shatheone:
im getting an error in cygwim that i dont get when using adb in cmd prompt. it says adb server out of date, after killing it,it then says device is offline.

EDIT: ok i was figured that out, so now the issue im having is the mmcblk0p12 file has 0 kb, im copying from a moto g
[Samsung Galaxy Nexus] shatheone:
iim having an issue at the first command, it seems that its not dumping the file no matter what command i use. i have a screenshot here what it does when i try the command. im not sure if you need to type adb shell and then su separately from or to include it right before the command /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12, either way it doesnt dump the raw file
[Samsung Galaxy Nexus] shatheone:
my phone doesnt have an sd card slot
[Samsung Galaxy Nexus] shatheone:
is there any way i can check to see if the data is still there? i havent been using my main phone for a few weeks just so the data doesnt get overwritten, but i want to make sure im not doing that for nothing.
[Samsung Galaxy Nexus] luipaard:
Just tried

I could finish all the steps:). Very great guide. In my case I've tried to recover the userdata partition of my Huawei Y5 II (CUN-L03) to get back my notes from stock Notepad app (HwNotepad.apkp from /system/priv-app/) and personal photos and screenshots, but I only got stuff of my telecom and a file with about 260MB with rare symbols, I didn't could open it but well. Maybe Huawei phones are different instead Samsung devices :). Thanks, was interesting doing that.

Finally, files of my recovered userdata partition:

http://imgur.com/a/gfJhd
[Samsung Galaxy Nexus] mankidavu:
Tried it today for a sony xperia z3+ phone data recovery. I was stuck with 0 byte .raw file. Later found out the issue was with cygwin 64 bit. So, people getting 0 byte files, should check 2 things.

(1) cygwin version.

(2) nc.exe version.
[Samsung Galaxy Nexus] Debini:
All you have to do is download the program online or by going to their website and install it on your computer. In just a few clicks and a little patience, you can recover lost data in lesser time.

You can recover deleted messages from yours Android smartphone and memory SD card.Hereare some advice, I hope that can help you soon, then you can follow the steps shown below:

Option 1.Recovering Your Messages from the Internal Storage

Step 1.Download and Launch the Toolkit - Android Data Recovery

Step 2.Prompt and Debug

Step 3.Select Needed Massages

Step 4. Select the Mode Option

Step 5.Preview The Scanned Data and Recover Them.

Option 2.Recovering Your Messages from Your Android SD Memory Card

Step 1. Launch FoneDog Toolkit.

Step 2: Connect Micro-SD Card to PC/laptop.

Step 3: Scan Your Device to Find Data on Your SD card.

Step 4: Review The Scanned Data and Recover Them.

Option3.Recovering Deleted Messages from Broken Android Devices

Step 1. Connect Your Android Device to Your Computer.

Step 2. Choose the Data Types From the Damaged Device.

Step 3.Preview and Select Messages You Want to Recover

Hope it can help you sooner.
[Samsung Galaxy Nexus] qudamahlinux:
Guys, anyone know how to extract system.img file from the .raw backup file? i searched everywhere and there is nothing!
[Samsung Galaxy Nexus] M_hack!:
hi

first download vhd link : download

copy to same folder of .raw file then right click on folder while holding shift key down and select "Open Command window here " then type this to convert .raw file to vhd file

" VhdTool.exe /convert File.raw "

then after convert rename .raw to .vhd

Now we need to mount the VHD in Windows. Select the Start button-->right-click Computer-->select Manage.

Select Storage-->Disk Management.

In the menu select Action-->Attach VHD.

For Location someting like this [c:\cygwin\nexus\mmcblk0p12.raw] and select the OK button.

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

Select the MBR (Master boot record) radio button and select the OK button.

and then install Active file recovery "Download" and Finally recover your files !!
[Samsung Galaxy Nexus] qudamahlinux:
Thanks! but i opened it with 7zip and everything went okay.
[Samsung Galaxy Nexus] mahima11:
Helpful Article

Thanks for sharing with us.. It is really helpful.

Regards
[Samsung Galaxy Nexus] DropsNH:
hello guys, does anyone could help with data recovery?

what command should i type to discover partition name

my phone is zuk z2 pro on ufs.2.0 memory , when I type

find /dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \;

nothing happpend ( maby some extra space or doesent work form my phone)

only when I type

adb shell

cat /proc/partitions

shows me this

cat /proc/partitions

major minor #blocks name

7 0 98304 loop0

254 0 524288 zram0

8 16 4096 sdb

8 17 4052 sdb1

8 0 120602624 sda

8 1 8 sda1

8 2 32768 sda2

8 3 262144 sda3

8 4 1024 sda4

8 5 512 sda5

8 6 128 sda6

8 7 128 sda7

8 8 512 sda8

8 9 393216 sda9

8 10 119912140 sda10

8 48 131072 sdd

8 49 32 sdd1

8 50 4 sdd2

8 51 1024 sdd3

8 80 32768 sdf

8 81 2048 sdf1

8 82 2048 sdf2

8 83 4 sdf3

8 32 4096 sdc

8 33 4052 sdc1

8 64 4194304 sde

8 65 512 sde1

8 66 512 sde2

8 67 2048 sde3

8 68 2048 sde4

8 69 512 sde5

8 70 512 sde6

8 71 2048 sde7

8 72 16 sde8

8 73 512 sde9

8 74 512 sde10

8 75 97280 sde11

8 76 16384 sde12

8 77 1024 sde13

8 78 32768 sde14

8 79 1024 sde15

259 0 1024 sde16

259 1 65536 sde17

259 2 3145728 sde18

259 3 65536 sde19

259 4 4 sde20

259 5 1024 sde21

259 6 512 sde22

259 7 512 sde23

259 8 256 sde24

259 9 256 sde25

259 10 256 sde26

259 11 256 sde27

259 12 256 sde28

259 13 256 sde29

259 14 4 sde30

259 15 33424 sde31

259 16 2048 sde32

anyway guide by Wartickler generate .raw file in cygwin/zuk folder but 0 kB, so it is close to final result.

I've try to type diffrent kind of names like mmcblkp0, mmcblkp13 etc. but still nothing

----->on first terminal i typed:

adb devices

List of devices attached

561f5195 device

adb forward tcp:5555 tcp:5555

adb shell

shell@z2_row:/ $ su

su

root@z2_row:/ # /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p13

in/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p13 <

dd: can't open '/dev/block/mmcblk0p13': No such file or directory

------>second terminal

adb forward tcp:5555 tcp:5555

cd /zuk

nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p13

0 B 0:04:44 [ 0 B/s] [<=>

Is this a matter of partition name or something else

Phone zuk z2 pro rooted

cygwin 32bit

pv , nc - on board

busybox installed on /system/bin/

adb installed
[Samsung Galaxy Nexus] a7madhazim:
Big Problem!! Please help

The big problem is that the process took less then 1 second!! The extracted file size was 0 bytes only!!

Please help!! Is there something I can do?
[Samsung Galaxy Nexus] CrazyKoala:
It really is slow to get the copy, way more than 3hours. Is that normal ?

Its soo slow that ultimately my phone crashes before even completing the transfert of 24GB :(
[Samsung Galaxy Nexus] CrazyKoala:
I finally for my raw file and been able to mount it and scan it, but something strikes me weird.

not ONE single file is set as DELETED. Not one. I found that weird, as if the raw image doesn't actually include deleted data, hence it's not really RAW dump at all, but merely a mirror of the existing "clean" data on the phone :(
[Samsung Galaxy Nexus] erikwang:
thanks for tutorial.

Anyidea with Bash:pv:command not found.

It have create a raw file in the nexus folder but the size is 0 bytes.
[Samsung Galaxy Nexus] nwillo:
Solution for 0kb raw file

I had the same problem with the mmcblk0p**.raw file being 0kb.

After testing many cases, i found a work-around. It might not be the only solution, but it worked for me.

**Note**

I am a beginner in using xda, so, i hope you can excuse me the formatting of my reply.

********************************

When i was searching through the comments, i came across one where the user was successful by using a 32-bit system. So, i tried it and it worked. I am currently using Windows 10 Built 1709 x64. So i installed virtualbox in my pc, installed a Windows 7 32-bit guest-os and performed the steps in this discussion.

I m using Samsung Galaxy Note 3 Neo (N750) - Lollipop 5.1.1

Here's what i exactly did:

1. I installed virtual box and hosted a windows 7 x86 guest on my underlying Windows 10 x64.

2. Installed Cygwin and all the other dependencies as mentioned in this thread by Wartickler.

3. Then i ran this:

adb forward tcp:5050 tcp:5050 //I used 5050 instead of 5555 because it was causing an issue of -> nc:bind:Address already in use
adb shell
su
nc -l -p 5050 dd if=/dev/block/mmcblk0p21 //In my galaxy note 3 neo (n750), the userdata was under mmcblk0p21. There are is a link below on how
//to find your phone's userdata partition name

4. After running this code, open another cygwin terminal and run this:

adb forward tcp:5050 tcp:5050
nc 127.0.0.1 5050 | pv -i 0.5 > mmcblk0p21.raw

5. The process will start. You will have to wait for a few hours. It takes quite some time to create the raw image.

As i write this reply, the raw file of my is being created in the background.

I was quite impatient to wait to reply, so i did it before i completed the entire process. But i hope this helps, at least to get the raw file.

I will reply back once i am successful in extracting the raw file.

Link to find your userdata partition name:

https://xdaforums.com/galaxy-nexus/general/info-list-samsung-galaxy-nexus-gt-i9250-t1743872/page4#post75131547

Go to reply #37. i have added steps in the that reply.

I hope i could help :good:
[Samsung Galaxy Nexus] Hilmesh:
Hello all. I am trying to recover my lost data due to a factory reset which i had to do because of encryption issues on the latest nougat to Oreo update of Oxygen OS 5.0 on Oneplus 5. Although i have been using my phone as i have no choice being a daily driver but then it is on minimum usage and i dont mind even if i lose some data. I have followed all the steps listed here and have been able to get raw image of the Userdata partition on Oneplus 5 which i believe is "sda13". Then i tried various methods but could not get anything out of it. Now I am trying to get the complete space having the name "sda" which i believe must be almost equal to the full 128GB. Although my phone does show that "Shell has been granted Superuser rights" but i do not get the command lines like others do here. after putting the commands "adb shell" and "su" I am not sure why. My phone is rooted with Latest Magisk and root is working fine. Please see the photo

EDIT:

Although the command prompts remain as they were before but i was able to get the raw image for SDA & SDA13 in the oneplus 5. Now can someone please advise on what steps should i follow next as there are multiple variations in the thread and i am not sure which one to follow.

any help is highly appreciated as all i want is to recover photos of my kids if at all possible. Fingers crossed.
[Samsung Galaxy Nexus] 1st.oneplus:
convert the raw dump

I'm having trouble finding a tool to enable me convert the raw jump on MacOsx. I can use the VHDTool.exe (windows program) listed.
[Samsung Galaxy Nexus] xda_forums_account:
Dump the disk raw data over USB

There seems to be much easier and faster way to copy the whole block device over USB:

"Android SDK Platform-Tools is a component for the Android SDK. It includes tools that interface with the Android platform, such as adb, fastboot, and systrace. These tools are required for Android app development. They're also needed if you want to unlock your device bootloader and flash it with a new system image.

Although some new features in these tools are available only for recent versions of Android,

the tools are backward compatible, so you need only one version of the SDK Platform-Tools.

if you want these tools only, you can download the package with the following links:

Can not share yet links on the xda forums so search the official android(.)com site for the Android SDK Platform-Tools and download the one for your OS"

I did use the Windows version so here is the command that I used after unpacking the "platform-tools-latest-windows.zip" to my drive C: \ and going into the folder it contains the adb.exe:

C: \platform-tools_r27.0.1-windows\platform-tools> adb shell su root cat /dev/block/mmcblk0 > C:\mmcblk0.raw

Make sure that the mmcblk0.raw is saved to a drive with sufficient free disk space!

Be patient when you run the command sequence, because the CMD window in Windows OS won't show anything while it's "creating" the mmcblk0.raw file, it will just show a line break in the cmd window and seem to provide no response as it processes your command. And you'll know it's finished when you get a fresh line to enter a new command. You can check saving process by opening Windows Explorer and you will notice that the mmcblk0.raw file quick size increase!

The process of saving over USB is much faster and easier and doesn't require rooting, any additional packages such as nc, pv, Cygwin OS and WiFi connection.

The saved raw disk data can be than parsed and the data recovered by tools which can directly handle the raw disk dumps.
[Samsung Galaxy Nexus] _Raziel666:
I have been trying for the last week to follow this guide on my 1+1 but without luck, as the most I get is a file with 0 size.

I thought the other day, why shouldn't "adb pull" work, and while it didn't work inside Android (insufficient permissions or something), it worked flawlessly from TWRP. But after that I haven't been able to use VHD tool or mount the raw image on Windows.

Also, in your command line you are using "su", so I guess you must be rooted?
[Samsung Galaxy Nexus] xda_forums_account:
Oh sorry, you are right I do have a root app installed on the phone from the Play Store, my bad.