yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] stevenparamaribo:
VHDTool crashes

Hi,

I just made a raw image of my phone (61Gb), via 127.0.0.1:5555 browser method and all looks fine.

Now I want to convert the raw-image to vhd, but VHDTool instantly crashes.

I get a Windows popup saying something like "VHDTool.exe doesn't work anymore. Looking for a solution to the problem.". Result: nothing, so no solution found.

Also tried converting with VBoxManage (VirtualBox), but then I get the message:

"VBoxManage.exe: error: Could not get the storage format of the medium"

According to VirtualBox forum I need to use the UUID instead of the name of the file. But how do I get the UUID of the raw-image when it is not imported yet?

Is there another tool to convert the raw-image to vhd

OR

to mount the raw-image directly in Windows?

Please advise.

Regards,

Steven.
[Samsung Galaxy Nexus] PhillipAmal:
Thanks u

can u please explain:

Cygwin installed to [c:\cygwin] with pv and util-linux from the repo. Make sure to open Cygwin once to make sure that the /bin folder is created. Also, I made a folder at [c:\cygwin\nexus] to put the exported .RAW file
[Samsung Galaxy Nexus] lokimc:
This does not work after a factory reset, right? Think I got it to work but I only get Files from my current setup (Note 2).
[Samsung Galaxy Nexus] rebeltech:
unable to attach vhd

Please help me .After convert the raw file to vhd, i unable to attach vhd file in disk management. it show "the file or directory is corrupted and unreadable". was there any mistake i did while create the image?
[Samsung Galaxy Nexus] DIXES:
Maybe rename it from ".raw" to ".vhd" then it will work.
[Samsung Galaxy Nexus] rebeltech:
---------- Post added at 10:48 AM ---------- Previous post was at 10:43 AM ----------

[/COLOR]

