yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] moterbbb:
It is not useful for my nexus5 . nothing found

it says

: Gsy@PC201311112123 /nexus

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

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

Gsy@PC201311112123 /nexus
[Samsung Galaxy Nexus] paulcrewe:
Problems on Mac

Hi.

I just get 0Byte while transferring and the error:

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

mmcblk0p23

dd: writing 'standard output': Connection reset by peer

1313+0 records in

1312+0 records out

671744 bytes (656.0KB) copied, 0.041107 seconds, 15.6MB/s

I use it on a mac.

Any ideas?
[Samsung Galaxy Nexus] keyra74:
i always do it with the ftp trick, i should dig and give you the link

http://xdaforums.com/galaxy-nexus/h...r-o-sdcard-t1518246/post27793062#post27793062
[Samsung Galaxy Nexus] aldrex19:
vhd tool

dude can you hel[p me download the VHD toll, been having problemlocating the download link, thanks
[Samsung Galaxy Nexus] v_square:
Did you do a factory reset?

Or flashed a stock firmware?

I did it and recuva or any other software wasn't able to find a single piece of data. May be factory reset shreds the memory completely.

Sent from my Galaxy_Note
[Samsung Galaxy Nexus] Sohip:
Because you are copying the wrong block mmcblk0p28.raw (This block is only for Galaxy Nexus)

I have a Nexus 5 too and Cygwin is currently copying my ~32gb userdata.raw block of my device (1hr already passed and ~2hrs left).

For Cygwin window 1:-

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

For Cygwin window 2:-

nc 127.0.0.1 5555 | pv -i 0.5 > userdata.raw

look at the attached picture to this post for further detail...
[Samsung Galaxy Nexus] Madikan:
I just figured out to do the job and it all happend without problem. But when i want to recover files with Recuva, i only got a bunch of jpg files (from apps) zip files that can be converted to apps (apk with a zip ending) but i can't seem to find any of my music or titanium saves or even my folders.

The thing is, i have strange and huge files that i can't seem to open. There are like more than 7 files that are 2GB+.

There it is :

I'ts really strange but can anybody help me with it ?
[Samsung Galaxy Nexus] hwsv07:
Samsung Galaxy S3 GT-i9300, running Andriod 4.3

Hi Guys.

Thanks for this thread and I hope I can really save my data in my internal memory of my Andriod.

I am trying to recover my deleted PICTURES on my internal memory of my Samsung Galaxy S3 GT-i9300, running Andriod 4.3.

It was stock rom, non-rooted. For this purpose, I rooted the phone using CF-Auto-Root, but I did not change the ROM.

There were a lot of issues getting to connect to my phone in ADB mode, but I think it is working now. But I still have not managed to backup my internal memory. Kept getting 0bytes for my raw file.

This is what I have done.

In Cygwin Terminal

adb forward tcp:5555 tcp:5555

adb shell

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

Instead of the above, I also tried

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

Also, I have tried to run the above code using /mmcblk0p0 to /mmcblk0p15

In Another Cygwin Terminal

adb forward tcp:5555 tcp:5555

cd /Samsung

nc 127.0.0.1 5555 l pv -i 0.5 > mmcblk0p12.raw

After running the above, I get the mmcblk0p12.raw file in cd /Samsung folder.

But this is just 0kb. I thought the backup maybe running in the background (I do not see any progress bar or anything in the terminal) so I waitied awhile, but the file size does not change.

So any hints or help? Very much thanks!
[Samsung Galaxy Nexus] hwsv07:
Some updates. I have tried to use Cygwin 32 bit, instead of the 64 bit that was tried earlier on, and I am seeing an error saying "nc: interval cannot be negative".

I have tried twice in 2 different manners. Can someone verify if I should be seeing some progress bar after I insert the command

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

Try 1

tinypic.com/r/2mgmwzk/8

Try 2

tinypic.com/r/25ps4ko/8

Question

1. I want to extract the whole internal storage of my Samsung S3 Android v4.3. Which partition (mmcblk0p0 ?) should I type in the command?

2. Did anyone get the error "nc: interval cannot be negative"?

Thank you.
[Samsung Galaxy Nexus] berat66:
for those who haven't got vhdtools.exe or cannot find it anymore:

there is a toll called qemu, which can also handle various formats like raw, vhd etc..

just download it from here: www . OMLEDOM . com

then open cmd.exe and switch to the installation folder of qemu (for it was C:/Program Files/qemu)

so enter

cd C:/Program Files/qemu

then type in the comand below. be careful, you have to edit the path of your raw-file and your destination path for the vhd file:

qemu-img convert -O vpc X:/PATH/TO/YOUR/RAW/FILE/FILE.raw X:/PATH/TO/THE/VHD/FILE/FILEnew.vhd
[Samsung Galaxy Nexus] DZeros:
I followed the guide. Everything OK.

Thank you!!
[Samsung Galaxy Nexus] hakneo:
VHD tool download

For people who are unable to get hands on VHD tool,

Exe: https://www.mediafire.com/?f96bmsvjz4qdvbu

Same thing in zip: https://www.mediafire.com/?f96bmsvjz4qdvbu

Regards
[Samsung Galaxy Nexus] hwsv07:
Finally I have managed to do everything successfully, I recovered mmcblk0p12.raw from my internal storage of my Samsung S3. It was 11.5GB.

Converted the raw file into VHD and tried several recovery software such as JPEG Recovery Pro, Recuva, Ashampoo Getback Photo. However, most of the photos that were recovered were thumbnails, and pictures from whatsapp or instagram which were of lower quality. I have tons of other photos which were taken use the phone (Samsung S3) camera.

I can see that the photos from the camera were recovered cos I can see the correct file names, but they are unreadable. These files were of substantial size (~ 2MB each) so I believe they must have been recovered.

I googled how to repair JPEG photos. In doing so, I also used several different photo viewers such as Irfan and Xnview to see if I can view the corrupted photos. However, nothing worked.

I also read something that the embedded thumbnails in the JPEG file may have caused unreadability. So I used EXIFERASER to remove the embedded thumbnail image. But it did not work.

Did some succeed in getting back the high res-photos after recovery?
[Samsung Galaxy Nexus] keyra74:
try photorec or easus data recovery, i always have good results with those
[Samsung Galaxy Nexus] dw_22801:
Cygwin Installation

Installing Cygwin is not seeming to be as simple as the few instructions I see. There are more questions on the install than there are answers to. Is there any more info you could give?

It asks for a Local Package Directory.

It then asks for Packages to Install, but it does not seem as simple as choosing the two listed. There are about 20 different categories to choose from, all of which have a plus sign, which if clicked, drops down a new choice "Skip". If I click skip, It then populates two checkboxes. My point being, I am not real savvy with this, and would appreciate any more help! I have attached a screenshot of the window.
[Samsung Galaxy Nexus] astrit1995:
thank you sir ! you're a life saver :D
[Samsung Galaxy Nexus] spctoma:
I had some trouble formatting the volume of the VHD, the disk manager said "the disk is write-protected" even if I hadn't checked the "Read Only" box while attaching the file.

I found the solution. The disk wasn't read ony, but the volumes were ! (i've imported mmblk0 instead of mmblk0pXX)

