yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] arabcamel:
Need help with this process

I follow the instructions and in the 2nd cygwin terminal window, I enter in the nc 127... and the file size remains 0 B. What am I doing wrong? I attached a picture of the window i'm referring to, if it helps.
[Samsung Galaxy Nexus] skyguy126:
Can anyone upload VHD tool here for me. It seems MSDN stopped hosting it. Thanks!
[Samsung Galaxy Nexus] hturbulence:
Can't access partitions

I did this on my S3, but I did it on partition mmcblk0, which presumably is the entire storage of the phone. After mounting the drive in windows disk management, I see about 10 partitions (labeled "healthy primary"), but I can't do anything with any of them. The only partition that I can do anything with is the 9MB unallocated space, as in the directions, but there isn't anything there.

Has anyone run into this? Any ideas on how to access the other partitions, such as the 12.25GB partition that probably has all the data?

And the reason I did mmcblk0 was that I got nothing when I did the extraction on what I thought was the userdata partition.

Thankks!
[Samsung Galaxy Nexus] skyguy126:
No because the original partition table is gone. That's all you get i'm afraid, better something than nothing. You can go ahead and restore those files though.
[Samsung Galaxy Nexus] skyguy126:
Just for reference, I did a /data dump on my 64GB OnePlusOne and it took 2 hrs, 37 mins, and 44 seconds. I was using the stock usb 2.0 cable plugged into a usb 3.0 slot. My HDD is a 7200 rpm drive.

---------- Post added at 06:56 AM ---------- Previous post was at 06:44 AM ----------

So i followed the guide and everything went well but the restore program scans in 1 second and says no files found. Any idea on what might be going wrong?

EDIT: I got disk digger and scanned the raw file and it worked. I think there might be an issue with the mounting.
[Samsung Galaxy Nexus] s7537:
Recover SMS after unlock bootloader

Very Important i figure this out.

I needed to restore some SMS messages that i deleted peiodically on my HTC Ruby/Amaze 4G running android 2.3.4. So I found out that phone needed to be rooted before using any recovery software like dr.fone etc. So got the phone rooted, which first required bootloader unlocked. So after unlocking bootloader and rooting the device, i was shocked to see that everything from the phone was gone like all messages, contacts, call history, apps, setting. Only Photos & Videos were still there.

So now the dilemma is i need all the SMS messages back, is there still a way to recover these. No software like dr.fone can find any messages that were on the phone prior to unlocking bootloader .

ANy help would be appreciated as it is very important get those sensitive messages back
[Samsung Galaxy Nexus] skyguy126:
Just dump the partition and use diskdigger to scan the raw file. Unfortunately I do not know how text messages are saved.
[Samsung Galaxy Nexus] Doofusfire:
Exactly the same that I am experiencing - only thing different to the guide is I am using windows 8.1.

I am following the guide exactly - work in IT used to following a process I have restarted the process from scratch including reinstalling cy etc.

Any help would be appreciated - Trying to recover photos of a father no longer with us.
[Samsung Galaxy Nexus] carl1961:
What make and model phone you have any to make sure internal s_d card is the right number
[Samsung Galaxy Nexus] mechlord:
I tried this and had a couple of snags:

The linked netcat didnt work for me, so i had to use the one from cygwin.

After that, followed the tutorial right up until STEP 12.

While i was reading over and over again the rest of the tutorial, my disk management auto updated to look like the image below.

[IMG="Capture"]http://i.imgur.com/fB9bviM.png[/IMG]

Now i dont know what to do, because i dont really want to lose the files.

Any ideas please'

---------- Post added at 09:13 AM ---------- Previous post was at 09:09 AM ----------

I think your problem is the netcat. It happened to me and it turned out to be the netcat. i just downloaded the one from cygwin itself and it worked.
[Samsung Galaxy Nexus] Doofusfire:
Hi,

the phone I am trying to recover form is a Samsung S5 - GT-I9505

I have tried various blks but the same experience every time.

I thought maybe I had a permissions issue writing to the computer hard drive but I have checked this and it seems ok.

Let me know what other information I can provide to get this up and running.

My wife's friend lost her father recently and she was unable to get to him before he passed, these are the photos she took when she last visited.

Really hoping we can get them back for her.

Thanks
[Samsung Galaxy Nexus] marcink99:
Please help Iam already mentally exhausted

I wasted multiple days on it and cant figure it out. Caffeine does not even want to keep me awake its 3:38am . I really would like to get this figured out so that I could start learning fedora 21. But I cant because iam stubborn an getting data for one of my applications after factory reset....:mad: My old phone is note 3 from what I managed to learn it uses mcblk0p26 for user data.