still show the same error.
[Samsung Galaxy Nexus] seb_efruz:
Hello, Firstly, I want to thank you for all these helpfull tutorials but also I have a question. I followed all the instructions and after converting raw file to vhd , the new unit created in my computer is seen as an empty drive as seen in attached file but My raw file has 11.6 GB data size in specifications. What should I do? Thanks for your sincerely help in this matter...
[Samsung Galaxy Nexus] nobanana:
nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p28.raw 0 B 0:00:00 [ 0 B/s] [<=>

Help.

Mi3 rooted. Followed everything in guide. Stuck at 0 Byte file getting created.

Tried whole partition blk0 and data part p28.

It seems few guys already faced this error. Any workaround? Please help.

I'm thinking of try and mounting PC drive on Mi3 and check if that works. Suggestions?

Edit: Tried Win 7 Folder Share mount with cifs.ko Mount Manager etc.. Invalid argument error :( Totally stuck.
[Samsung Galaxy Nexus] fastdan:
Hello I have a nexus 4 that unfortunately the usb port is not working correctly(It can charge but is not recognized neither as an adb or mtp device on any computers, I've tried five already). So my question is can I use adb wireless, and if I so how would the commands be different?
[Samsung Galaxy Nexus] Ryuuga:
I have the same problem, my guess is that I downloaded the wrong VHDtool.

The quick fix is to skip the VHD step altogether. Look for Photorec or Diskdigger to recover straight off the RAW image.

Be prepared though to spend hours looking through thumbnails to find the file you want.

Additionally my question is, has anyone has success recovering expired snapchat photos? I guess I could make Photorec or Diskdigger to dig for the .nomedia extension, but the guides on the official website gave me a headache...

A little point to the right direction would be much appreciated.

Thanks!
[Samsung Galaxy Nexus] ^I'm_With_Stupid:
use this to just mount virtual disks without initiating

you can use paragon extfs to mount the virtual disks without having to initiate the disks since it installs a driver that allows the computer to mount the disks like any other disk (you still have to assign a drive letter to the disk though, which is step 16, but that should be a breeze thanks to this.

where to download: http://www.paragon-drivers.com/extfs-windows/

unfortunately you have to register, its free all they do is send you an email, kinda sucks: http://www.paragon-software.com/registration/extfs-windows.html
[Samsung Galaxy Nexus] wcc201:
I cannot for the life of me figure out what is ADB Mode

hey guys, i know i know, im a newb and i'm dumb ok i get it. I've been trying for the past few hours to get through the first few steps but can't figure out for the life of me what the heck "ADB MODE" means? is that download mode? recovery mode? do i hold volume down? i downloaded all the sdk tools and what not. i did a check on adb devices and found them in my directory via cmd with all the proper drivers? why am i retarded? please help me? also every time i enter the code it says the following:

C@C-pc ~

$ adb forward tcp:5555 tcp:5555

-bash: adb: command not found

C@C-pc ~

$ adb shell

-bash: adb: command not found

C@C-pc ~

$ su

-bash: su: command not found

C@C-pc ~

$ /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/platform/msm_sdcc.1/mmcblk0

-bash: /system/xbin/busybox: No such file or directory
[Samsung Galaxy Nexus] thetool:
Looks like this method is USELESS!

I have managed to export a large image file, as this guide suggests,

I used many recovery software (even linux recovery) but

non of them have managed to recover even ONE single picture prior to the hard reset.

I only managed to "recover" files that were created AFTER the hard reset.

Any enlightenments?
[Samsung Galaxy Nexus] BombTheSys:
Recovered files that where already saved on my phone, this method did not recover any data from my galaxy s3. the step was easy to follow everything ran perfectly fine took me about 4 hours for this whole process as I stated above it did not recover any of my deleted pictures not one. Galaxy s3 i535 on kitkat.
[Samsung Galaxy Nexus] micati:
VHDTool crashing

For me VHDTool was crashing as well so I had to use vboxmanage.exe to convert the raw file to vhd.

first i ran the CMD with administrator privledges

then the command i used was

vboxmanage convertfromraw mmcblk0.raw mmcblk0.raw.vhd --format VHD

the filesize of the VHD was only 13.4GB whereas the filesize of the RAW was 29.1 GB

then i used the TESTDISK 7.0-WIP program photorec_win.exe

to recover every single file possible from the VHD.
[Samsung Galaxy Nexus] Galash:
really thx...

you save my tablet

i waste 5 hours this problem.

thank you. :)
[Samsung Galaxy Nexus] ZX speccy:
Will this work on NExus 4 after hard reset (unrooted phone?)

Hello.

I did a hard reset on my Nexus 4 and lost a load of voice notes and other notes from two apps - voice recoder and task list manager. Just need to recover whatever i Can from those two apps?

I've tried laods of other data recovery programs with no joy. Will it be possible? (my phone is unrooted)

Thanks in advance.,
[Samsung Galaxy Nexus] avinashvasudevan:
Its going to be hard without root. There are lot of apps like http://www.wondershare.net/ad/dr-fo...uukg3iL0b_xl3bJOjywwQlAV9pPBEzFYaQaAjec8P8HAQ that promise to work. But personally, I have never had any success with them. Also, these apps can overwrite the documents you are tying to recover. The thing I hate about these apps is that they write log files, which can overwrite the files that we are trying to recover.

The method described in this thread is the best method. If the non root methods fail, you can root your phone and try this method. However, there is a small chance that when you root, the root app, busybox app or SU app that you install can overwrite some of the documents that you are trying to recover. Good luck. Let us know how it goes.
[Samsung Galaxy Nexus] id10tothe9:
I'm getting a .RAW file of size 0!

I had to wipe my phone after update to Android 5.0 got stock and installed it manually but in the process I lost my Authenticator data which I thought had been backed up. so now I'm trying to recover the data.

I do all the steps but the mmcblk0.RAW file I get has the size 0 and I can see that on the phone it's size is 0 too. is this the wrong method?
[Samsung Galaxy Nexus] ZX speccy:
Hello.

Thanks for the reply!

So it's best to try this method first without the root. Then if that don't help, root the phone adn try again?

(Also has it actually worked for you? And I only need the app data from two apps so do I need to do somethign different?)

Cheers

The method described in this thread is the best method. If the non root methods fail, you can root your phone and try this method. However, there is a small chance that when you root, the root app, busybox app or SU app that you install can overwrite some of the documents that you are trying to recover. Good luck. Let us know how it goes.[/QUOTE]
[Samsung Galaxy Nexus] id10tothe9:
0 KB problem solved

I think I solved this problem now. I used this guide: http: / / ww w.chip .de/ bildergalerie /Hilfe-fuer-Android-Geloeschte-Handy-Daten-retten-Galerie_69444088.html?show=16 (newbies can't post links)

it's the same steps but used the original sdk platform-tools instead of cygwin, used ncat.exe instead of nc.exe as somebody commented few pages ago, and I ignored the pv tool since I didn't have it in the platform-tools and it seems just for monitoring the progress. now the .raw file is growing. :D

still need to do the other steps after this and see if I can recover my data from this.
[Samsung Galaxy Nexus] kadajawi:
That you! This finally works! :)
[Samsung Galaxy Nexus] TigaTiger:
I am stuck on the first bit where it says to enter adb foward tcp:5555 tcp:5555

It says -bash: adb: command not found

so i dropped in the adb.exe file into the cynwin64/bin

it then gives me

/usr/bin/adb.exe: error while loading shared libraries: ?:cannot open object file: No such file or directory.

Can anyone please help me? I am willing to pay if anyone makes a detailed step to step video or set of instructions.
[Samsung Galaxy Nexus] ZX speccy:
Hello.

Thanks for the reply!

So it's best to try this method first without the root. Then if that don't help, root the phone adn try again?

(Also has it actually worked for you? And I only need the app data from two apps so do I need to do somethign different?)

Cheers
[Samsung Galaxy Nexus] fscussel:
How did you manage to read german? Do you have a translation?
[Samsung Galaxy Nexus] fscussel:
great tip.

---------- Post added at 07:17 PM ---------- Previous post was at 06:52 PM ----------

Ok, so I have done all the process.. I'm getting like 50 files... none of them the pictures... the process which should take 3 hours for 13gb takes just 5 mins, with deep scan. anyone has a tip on what now? Any other software to recover? To be honest I find recuva a shi**y program.
[Samsung Galaxy Nexus] alexandruvlad:
Hello everyone, need some help. Using this on a Note 2, but should be any different (apart from the block name) - yet i'm getting "device offline" after using this command adb forward tcp:5555 tcp:5555

Why is that => any clues, please?
[Samsung Galaxy Nexus] id10tothe9:
just follow the pictures! :)
[Samsung Galaxy Nexus] id10tothe9:
did you add platform-tools of the sdk to your path?

eg add ";C:\Android\sdk\platform-tools" at the end of your current path. (if you don't know how to add to your path easy to google) :)
[Samsung Galaxy Nexus] xmagerz:
Hi,

I've done all the steps and got stuck after

The error I get is

I think this means he doesn't know -e

I'm thinking my busybox is the problem because of its own nc

I typed "busybox nc -h" and it doesn't show any -e so I'm guessing that's the problem?

I tried changing it but didn't really manage to do it right...I don't exactly know what I'm doing

Any help? ideas?

thanks
[Samsung Galaxy Nexus] wojcimierz:
I wanna thank you man for this post and for your effort. This sloved my problem with Nexus 4. I spent whole day to figure out why my N4 always transfer 0B and today you found an answer. So people - in my case all I done was INSTALL 32-BIT Cygwin INSTEAD 64-bit, no matter that my Win7 is 64 bit JUST INSTALL 32-bit Cygwin after set up all things like in 1st post but installed 32-bit Cygwin everything went done fine !

Path to my Nexus 4 is

/system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/platform/msm_sdcc.1/mmcblk0p23

it depends if your busybox folder is 'bin' or 'xbin'

Thank you iHack13 once again !!!
[Samsung Galaxy Nexus] wojcimierz:
I receovered my Nexus 4 partition (about 13 GB) and most of the partition capacity is taken by couple of .mov files, each file is about 2 GB. I don't think that I could record any movie size like this :rolleyes: My data is probably hidden somewhere in these files. Can you help me what can I do to deal with this issue ??
[Samsung Galaxy Nexus] chntpw:
wow, what about permanently delete data?

with an abnormal emmc?

please help my case :

http://xdaforums.com/galaxy-nexus/help/phone-wiped-t2985031

thanks in advance :good::good:
[Samsung Galaxy Nexus] atomcze2:
factory settings

Hello,

I've done on mobile phone factory settings, but I forgot to back up a couple of dates. Is it still possible to somehow save? it is a program: tasks. Which was already installed from the manufacturer.

thanks
[Samsung Galaxy Nexus] wojcimierz:
I am also intrested in the aswer to this question. Is it possible to recovery my data after factory reset ??
[Samsung Galaxy Nexus] xvitis:
solved

with lots of thnx from wojcimierz in 1080 post. :cowboy::cowboy::cowboy:

hes true. the 0kb problem solved with use of 32 bit version of sygwin in even 64 bit windows i try it on htc one dual sim.
[Samsung Galaxy Nexus] wojcimierz:
All thanks goes to iHack13 in #927 post :) he figured out the issue. One more time for all who have 0B transfer problem - try to install 32-bit version of Cygwin. Even if your OS is 64-bit.
[Samsung Galaxy Nexus] kbuss:
Hi! Pretty big thanks for your contribution! I was total noob but I managed to go through the process although it was hard because of your tech jargon :P you could elaborate a bit more about how and what to install, words like what from repo, etc :eek: :D for future noobs, that is :D

for i9305 the whole partition is named the same. But the Recuva software I dont recommend, Photorec is much better. I was looking for corrupted *.amr recordings of telephony, recuva cant even look for amr-s. Photorec also finds badly broken files based on signature/stream, which could be a big help, something is better than nothing even in jpg-s.
[Samsung Galaxy Nexus] brotherofkalel:
[GUIDE] Internal Memory Data Recovery - Nexus 4

YAY! It's finally downloading! Thanks [MENTION=2129788]Wartickler[/MENTION] for your great tutorial.

I know your tutorial was for a Galaxy Nexus but I've got an LG Nexus 4.

Here is a list of challenges I had to overcome to get it to work:

1. Use the x86 version of cygwin even if your running 64bit windows (:good:Thanks @iHack13)

2. Use the su command as suggested in the second post (:good:Thanks @scandiun)

3. Nexus 4 partition is different. Use mmcblk0p23 (:good:Thanks @efrant)

4. my busybox is installed in system/xbin, not system/bin (Worked that out myself ;) )

My commands - 1st terminal window:

adb forward tcp:5555 tcp:5555
adb shell
su
/system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p23

Open 2nd terminal window:

adb forward tcp:5555 tcp:5555
cd nexus
nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p23.raw

Just 1 other small change:

Original: cd /nexus

Mine : cd nexus

Hopefully this will save the next Nexus 4 user a few hours of reading and work.
[Samsung Galaxy Nexus] xplod2841:
Does this work only for nexus devices or for all devices? I'm trying to get this thing working on Sony Xperia Z1 Compact but it doesn't work. Phone is rooted and busybox is installed in /system/xbin. Here is the picture:

I tried without SU but still nothing. Then I tried this:

And got this:

In last post, I saw that 32-bit Cygwin must be used. Is maybe there a problem, cause I'm using 64-bit one?

EDIT: It did create this file, but it shows 0 KB. Maybe I'm working with wrong block?
[Samsung Galaxy Nexus] LGxUser:
Suggestions to check

Try running both cygwin terminals with administrator rights.

Also check with: "cat /proc/partitions" to see if it is the right partition you selected for backup.
[Samsung Galaxy Nexus] xplod2841:
I managed to create a RAW image, it was a wrong partition and the main problem was due to using 64-bit Cygwin instead of 32-bit. But now I have another problem: the link for VHDTool in first post is dead, I was googling and I found it for download somewhere but it doesn't work. When I tried the command given in OP's post, I got an error due to /convert, so it seems that this one is different; it accepts different parameters. There was a readme file with instructions how to use it, but when I try to convert RAW to VHD, VHDTool crashes! Then I tried VboxHDTools, but I got an error that given path can't be found. Then I tried PassMark OSFMount, it can mount the RAW file directly and it does work but it mounts it as a linux native file system, not FAT/NTFS and I can't access it from windows.

How can I mount that RAW file?

EDIT: I tried to format this mounted drive in linux file system to fat32 and now windows sees it (but it's empty). So I tried to scan it with Recuva and I got "Invalid drive for scan"!
[Samsung Galaxy Nexus] LGxUser:
VHDTool

http://xdaforums.com/showpost.php?p=52888253

Alternatively if you are able to mount the drive with OSFMount you might be able to see it in Windows Diskmanagement (Win + R, diskmgmt.msc) you could continue as described in the guide i.e. essentially quick formatting the partition/drive to FAT32 leaving the cluster size at default and giving it a drive letter.
[Samsung Galaxy Nexus] xplod2841:
Thanks for VHD tool, this one works.

But now I got another problem. When I tried to attach the VHD in Computer Management, following instructions from first post, I got this:

EDIT: I formatted it throgh windows explorer (quick format) and now it works like a normal disk drive, but recuva still shows error. I tried Puran recovery and it doesn't see that drive at all. I tried Glary Undelete and it sees this drive but when I run scan, it finishes in 1 seconds and founds nothing. I assume that there's a problem with OSF Mount.
[Samsung Galaxy Nexus] heenke:
Hi guys

I have a Samsung S3 16GB with lost pictures on the internal memcard.

I followed this guide successfully: http://xdaforums.com/gala...9#post34185439

I created mmcblk0.raw containing 14.6GB of data.

But after Recuva recovered the mounted drive in Windows all i see are alot of zipfiles and other weird files. Ex: ÿÿÿÿÿÿÿ².H9¶ that file is almost 4gb large, ss}}}xxx.bbb is 3.7gb large.