You have to open a command prompt (run as admin...) then Type :

diskpart

list volumes

select volume X (the volume you want)

Attributes volume clear readonly

Here you go ! You can finally format that "write-protected" volume
[Samsung Galaxy Nexus] hmm888:
I have a Nexus 5 32gb and i got 0 kb when with either /dev/block/platform/msm_sdcc.1/mmcblk0p28 or /by-name/userdata. I'ved tried cygwin 64 and 32 bit.

The phone was encrypted before and I had to format and reinstall the OS without backing up. I downloaded Root Browers on my phone and checked those files from my phone and all the blocks as well as userdata is 0 B.
[Samsung Galaxy Nexus] zerosys:
Seems that i have no luck with my Nexus 5 32GB. Got a 30gb raw file from /dev/block/platform/msm_sdcc.1/by-name/userdata using linux instead of cygwin and windows. Then switched to windows 7 and used VHDTool, but all recovery programs like O&O, Stellar Phoenix, Recuva and more just find pictures of my gmail account which was synched after the bootloader accident happend...
[Samsung Galaxy Nexus] israelian:
wow this is interisting.. thank you for such important information! :good: :)
[Samsung Galaxy Nexus] aturhan:
-nc no command ??

hi guys :)

i have samsung s3 mini(gt-I8190) and the pictures in the internal memory of my phone are deleted :crying: with the help of these videos i could do the following step, lastly:

Open another Cygwin terminal and enter:

Code:

adb forward tcp:5555 tcp:5555

cd /nexus

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

howewer by this step i couldn't create .raw file and cygwin terminal says -bash -nc no command.