I tried 64 and 32 Cygwin versions.

[IMG="problem"]http://s30.postimg.org/g1pa1y0n5/pic.jpg[/IMG]
[Samsung Galaxy Nexus] carl1961:
look at your picture, looks like the first step you did not do in CGYWIN termeinal it shold have looked liker you second picture

STEP 5 Open a Cygwin Terminal and enter : with latest Cygwin Terminal You can also copy and paste the commands

Code:

adb forward tcp:5555 tcp:5555

adb shell

su (watch phone screen be ready to give SuperSu permission)

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

follow these steps to see your partitions and find your number

look at my post here and look at the pictures

make sure you have developer options usb debuggging on

then when you press su give phone super su rights,

also don't forget the other screen that pop's up giving PC permision to your phone (new security with kitkat )

http://xdaforums.com/showpost.php?p=58718411&postcount=1109

also from a windows command promt do this to verifi your getting access to your partitions

C:\Users\carl>adb shell

shell@trlte:/ $ su

su

root@trlte:/ # mount

mount

look around 35 lins down and you should see your userdata

type this command to see your number

ls -al /dev/block/platform/msm_sdcc.1/by-name

my last line is

lrwxrwxrwx root root 2014-01-01 06:00 userdata -> /dev/block/mm

cblk0p25
[Samsung Galaxy Nexus] Bokoblin:
hello, I'm with a nexus 4 stopped at step 1 :

$ adb forward tcp:5555 tcp:5555

-bash: adb : commande introuvable

what can I do ? After that what is my partition name. It is to recover photos after a "twrp-factory-resetted-my-phone-by-itself-after-erasing-a-multirom-rom" :eek:
[Samsung Galaxy Nexus] skyguy126:
Adb needs to be in your system path
[Samsung Galaxy Nexus] Bokoblin:
yes it is inside : adb : C:\Program Files\Java\sdk\platform-tools\
[Samsung Galaxy Nexus] Bokoblin:
yes it was already inside : adb : C:\Program Files\Java\sdk\platform-tools\[/QUOTE]

19:15: ????
[Samsung Galaxy Nexus] carl1961:
19:15: ????[/QUOTE]

no it has to be in your environment path

add it to the end

Mine is this, your path will be diffrent

;C:\Users\YOUR USER NAME\AppData\Local\Android\android-sdk\tools;C:\Users\carl\AppData\Local\Android\android-sdk\platform-tools;
[Samsung Galaxy Nexus] Bokoblin:
no it has to be in your environment path

add it to the end

Mine is this, your path will be diffrent

;C:\Users\YOUR USER NAME\AppData\Local\Android\android-sdk\tools;C:\Users\carl\AppData\Local\Android\android-sdk\platform-tools;[/QUOTE]

It's ok now. Added with a tiers software because didn't worked with native windows. It's normal backing up userdata partition is still unfinished at ~7 Go on a nexus 4 16go with 4.44 go free
[Samsung Galaxy Nexus] carl1961:
It's ok now. Added with a tiers software because didn't worked with native windows. It's normal backing up userdata partition is still unfinished at ~7 Go on a nexus 4 16go with 4.44 go free[/QUOTE]

the backup will take hours , you can see the time in the pictures I posted
[Samsung Galaxy Nexus] Bokoblin:
the backup will take hours , you can see the time in the pictures I posted[/QUOTE]

so after some hours and until 13 go . It suddenly go to 0byte. Well Done !! Is there any real method to extract sdcard partition and recover my files !
[Samsung Galaxy Nexus] carl1961:
so after some hours and until 13 go . It suddenly go to 0byte. Well Done !! Is there any real method to extract sdcard partition and recover my files ![/QUOTE]

look at the pictures and use to get files off image

http://xdaforums.com/showpost.php?p=58718411&postcount=1109
[Samsung Galaxy Nexus] Bokoblin:
look at the pictures and use to get files off image

http://xdaforums.com/showpost.php?p=58718411&postcount=1109[/QUOTE]

It's what I've done but the raw file resetted it. I can't restart it is 1:23 am
[Samsung Galaxy Nexus] marcink99:
Carl wow thank you. It turns out I used wrong partition name it was mmcblk0p25 not 26

I used bellow command to find correct name of it.

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