See my attachment printscreen over the recovered files

I wanna know, where are my pictures? Shouldnt i see the file and folder structure of Android here or something? and then just find the DCIM folder or something like that. Im very confused at this moment and stuck. I dont know what todo next. Those pictures are of very big value for me and i really need them to be there somewhere. (The phone wasnt used after the files where deleted in restore to manufacture, so no dataloss)

I hope someone can help me and point me in right directions.

Best Regards

Henrik
[Samsung Galaxy Nexus] samsungleak:
we`re out of luck :\

I think it's about time we learn to do backups guys :\ I am also one of the guys who accidently deleted whole album when I wanted to delete only 1 picture. I tried all possible ways, blocks, vhd's, disk digger, running pro tools like R Studio , getdataback etc.. Nothing brings you back the dcim folder.

What is most weird is some photos from this folder get recovered, but not all. Which makes me think, that once you delete this gallery , the phone allocates the freed memory for whatever comes next. So basically if you recieve sms or so it might get stored on the block where picture was before, so that picture will be missing.

But there has to be a way. Professional recovery studios always get the data back.. even it was formated very deeply. 1 pass of 0 is not enough I think.. thats why you got tools with 30 passes etc.. which will write over data with 0 , random chars etc etc. So in theory it is still very much possible there is our data somwhere. However without extensive recovery knowledge or big budget it will be close to impossible to get this back :\

I was however able to get all the pics and data from external SD card which got deleted\corrupted. But I think that is only because the phone stores SMS and stuff in internal memory and those didn't get overwritten.

In any case guys, you will make new pictures, this stuff sucks but let's keep the hope that somebody will be able to find the way to restore those DCIM folders :)
[Samsung Galaxy Nexus] jasonsaw96:
Please help :(

can someone guide me?

Cygwin installed to [c:\cygwin] with pv and util-linux from the repo. Make sure to open Cygwin once to make sure that the /bin folder is created. Also, I made a folder at [c:\cygwin\nexus] to put the exported .RAW file,

Im stucked at this part...i dont really know what to do and barely know anything about linux stuff. It would be great if you guys can help,...
[Samsung Galaxy Nexus] kernel52:
Just rename the .raw to .vhd and it should work

---------- Post added at 02:46 PM ---------- Previous post was at 02:39 PM ----------

It was a lifesaver.

I might agree that sometimes there are a few more instructions that could be more helpful when one is panicking about the lost data, but if you try a bit what is given as instructions you can achieve the expected result.

I have retrieved 95% of my data (I had to install busybox) and all was good.

So I can safely say that my OnePlus can be re-used

Thank you very much Wartickler for this guide
[Samsung Galaxy Nexus] lordlambda:
Can you guide me how you solved it with your opo? I tried now 4h. My Problem is, that my sh file in system/bin/sh is missing. Only Chuck Norris knows why. I am on cm11s since the first day and upgraded via ota to r44. No Modifications are made...:/

Edit: Using the sdk-platform-tools and cmd helps me. But that system/bin/sh is missing, thats not normal. Or isn´t it?
[Samsung Galaxy Nexus] LVArturs:
/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12 - this command produces "permission denied" error.

su /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12 - this command produces something extremely weird and rare (seems that it's not mentioned in this topic):

p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0p12 <
tmp-mksh: nc: not found

Any ideas on how to fix it?

Edit: Okay, sorry, people, for being stupid. I restarted the pc, used the commands from Wartickler's post + "su", and it worked. Only this time I wrote "su" separately from the "/system/...." command. Also, if there are errors, don't hesitate to try the same command multiple times - that worked for me. Some commands failed after the first entry, but were 100% successful at the second try.

Thanks to Wartickler, scandiun, VieiraS, hakneo and all the other contributors!
[Samsung Galaxy Nexus] mel4689:
Is there anyway to recover my photos from guest profile. I accidently selected start new session and lost few important photos.

Thanks in advance
[Samsung Galaxy Nexus] Stryfex:
I've gotten through what I believe are the most difficult parts of this process but I am having issues post mounting my VHD in windows.

Essentially, I created a raw out of this: /dev/block/platform/msm_sdcc.1/mmcblk0 (galaxy s4 with cyanogenmod if that matters)

when I mount the raw (as a VHD) in windows I get a Basic disc with a whole bunch of unnamed volumes that I can't seem to do anything with. One of them is 9.75 GB (out of a total of 14.68 GB) so I imagine that's what I want to get a drive letter for recuva but I don't have any options available to me to do that....

this image should show you what I am seeing: https://imgur.com/zI8bnj7
[Samsung Galaxy Nexus] krnts:
Doesn't work on xperia?

I followed your procedure, with 'mmcblk0p12' with 'mmcblk0p27'. But then, raw file created was empty(0 bytes). Pls help to identify the problem