my lost pictures are very very crucial for me :( is there anyone who can help me ?

p.s. thanks a lot for the tutorials :good::good::good:
[Samsung Galaxy Nexus] GearX:
So I'm tryiung this method on my one M7 and hoping to recover some Images after a ROM update :/

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

that's what I've done so far. It already takes 5 hours and I hope it soon will be done... why does it take so long? :rolleyes:

I want to go on with:

nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p37.raw

:D
[Samsung Galaxy Nexus] memi_pt:
hi every one

every thing was good up to 17 level!

after that i used recovery software and unfortunately no data!

i have Nexus 4 and i lost data after flash stock Rom

what can I do??? Plz Help
[Samsung Galaxy Nexus] memi_pt:
Any success? no one in nexus 4 after stock flash?
[Samsung Galaxy Nexus] memi_pt:
no one?
[Samsung Galaxy Nexus] HermitDash:
I just got this to work send me a PM or reply to this and I'll try and help you :victory:
[Samsung Galaxy Nexus] Mud3:
this is what worked for me on sprint htc one m7... was doing everything right and still getting 0B took a lot of looking through pages on this thread to find that answer... i know it's an old thread but it would be great if that could be put in the OP
[Samsung Galaxy Nexus] serginio358:
First of all Thanks Wartickler for your tutorial.

After an accidently deleting operation, I succeded to recovery my files (photos, videos, txt and others type) with your recovery method. Not every file which i wanted. But a lot of. Thanks again.

smarthphone: Nexus 4 rooted

OS: windows 7

recovery program: photo-rec

more details following this link

http://xdaforums.com/showpost.php?p=53770191&postcount=19
[Samsung Galaxy Nexus] Mud3:
getting error when trying to attach vhd. something about the console not being up to date, then when i try again it says i need to close all instances of it, restarting disk management won't start back up.
[Samsung Galaxy Nexus] Febby:
Mount points are there :)

http://xdaforums.com/showthread.php?p=34141701

This one below should be the mount point you are looking for but I could be wrong so double check.

userdata -> /dev/block/mmcblk0p23
[Samsung Galaxy Nexus] Wartickler:
Thank you (:

Not sure about software for repairing videos but if you are successful I'd like to hear about it. I actually gave up on my videos during my recovery and assumed they were lost. I still have my VHD saved though so I could still dig them out with any advice you can give!

Sent from my Galaxy Nexus

"Two hours? I think I could do better than that streaming Netflix with torch on. Something is very wrong there." - mmuzzy
[Samsung Galaxy Nexus] Wartickler:
Thanks for that! I'm still sadly green with *nix administration...

Sent from my Galaxy Nexus

"Two hours? I think I could do better than that streaming Netflix with torch on. Something is very wrong there." - mmuzzy
[Samsung Galaxy Nexus] sweesin82:
try the method to recover on my Gnex 4.2.1~it's working great..able to retrive my photo

why admin din put this in the sticky post? i search for so many places n try a lot apps..only this method works great~
[Samsung Galaxy Nexus] Febby:
I agree, this should be stickied. :)

- Sprint gnex powered by Xylon v11
[Samsung Galaxy Nexus] scandiun:
With USB tethering the connection is much faster than using adb. Furthermore I recommend using native unix tools instead of converting the raw file to vhd, that although makes it easier for windows users it screws the filesystem hierarchy. If the phone has a dedicated partition for the sdcard there is no need to do anything of this, just connect it to the computer in Mass Storage Mode and use Recuva or other tools as usual.
[Samsung Galaxy Nexus] theEastonator:
First of all, thank you so much for this guide. Like on of the above users, the confusion of switching to 4.2 led me to accidentally delete the photos in my SDcard0/0 storage.

I've gotten up to this stage in the tutorial:

in the second window

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

But I get two errors:

/system/bin/sh: pv: not found

nc: can't connect to remote host (127.0.0.1): Connection refused.

I don't get it. pv.exe is right there in the cygwin bin folder and why on earth would my computer be rejecting its own commanded connection?