Once again I really appreciate your help and cant thank you enough. Thank you once again.
[Samsung Galaxy Nexus] carl1961:
You welcome , glad you got it going.
[Samsung Galaxy Nexus] marcink99:
could somebody recommend me a software I could use to recover .db file for one of the application I had on my phone? I tried recuva but I does not find any .db files.
[Samsung Galaxy Nexus] Wartickler:
Carl, you're awesome! :highfive:
[Samsung Galaxy Nexus] Sim-X:
This is a great write up and thank you Carl for your very helpful post I was actually trying to recover data from a Note3. Few of the issues I ran into that hopefully can help someone else first I stuck with the 32 bit version of cygwin. Make sure you follow the instructions carefully for placing the adons in the correct place. For example ADB need to be in the bin folder inside the cygwin folder. The first go around I also forgot to download the pv and util-linux from the repo during the install so that was part of my issue. Next creating the desktop shortcut opened up the right terminal for me (I skipped that first go around and Cywin.bat wasn't working for me in the cygwin folder. Once I managed to get past that, I then ran into not being able to dump the partition even know I had the right partition name. It would just show 0 bytes. I then went on the phone into busybox and had to change the default installation folder to the alternative location. Once I got passed these hurdles the dump only took an hour to dump all of the note 3.

After running the VhdTool in the command prompt which worked no problem, for some reason I was not able to mound the .raw file (even know it let me select it in the disk manager after selecting all files) It got an error and wouldn't go any further. I transferred the .raw to a laptop with 32 bit Win7, reran VhdTool for good measure and it mounted instantly. I was able to recover thousands of files from the partition. Since most of it was all junk, you can sort by file size which helped find what I wanted. Unfortunately in my case most the photos were indeed gone and most the recover was garbage that was cached. I didn't get my hands on the device till a week after it was deleted so it might have been too late. It was for a friend but still a good learning experience for me. I also tried some of those android recovery programs which they did work they found a lot of the same stuff as this method however they took way longer and froze my machine a few times and I have a decent machine. Anyone looking to recover data I suggest dumping it this way immediately then at least you have the raw data to work with as I was not impressed with the recovery programs. Not sure why I couldn't mound it on Win 8.1 64 bit cause the exact same file mounted perfect on a 32 bit 7 machine. That's just my personal experience so if someone runs into the same issues I did, I just wanted to share how I got around them. I wish they would just let you mount it without doing all this but if you relax and not rush you can work through this. Once you have the dump complete there really isn't much to it after that. Thanks again op & carl for the write ups.
[Samsung Galaxy Nexus] crytoy:
I have created the .Raw image from my Internal memory using this tutorial successively to recover deleted files from, but the problem arises because the data recovery software are only showing the files that are already there, and I need to recover the deleted files from this ext4 partition!

I have used many recovery software that support Linux partitions such as : " Testdisk, PhotoRec, R-studio, Easeus, Geeksnerds, UFS, Active Undelete ..." but I have failed, it's only showing current available files without the deleted.

I would like to note that I have not formatted my device, and I have created the dd image directly after I deleted the files.

Waiting for reply
[Samsung Galaxy Nexus] carl1961:
you need to convert the raw to a disk image

http://xdaforums.com/showpost.php?p=58718411&postcount=1109
[Samsung Galaxy Nexus] skyguy126:
Use diskdigger to scan the raw partition. Worked flawlesdly for me
[Samsung Galaxy Nexus] canna97:
Trying to find the right partition...

Hi iHack, I'm trying to find my partition following your steps but at the last step the terminal doesn't show me which names are assigned to which partitions. What can I do? Look at the photo for the details ;)

Thanks a lot,

canna97
[Samsung Galaxy Nexus] carl1961:
install attached Diskinfo (phone needs to be rooted)

touch the three dots top right /settings/ and check the box's to view other partitions
[Samsung Galaxy Nexus] crytoy:
carl1961 thanks for replying.

I have used Diskdigger pro and still not finding what I want, and I have also mounted the raw as VHD and still the recovery not showing the files that I want.

Please note that I am trying to recover files from the internal memory were stored in as the virtual sdcard
[Samsung Galaxy Nexus] carl1961:
If your phone is N9005 your userdata (internal sdcard) is diffrent than my AT&T Note 3 yours is 26

/dev/block/mmcblk0p26 and your RAW file for a 32 GB phone should be around 26GB and it should take a few hours to build ( mine took 1:23:11 ) 1 Hour 23 Minutes

if you look at my post with all the pictures you will see the size's and time

so maybe your on wrong /dev/block/mmcblk0p??
[Samsung Galaxy Nexus] jassim007:
I still can't recover. I tried more than 3 times even in windows 8 and windows 7. I have successfully created raw image and converted using vhd tool. Attached and formated just like it said in the tutorial. I used recuva, ZAR, Binarybiz virtual lab, and even test disk. But I see the files which is already there in the vhd thing. I have a gt-i9300 and used mmcblk0p12 to create the raw image. How I accidently deleted my photos: I did a wipe data in stock recovery. Also, I was running android 4.3 fully stock with no root. If there is any mistake or any others possible way of recovering my photos videos etc. Please suggest a solution.
[Samsung Galaxy Nexus] HelpNeeded1:
command unknown

First of all, thanks for this topic!

BUT, I have a problem: Everything was fine till the last command:

"nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p12.raw" (for making the raw file)

Got the message like: "command not found"

mmcblk0p12 exists or should I try thos two other ones like shown in my attached file "cygwin-terminal-4.jpg"?

What did I wrong?

If you need any further information please tell me.

I really need some help, I try to do that whole thing since more than a week! :(

Thanks a lot!
[Samsung Galaxy Nexus] canna97:
Probably you didn't move nc.exe (from netcat) to your bin folder of cygwyn
[Samsung Galaxy Nexus] carl1961:
first picture is because you need to give PC permission to your phone.

you need USB debugging checked in your developer options

last picture is you need something like this except you need to find the correct msm_sdcc.1 folder for your phone

ls -al /dev/block/platform/msm_sdcc.1/by-name

with a root editor (es file explorer) go to your data folder then dev then block then platform look in each folder to see which one has the by-name that folder will be your correct folder Mine is msm_sdcc.1
[Samsung Galaxy Nexus] HelpNeeded1:
Wow, thanks to the quick answer! I already gave the permission as seen in the next lines... Problem was just the step with making the raw. Now I know more, thanks a lot!! :) :good:

---------- Post added at 12:40 PM ---------- Previous post was at 12:36 PM ----------

I did that, it's there with 42 KB... :)
[Samsung Galaxy Nexus] HelpNeeded1:
sry, but which lines do I then have to write? and how/where all do I use the folder msm_sdcc.1?

(attached two pics of my current status)....and REALLY thanks for your help!
[Samsung Galaxy Nexus] jassim007:
Is there anyway to recover after a factory rest on stock 4.3 in gt-i9300?
[Samsung Galaxy Nexus] Fox_Mulder1987:
Hi guys,

first and foremost thanks for this great thread for us (almost) hopeless! The data on my Nexus 4 became victim to a bootloader unlock for root. Now after discovering the thread I spent most of the sunday struggling to reproduce the steps in the instruction and FINALLY got a mmcblk0.raw with a healthy size of 14,68 GB, which I converted with VHDtool and renamed with a .vhd ending. I added it as a virtual HD in diskmgmt.msc. Now comes the problem:

It doesn't let me initialize the disk and/or create a simple volume. It's all grayed out. What's the matter? :(
[Samsung Galaxy Nexus] carl1961:
Maybe try another way to view the raw file or try another computer.

http://xdaforums.com/showthread.php?t=1818321

http://www.rodsbooks.com/gdisk/

http://www.df.lth.se/~jokke/androidfilerecovery/
[Samsung Galaxy Nexus] HelpNeeded1:
Anybody can help me, please?

:crying:
[Samsung Galaxy Nexus] Doofusfire:
nc fail!

Hi Guys,

Little update of my situation.

I found that the reason I was not getting any data transfer was the version of netcat (nc.exe)

I have remove the nc.exe that was linked in the original post.

The version I am using successfully is available through the Cygwin packages.

If you need to install this just run the Cygwin installer again, selecting the same settings you did originally with the exception of adding the nc package.

You can find this under the NET category - for some reason this did not come up on search for me, I had to manually find it.

This works wonderfully - I will report progress as I get further through the process.

Doof.
[Samsung Galaxy Nexus] Wartickler:
What version Android are you running?

Awesome work! What version Android was on the OPO? A couple posts mention newer versions of Android do secure wipes when a wipe is done. Trying to ascertain... :confused:
[Samsung Galaxy Nexus] leoaamro:
Hi All,

I must say that after being on this forum for the past 2 days, from finding everything rocket science...i have learnt tons! Thanks a lot.

I have managed to clear almost all issues reading through the forum, however i am stuck with extracting the raw image. I'm using HTC One M7 - International Version on Windows 7, 64 bit - using cygwin 32 bit version. When i enter nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p37.raw the data transfer starts for maximum of 2 seconds with only 58 bytes copied. I have tried reinstalling net cat and cygwin to no help.