Please help :(

edit: never mind, trying everything one more time got it to work. Transferring now...stay tuned!

Thanks for the tutorial.
[Samsung Galaxy Nexus] Febby:
Have you tried it with /system/xbin/busybox path on the previous step? Then open a new window of the terminal to retry the second stage? I'm not sure if that's it. For me it wasn't working because busy box was in xbin.
[Samsung Galaxy Nexus] l3admonky:
I haven't used Linux much at all but I really want my stuff back so I'm willing to try.

I've installed ubuntu and, after doing some research, will probably try using the fsck to try and repair the file system.

Mounting it without converting anything sounds like a very good idea though so I think I'll try that first.

Do you have any other suggestions?
[Samsung Galaxy Nexus] scandiun:
If you are going to alter the filesystem you have to mount it read/write instead of read-only. Try using photorec and testdisk prior to running fsck and after it. If you don't want to install Ubuntu or similar on you computer natively, you can use VMWare Workstation or Virtualbox for it and share a folder.

Information about the file:

file n7-p9.raw

sudo mkdir /ext4
sudo mount -t ext4 -o loop,[B]rw[/B],noload,noexec n7-p9.raw /ext4/

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

su
cd /etx4/media/0/

Here are more useful links for recovering data:

Extundelete

How to recover files from linux ext4 harddrive

How to undelete files from ext3/ext4

5 of the Best Free Linux Data Recovery Tools

Linux debugfs Hack: Undelete Files

EverydayLHT: Undelete Files on an ext3 or ext4 File System

The Sleuth Kit and Autopsy Browser
[Samsung Galaxy Nexus] l3admonky:
I didn't want to install Linux so I just put it on a DVD and am running it from there. Thanks for the info and the links.
[Samsung Galaxy Nexus] Skurvy_Pirate:
In the second window the "cd /nexus" command is failing for me. It saying No such file or directory. Is there something I am missing?

Edit: Ok, I missed that you created a nexus directory haha. Nevermind.....:o
[Samsung Galaxy Nexus] Wartickler:
How did that work for you?

Were you able to recover files?

Sent from my Galaxy Nexus

"Two hours? I think I could do better than that streaming Netflix with torch on. Something is very wrong there." - mmuzzy
[Samsung Galaxy Nexus] Skurvy_Pirate:
Yes I was! Thanks for the great tutorial!
[Samsung Galaxy Nexus] l3admonky:
Running Linux from a Live CD worked just fine.

My problem now is that I'm so new at it that I'm having trouble using the commands in terminal.

I'm slowly getting it though.

My biggest problem right now is installing other applications, I just don't know how to. ubuntu has a software center that has none of the apps I want and the ones I do want I have to compile but I don't have a compiler. I'm certain once I get the hang of it it'll be a breeze but it's kicking my butt right now.

One question I wanted to ask is why does the image have to be copied into a .raw file and then converted to a VHD? Can it be copied from the phone to a different extension and still be usable?
[Samsung Galaxy Nexus] scandiun:
The extension doesn't matter, and doesn't apply any change to the file. You can call it without extension if you want, or call it jpg.

In order to compile, you will have to install basic developer stuff, for example

sudo apt-get install build-essential

You may have to install even more dev software depending on the application you want to compile. The biggest problem is that you may run out of RAM if you do too much stuff. Try installing linux on a virtual machine and you will keep it permanently.
[Samsung Galaxy Nexus] TheJuicer:
So I have gone through all of the steps and can see files to recover but it seems none of them are from the file system before my data was wiped during the unlocking of the bootloader. They are all the most recent files since I started fresh. I am specifically looking for video files and pictures. Are those not in the data block? Also looking to restore where the colornote app saves it's files. Thanks.
[Samsung Galaxy Nexus] scandiun:
If you used too much the storage such pictures or videos may be overwritten, just take a shot with different utilities.
[Samsung Galaxy Nexus] gnustomp:
The disk gets dumped as a .raw, meaning it is raw and unformatted, converting it to a VHD lets you mount it in Windows, otherwise you can mount it as dirty ext4.
[Samsung Galaxy Nexus] Wartickler:
So in my example I used the Recuva software. In that tool if you don't select the 'Deep' scan it won't find files that had been deleted, it will only find files that existed 'at the surface.'

Does that make sense? That may not be the issue but double check it...

With regard to the save location for Colornote if it's on the /sdcard partition it will be found...hopefully =-O

Sent from my Galaxy Nexus

"Two hours? I think I could do better than that streaming Netflix with torch on. Something is very wrong there." - mmuzzy
[Samsung Galaxy Nexus] spooky09:
does the file mmcblk0p12.raw in the nexus directory has to increase size (mb) by time passing???

or it will all come up when it's done???

I waited like 10 minutes and it's still 0 byte

is it normal??
[Samsung Galaxy Nexus] Aftermathx25:
RE

I have problem with this command I guess:

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

It's not returning any output, but it's processing, I was waiting for like 15 minutes but nothing happened.

But command:

/system/xbin/busybox dd if=/dev/block/mmcblk0p20

Is printing whole content of this partition to the console.

I need to recover files from LG P710 L7 II and I figured about that in this case "mmcblk0p20" is my sdcard partition, because "fdisk -l" returns:

Disk mmcblk0p20: 1941 MB, 1941962752 bytes
4 heads, 16 sectors/track, 59264 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk mmcblk0p20 doesn't contain a valid partition table

It's size is closest to the sdcard size, so I guess it's the one I need.

I tried every file located in /dev/block/ and it's always telling me that Disk x doesn't contain a valid partiton table.

And after opening new terminal window and using command:

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

It's creating a blank file and almost immediately finishes processing.

What is wrong :confused:?

EDIT:

So I modified this process a bit and I managed to extract whole filesystem file. I'll test if is it possible to convert it to vhd and tell you how I did that
[Samsung Galaxy Nexus] dartveiga:
Cygwin must be 32bits for Netcat compatibility

I Had this same problem. Everything seamed to work, but I always got an empty file.

The problem was I was using Cygwin 64 bits. and nc.exe was in a wrong directory (as instructed on it's own installation page).

To fix the empty 0 bytes files and actually receive the memory dump:

1) Install Cygwin 32bits

2) Place nc.exe inside C:\cygwin\bin

I tried for several hours, but only got it to work after doing that.

---------- Post added at 03:00 PM ---------- Previous post was at 02:36 PM ----------

See my response above.

You must use Cygwin 32 bits instead of 64 bits.

And you must put nc.exe in the right path: C:\cygwin\bin\nc.exe
[Samsung Galaxy Nexus] Aftermathx25:
I was using 64 bits... So maybe you're right. But I used another method but I won't share it until it's not tested completely.

EDIT:

My method is working aswell and you don't need nc.exe

Do 1-4 steps then open Cygwin terminal and enter:

adb shell "su -c '/system/xbin/busybox dd if=/dev/block/mmcblk0p12' " > mmcblk0p12.raw

Do 7th step :)

After it finishes you need to do last modification to your file. You need a hex editor, I used HxD to delete last lines of this file because we don't need them. there is something like:

3792896+0 records in...3792896+0 records out...1941962752 bytes (1.8GB) copied, 722.507855 seconds, 2.6MB/s...

in the end. I wanted to post a picture but I'm not allowed because I have just 2 posts on this forum. After you delete this lines you just follow the instructions from step 8 to the end. And voila!

I personally extracted wrong partition and I recovered only firmware files, but files are fully working and readable.
[Samsung Galaxy Nexus] dagamer1991:
Hey im facing the exact same problem as you with the exact same phone LGG2.

did u find any solution to recover the photos BEFORE the reset or the KK update ??

pls share if you do, it'd save me really some time and money.. Thanks a lot.
[Samsung Galaxy Nexus] God_:
Is to do bouth steps in the same time ?

When im doing the first one i cant do the 2º , give me error...

EDIT , miss a " su " before the comands :D , solved.
[Samsung Galaxy Nexus] jacktackle:
I have an strange and big problem.

i guess i can get some help with adb comands here.

my phone is Asus padfone infinity. which is stuck on boot screen.

i guess its not rooted neither bootloader unlocked but can access the stock recovery menu

the bad part is it does not have external sd card and can flash anything from the internal sd only.

i need a command to push custom recovery file to the internal hard disk from there i can flash it normally.

can any body help me?
[Samsung Galaxy Nexus] jermo:
adb shell error exec '/system/bin/sh' failed: Permission denied (13)

Hello gents! been trying to recover some sweet cat pictures for about a week now on my Samsung S4 on MK2. Everything is downloaded and in its right place ready to go for this, but i keep getting an error from the start when trying to run ADB Shell "exec '/system/bin/sh' failed: Permission denied (13)".

I know this is because my phone/I did not give it permission to do so. I may have missed it when it asked i do not know but please read further. First my phone is of course rooted, i have SuperSU installed and am kind of tech savvy. I've tried to search this thread for the answer and google itself, i caved in and am finally asking you guys. ADB is connected to my phone for sure, i have checked SuperSU and "ADB shell" was in the list and said access was granted. I tried switching it to prompt me and restarted everything. That did nothing so i switched it back to grant, restart everything and still same error. I finally deleted it from the SuperSU list and restarted, still won't ask me again to grant it persmission. How can i get it to prompt me to grant access to ADB Shell?!? Thanks!
[Samsung Galaxy Nexus] Shazb0t:
Pretty cool! Thanks for the information, could be useful down the road.
[Samsung Galaxy Nexus] orange16:
HTC desire 501
[Samsung Galaxy Nexus] bossfei:
Recover

hey there, a quick question. am i able to recover using this method if i factory reset my phone and cleared all user data?

Edit: using a nexus 5 rooted