Any solutions for this?

Thansk in Advance!
[Samsung Galaxy Nexus] carl1961:
do you have any errors on screen also did you verify your file path to see if it's correct

also you may try to run cygwin as administrator too (right click the shortcut on desktop and run as administrator

my block is mmcblk0p25

I verified by typing in a windows cmd window

adb shell

mount

then you will see your path as you see in picture /dev/block/platform/msm_sdcc.1/by-name/userdata /data I then know my by-name folder msm_sdcc.1

then type

ls -al /dev/block/platform/msm_sdcc.1/by-name to verify your partitions mine is userdata -> /dev/block/mmcblk0p25

then you know it should be a /dev/block/mmcblk0p25 mine is also 26 GB in size when done (about 2 hours time )

did you open up these pictures in this post? and use to verify with your screens

http://xdaforums.com/showpost.php?p=58718411&postcount=1109
[Samsung Galaxy Nexus] leoaamro:
Thanks for the prompt response.

No there were no errors except LC_ALL, en language error on cygwin terminal on start. I verified the path using adb shell mount and got /dev/block/mmcblk0p37 /data ex4 rw as a result.

I am reinstalling cygwin one more time from scratch and will try to run as admin again.

Last night i tried to run the cygwin 64 bit and the timer went on with 0 b/s write speed and it was only in the morning after 8 hours i realized that it didn't even initiate copying. :'(

---------- Post added at 06:35 PM ---------- Previous post was at 06:26 PM ----------

Didn't work running as admin. Just a note. I am installing cygwin in D:\ of my system and im altering the commands accordingly - "export PATH="/cygdrive/d/AB":$PATH" Hope thats not the issue?
[Samsung Galaxy Nexus] carl1961:
[/COLOR]

Also make sure you have developer options and usb debugging checked in your phone settings

first cygwin cmd screen

adb forward tcp:5555 tcp:5555

adb shell

su (watch phone screen be ready to give SuperSu permission)

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

and leave that screen alone

start another command screen

you may want cd to a clean folder like I used note3 in my home folder

adb forward tcp:5555 tcp:5555

cd /note3

nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p37.raw
[Samsung Galaxy Nexus] leoaamro:
Hi Carl,

Isnt the C in the command line for C:\Drive, because my ADB is also in D:?

Also, i tried ls -al /dev/block/platform/msm_sdcc.1/by-name: and the outcome was permission denied?

Thanks.
[Samsung Galaxy Nexus] carl1961:
because you need ROOTED phone and also to enable usb debugging in setting of your phone

and watch your screen to give PC access and then watch phone screen when you type

adb shell

su you will get a prompt from superSU

all this with pictures in post I gave you

http://xdaforums.com/showpost.php?p=58718411&postcount=1109

CLICK TO SHOW CONTENT is pictures hidden so post is not so big
[Samsung Galaxy Nexus] leoaamro:
Hi,

Phone rooted check

USB Debugging check

busybox check

SU permissions granted

after reinstalling cygwin and copying nc, not its gone back to copying 0 bytes at the nc command!
[Samsung Galaxy Nexus] KostasR:
Great guide OP. Any program for the recovery that keeps the filenames and maybe even the file structure?
[Samsung Galaxy Nexus] sociableorg:
Contacts.db

Great guide OP and thanks a lot for the useful information. Just wanted to point out that the nc.exe referenced in the OP does not work. As someone else pointed out in the thread, the nc.exe bundled with the latest cygwin does the job fine. Took me an entire day of mucking around to figure this out.

I have mmcblk0p25.raw and mmcblk0.raw extracted now (along with the VHD header added). Recuva does not seem to find the contacts.db file in the mmcblk0p25.raw partition. Anything I missing here please? Are there better programs to 'deep scan' for .db type files?
[Samsung Galaxy Nexus] kernel52:
The OPO now is on Cyanogen Mod version 11.0 and Android Version 4.4.4
[Samsung Galaxy Nexus] pixpaw:
great guide!

i did unlock bootloader and overread that my device gets wiped :(

all i need is my whatsapp folder, im on a moto G 2014 and copied mmcblk0p38.raw but after scanning it, it will find only a bunch of about 50 files. (some .png's of screens of when my phone was booted last time, but i didnt took any screenshots)

shouldnt it find at least all files from the current installation?

for file recovery i used easy recovery, remembering this as a good recovery tool when i works as it support.