yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] uch1da:
Yes, I retried the entire process after a failed attempt of the entire process.

Read all 35 pages.

I noticed that restarting the phone removed the error on a different computer.

Success! Creating 13GB raw file. Estimated time: 73 minutes so I'm going to sleep and continuing tomorrow.

Thank you so much!

I tried DeepDigger (excellent android app for image recovery), and various other Windows recovery software on the raw file.

I was able to recover one very old picture. Seems like so many other images, documents, and videos were overwritten 6 hours after deletion.
[Samsung Galaxy Nexus] Crocodile3:
Thanks! & Effective video recovery program?

Thanks for this awesome tutorial , it worked perfectly on my S3. :DThe only problem is that I am unable to recover my video files with any of the programs I tried, or If I recover them they are corrupt/unplayable.. (Photos are generally found OK)

I wonder if anyone knows a good recovery program for video files? (I tried Recuva, Phoenix Stellar, Remo, EaseUS, Pandora, Wise Data Recovery, VirtualLab) Thanks! :fingers-crossed:
[Samsung Galaxy Nexus] anirudhks:
If its a Mp4 or 3gp file , use google to search for repairing . there are loads of free tools out there ...

---------- Post added at 07:57 AM ---------- Previous post was at 07:56 AM ----------

Thats a good news :)

Hit thanks if it helped you :)
[Samsung Galaxy Nexus] caro23:
All these Freeware tools are crap.

There is nothing better than R-Studio.

You don't even have to convert and mount the extracted data. You can directly open the RAW!

1. Open R-Studio and klick on "Open Image". Choose the "all files"-filter and open the raw-file.

2. Select the mounted raw and klick "Scan".

3. After the scan, you can see all deleted and non-deleted files in the folder structure.

Due to the way Andorid mounts the data partition, the files are eventually not listed in /media/0. Instead, you have to search in the Extra Found Files. In most cases the filenames are lost - so you will have a lot of work to do... But that's a problem of the file system and applies to all recovery tools.
[Samsung Galaxy Nexus] JungWoo:
I did this, but the pictures that returned are not the ones that were on the phone.

It returned mostly images in the cache, as well as picasa photos that didn't get deleted.

Is it hopeless?
[Samsung Galaxy Nexus] anirudhks:
are you sure no data was overwritten on that drive before you could stream it to the computer?
[Samsung Galaxy Nexus] oofrost:
I don't know if you've figured this out yet, but I had a problem just like yours. I decided to download the nc.exe file from another location and I was able to get it to work. Try this

NetCat:

http://www.daemon.de/idisk/Apps/netcat-openbsd-cygwin/netcat-openbsd-win32-1.10.2.3.zip

Hope it helps.
[Samsung Galaxy Nexus] TechGuyDev:
Wow

Well Job Dear . Thanx a lot .. :laugh:
[Samsung Galaxy Nexus] Jerreth:
After starting the process how long should it take to see data gathering in the raw file? it has been 10 minutes and it still says 0 bytes. is it working or is it just hung? the timer is counting though
[Samsung Galaxy Nexus] hololodilolo:
Is the process going inside command line windows?
[Samsung Galaxy Nexus] Smantanasiceapa:
does anybody knows if will work on Galaxy S Plus?
[Samsung Galaxy Nexus] anirudhks:
Yes works on al android phones..
[Samsung Galaxy Nexus] han-shinbi:
For S3 Tmobile

Which mmcblk0p__ do I use? 12 or 15? Also, the arrow indicator never seems to get far in the 2nd window. It's like the file is very small?
[Samsung Galaxy Nexus] anirudhks:
run the below command to see which partition is the one u want to recover ,

su

find /dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \;
[Samsung Galaxy Nexus] han-shinbi:
For S3, S2 or any other Device: We NEED TO TYPE THE CORRECT PATH OF THE PARTITION!

FOR S3 it's /dev/block/platform/msm_sdcc.1/mmcblk0p15

For any other, we can use android commander or anything similar to find the file path, then note your correct path to use instead of "/dev/block/mmcblk0p__" if it doesn't work for you. NOTE the folder after /platform/ _______/ mmcblk0p__

THANK YOU ALL!! I HAVE TO SAY, DON"T DO THIS WITHOUT ENOUGH SLEEP! Or else everything will not make sense! :eek: This is my 2nd day at looking at all of 37 pages. Now I get it.

EDIT:

It only recovered 12.GiB out of the the whole 13.1 GB in 7:43:50. Is this normal? :confused:

EDIT EDIT:

It's correct, I found stuff that I was looking for and then some... :mad:
[Samsung Galaxy Nexus] ykchavan:
Did not work on nexus 4

I tried this on JDQ39 build of Nexus 4 and it did not find any file. I guess *evil* google is now zeroing out all internal sdcard. Anybody tried this on Nexus 4?
[Samsung Galaxy Nexus] han-shinbi:
Try to find where the actual data is in- use this to find:
[Samsung Galaxy Nexus] ykchavan:
Userdata partition is actually ext4 for Nexus 4

Found that biggest partition is

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

Disk /dev/block/platform/msm_sdcc.1/mmcblk0p23: 14.1 GB, 14129561600 bytes

Disk /dev/block/platform/msm_sdcc.1/mmcblk0: 15.7 GB, 15758000128 bytes

Copied /dev/block/platform/msm_sdcc.1/mmcblk0p23 on my desktop

# ls -lh mmcblk0p23.raw

-rwxrwxrwx 1 ychavan root 14G Mar 3 15:58 mmcblk0p23.raw

But if I mount that file(on my desktop) , I see ext4 filesystem

# mount mmcblk0p23.raw /mnt/

# mount | grep mnt

/media/general/Nexus4Bkup/mmcblk0p23.raw on /mnt type ext4 (rw,loop=/dev/loop0)

# file mmcblk0p23.raw

mmcblk0p23.raw: Linux rev 1.0 ext4 filesystem data (needs journal recovery) (extents) (large files)

# ls /mnt/

app app-private cam_socket1 dontpanic lost+found nfc resource-cache user

app-asec audio dalvik-cache drm media property ssh

app-lib backup data local misc qcks system

If I do ext4 recovery, all I get is 'google current' cache files. Some text files, some xml files. There is no data file anywhere. If this is the biggest partition(13GB) on Nexus 4, where does it store photos and videos?
[Samsung Galaxy Nexus] daihanviet:
hello everyone i desperately need help. im encountering this problem when i am at the cygwin terminal:

Giai@Giai-PC ~

$ adb forward tcp:5555 tcp:5555

Giai@Giai-PC ~

$ adb shell

shell@android:/ $ su

su

shell@android:/ # /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p15

em/bin/busybox dd if=/dev/block/mmcblk0p15/bin/busybo <

sh: /system/bin/busybox: not found

127|shell@android:/ #

it keeps saying that it is not found .... i dont know what to do from this point. i decided to just proceed to see what happens, so i follow onto the next step. i opened up another cygwin terminal and type in this:

adb forward tcp:5555 tcp:5555

cd /nexus

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

now it's suppose to download but instead it just stays at 0b. someone please tell me what i am doing wrong? i followed all the steps and im getting really frustrated with how this is suppose to work. im not much of a computer guy so this is somewhat complicated to follow up. hopefully you guys can help :s
[Samsung Galaxy Nexus] anirudhks:
Try system/xbin.busybox

most of the times its not in bin its in Xbin
[Samsung Galaxy Nexus] daihanviet:
im having problems now i cant seem to connect my device with adb from cmd prompt. i type in adb kill-server then i type in adb devices for it to start and see my connected devices but nothing is listed there. i went to device manager to see if my samsung is even on there and it shows nothing. someone please help me! what just happened?! the last time i was doing this was the above post. i just pulled out my device from my usb cable from the port. was i not suppose to? >___< am i screwed?~
[Samsung Galaxy Nexus] anirudhks:
Relax .. your not Sc**** just simple thing to do is just retart your phone and PC as wel , it should be able to connect , sometimes ADB acts weird..
[Samsung Galaxy Nexus] daihanviet:
that didn't work :(
[Samsung Galaxy Nexus] anirudhks:
can you use root explorer and check if there is a folder call bin or xbin .. also you can install busybox from playstore
[Samsung Galaxy Nexus] daihanviet:
im currently using rootexplorer and doing a search for xbin and bin, i do recall there was a bin folder for storing .apk files from the unsaved or unfinished apps from the playstore... is there a specific way to tell if that is the right xbin or bin? like specifically where is that obtained or did that came along with the stock firmware of the jelly bean?
[Samsung Galaxy Nexus] anirudhks:
No busy box does not come with stock firmwares , you will need to be rooted to do this operation and busy box can be installed from the playstore.

here is the link for it

https://play.google.com/store/apps/details?id=stericson.busybox&feature=search_result
[Samsung Galaxy Nexus] daihanviet:
no im already rooted and i already have installed busy box (free one) i meant while i am searching for the "bin or xbin folder" is there a specific directory to locate this? i do see "sbin" folder. but so far i am unable to locate "xbin folder and bin" folder >_<
[Samsung Galaxy Nexus] anirudhks:
xbin or bin is under the /system when you browse via root explorer go to /system you should find bin or xbin .. if not uninstall and reinstall your busy box
[Samsung Galaxy Nexus] daihanviet:
i think i got it working :D (wooohoo!) thank you so much dude. i found out that busybox is under xbin folder and i retyped all of that and this time it starts to download. hopefully i'll get it down from here. :D
[Samsung Galaxy Nexus] anirudhks:
Thats good news ... good luck in your recovery...
[Samsung Galaxy Nexus] Med1a:
yes I tried with su and without su .. busybox installed in /system/xbin and I have checked that million times :(

I'm not sure if su got permission granted cause nothing showed up on the phone and yes dd works fine see the picture attached
[Samsung Galaxy Nexus] scandiun:
Yes you got su granted since the shell shows you the # that is for su, the $ is for unprivileged user.

Try reading from the p12 partition in case it is there the fault:

adb shell
su
dd if=/dev/block/mmcblk0p12 of=/dev/null bs=512 count=1

It's weird, you seem having adb connection problems between the phone and the computer. I suggest you to try another different port from 5555, and if doesn't work either, try receiving the raw file via wifi instead via usb cable, you have here an example:

http://xdaforums.com/showpost.php?p=27793062&postcount=17
[Samsung Galaxy Nexus] Med1a:
it seems that mmcblk0p12 is zero byets :( .. I don't know someone tell me that i'm wrong .. see picture attached :(
[Samsung Galaxy Nexus] scandiun:
It always shows 0 bytes because is a block device. You have to read it with dd or use some partition editor, you cannot read it directly via ftp.

With fdisk

fdisk -l /dev/block/mmcblk0p12

With parted

parted /dev/block/mmcblk0p12
print

Furthermore you are using Filezilla Client, not Filezilla Server, so try reading directly the fifo.
[Samsung Galaxy Nexus] Med1a:
am I doing good so far ?
[Samsung Galaxy Nexus] scandiun:
Put the myfifo in /cache not in /data that is where you are reading from and where you are supposed to recover deleted files so you shouldn't write there

Open one terminal

adb shell
su
mkfifo /cache/myfifo
ftpput -v -u ahmed -P 40 192.168.1.114 p12.raw /cache/myfifo

Open another terminal

adb shell
su
dd if=/dev/block/mmcblk0p12 of=/cache/myfifo bs=4096

Now check on Filezilla Server the speed
[Samsung Galaxy Nexus] Med1a:
Thank you so much scandiun .. It was always giving me connection time out even if I set time out to 0 in the settings I tried many times then I got tired, After all that I discovered another way you can get it as a tip :) . I used USB tethering option in the phone to make local connection between my computer and the phone with HIGH SPEED transfer rate ... mine is 16 gb and it took 2006.030 secs to transfer it to my computer :)

Thanks again :)
[Samsung Galaxy Nexus] Wartickler:
Success! Would you please share precisely your steps that gave you this success for any future users that find this thread? Congratulations!

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] hetunandu:
galaxy nexus, gsm, 4.2
[Samsung Galaxy Nexus] Med1a:
I will write up all my steps using FTP later .. just wait me
[Samsung Galaxy Nexus] craigcrawford1988:
Thank you, you beautiful, beautiful, person.

The only problem I had was I had to install "nc". Maybe good to add that to the guide?
[Samsung Galaxy Nexus] marhensa:
I'll wait for this new faster method..

Thank you and congratulation! :)

Sent from Galaxy Nexus - Android Jelly Bean 4.2
[Samsung Galaxy Nexus] scandiun:
It already exists in the guide
[Samsung Galaxy Nexus] craigcrawford1988:
Ah, I must've missed it. My bad, thanks for the guide.

One question, though. Recently deleted videos off my Nexus appear to only display a short fraction of the start of video, these are large files (500MB). Are they gone forever or?
[Samsung Galaxy Nexus] Wartickler:
Good question...

My assumption is that the files won't adequately come back as complete files if some part of them had been overwritten. Unfortunately, if the phone was allowed to run for a while after the data was deleted then it's possible that the O.S. decided it was okay to write in those "unused" sections. Possibly you only have those files up to the section where they got overwritten...?

I'm sorry you lost those :(
[Samsung Galaxy Nexus] craigcrawford1988:
It's ok buddy, the pictures are more than good enough. Thanks so much for writing this, I was pulling my hair out trying to find a working app and came across this by chance.

You are a savior.
[Samsung Galaxy Nexus] no.one.writeme:
Repost of PM send to Wartickler

Hi there Wartickler,

First of all congratulations for the great tutorial.

I am sending this PM because I followed your tutorial and got one result and then I tried a variation of my own and I got a another result.

So I am sending you my observations so that you can also confirm, or not, my results.

I made the dd image of cache partition, /dev/block/mmcblk0p11 using this method:

fastboot boot openrecovery-twrp-2.3.2.1-maguro.img

so that the system wasn't running, and them I followed the instruction on how to make the partition image.

Following the rest of your tutorial on Windows, recuva found zero files.

The variation that I mentioned above was the following:

With the help of photorec, both on windows and linux I got 10 files recovered.

./photorec mmcblk0p11.img

Proceed->

Partition Unknown [Whole disk]

Search->

ext2/ext3->

Btw testdisk also let's you undelete files and copy files from the image.

Can you please test and give me some feedback.

Thank you in advance,

Best regards,

Luis.
[Samsung Galaxy Nexus] Wartickler:
Interesting one...

Are you using a Galaxy Nexus? I don't know if it matters but the tutorial suggests p12 not p11. I'm not sure that it matters because you will end up pulling all 32GB anyways but maybe that's a point of failure. I don't know.

I can't necessarily vouch for Recuva although it did work for me. I'm certain that there are numerous tools that do better/worse jobs than others. Thank you for posting your steps in recovering files. How many files did you expect to recover?
[Samsung Galaxy Nexus] no.one.writeme:
As proof of concept I tried the procedure with the cache partition, hence p11, because I didn't want to pull a 16GB image out of my Galaxy Nexus.

Since it was the cache partition I thought that I would get a lot of recovered files. I didn't and recuva recovered none. So I thought it to be a little strange. That is the reason of my PM to you.

Thank you for your time,

Best regards,

Luis
[Samsung Galaxy Nexus] Wartickler:
I think I understand now!

What type of files did you return? I think that Recuva only scans for certain file types that it knows about like documents, images, music, etc.

I'm interested in what size your /cache RAW file was.
[Samsung Galaxy Nexus] ykchavan:
I used photorec and all I got is 'google current' cache files. and one zip file with 6gb size. There is no photo or video file recovered. So I did experiment of taking some photos and deleted them and tried to recover. It worked. Then I formatted /data from recovery and tried to recover. It still worked. So I guess that on nexus 4, you can recover deleted files using this method. But somehow, you can not recover sdcard files when you unlocked bootloader using this method.
[Samsung Galaxy Nexus] daihanviet:
darn i didn't manage to recover 229 of my photos that got deleted :(, (darn you tumblr!!!) lol it turns out the photos that i could recover were ones i've recently seen on tumblr and videos from youtube (so odd how this works out..) can someone explain why this is? i see some video clips that i watched on youtube - frame shots etc. are files being overwritten? and why?
[Samsung Galaxy Nexus] anirudhks:
If you used recuva it sometimes fails , use better recovery tools like R studio or stellar phoenix
[Samsung Galaxy Nexus] ykchavan:
Stock recovery data wiping is not recoverable

Confirmed... I installed stock rom then unrooted.. then locked bootloader using nexus 4 toolkit. Took some photos , shot some videos. Then unlocked bootloader using command 'fastboot oem unlock'. Then tried this tutorial to recover data....and could not recover anything.

Conclusion - Google stock recovery clears out data such way that it is not recoverable.
[Samsung Galaxy Nexus] BabyHuey:
great nevermind. just read the above
[Samsung Galaxy Nexus] jasondowning85:
good info to have. thank you!
[Samsung Galaxy Nexus] anonymous girl:
hello there,

before I start following the instructions above, may I know if my S3 screen appears 'encryption failed' and i've already reset the device (all data gone now), can I still recover all the files like contacts and photos with this recovery solution?

many thanks!
[Samsung Galaxy Nexus] claudiuch:
Hi guys,

I've tried the first guide and the one from post #176... and many thanks to both of you. I've managed to recover about 80% from my pics with Zero Assumption Recovery but I didn't managed to import the .raw file in Disk Management. My machine is : Win 8 Pro, 64 bit. My phone is Nexus Galaxy (unlocked + root but with stock 4.1.1 rom).

After I run: VhdTool.exe /convert mmcblk0p12.raw, everything goes ok. But when I try to import the file in Disk Management the following error pops : A virtual disk support provider for the specified file was not found.

The file extension is still raw after running VhdTool.exe /convert. Shouldn't be .vhd?

Thanks for all your help and if there is a page to donate, I'll be glad to do that.
[Samsung Galaxy Nexus] JAsko_san:
well I've established a connection via adb and cygwin to my LG Optimus4X - and I've found the exact path of my internal memory, recently I've deleted my 14GB od "internal memory" when I was trying to unlock my bootloader....anyway, when I start the process, the time counter is working fine, it displays the time that has past, but how long does it take to get it started ??? I mean how long until it shows me how much bytes it has created????

Because I've run this for about 45min and the created raw file is still 1byte big ??? any solutions guys ???

Here are some screenshots:
[Samsung Galaxy Nexus] anirudhks:
What you can do is just once the command is complete. Rename the raw file to. Vhd it will work..
[Samsung Galaxy Nexus] spaceghost21:
Every thing went well until i got to the device management, i dont have the option of "attach vhd" on the menu under actions. am i missing something please help
[Samsung Galaxy Nexus] claudiuch:
The Attach VHD option is only on Windows 7 and 8.

@anirudhks: thanks, it worked. I've managed to scan it with Recuva.

Thanks all
[Samsung Galaxy Nexus] anirudhks:
No worries mate glad could help..
[Samsung Galaxy Nexus] vlc_marcos:
could someone do a video with all the steps, since the software that is needed until where to install. like the first page but on a video. please or my gf is going o kill me because of the pictures that i took and after i lost them :(
[Samsung Galaxy Nexus] spaceghost21:
youtube.com/watch?v=Mwn20Udp5YA
[Samsung Galaxy Nexus] :
thank you for this very helpful guide!
[Samsung Galaxy Nexus] aliensk:
re

big thank you :) deleted by mistake in recovery and used your guide to get the raw file then as some user sugested skip the rest and used ZAR and the result: recovered all :) ty for the wonderfull guide. all the ppl having problems follow all to the letters and ull fix it :)
[Samsung Galaxy Nexus] andrew327:
getting

error anyone
[Samsung Galaxy Nexus] designori:
If I knew it a month ago.. anyway thx for sharing good tip!
[Samsung Galaxy Nexus] spaceghost21:
No Problem.. dont forget to hit thanks it would really help me out ;)
[Samsung Galaxy Nexus] AndroidSomeday:
HELP

Hello guys,

SO I got this problem after typing in the nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p15.raw command.

It says: bash: pv: command not found.

Why does it say this? I really need my files back!

Greetings,

AndroidSomeday
[Samsung Galaxy Nexus] RollerCoasting:
Hmm. I just went through this process with my galaxy S III. I'm trying to recover the files but it ends up as about 3000 small image thumbnails, plus a few 20mb Zip files and then a 4.5gb PDF file. I've tried changing the extension of the PDF but I can't figure out how to open it. any tips?
[Samsung Galaxy Nexus] Rencx:
pv: command not found solution

For all who have this "pv" problem please download attached file and use 7-Zip and don't forget to hit Thanks Button!

You have to place pv.exe in "cygwin\bin"

mirror: sourceforge
[Samsung Galaxy Nexus] ppd0526:
I'm looking for any tips.

So the other day I was trying to clean my internal memory and just deleting files/folders that were showing up on Windows and copying over other ones. I was copying some pictures over and all of a sudden it said it couldn't copy due to an error. And then I unplugged and replugged in my phone and it was still not working. I restarted and then upon the restart, all of my files were gone from the internal memory. I have since copied over the memory block but I'm not sure if there's another way to recover my files aside from Recuva? Because I don't think all of my files are showing up.
[Samsung Galaxy Nexus] anirudhks:
use R Studio much better one
[Samsung Galaxy Nexus] ericmaxman:
Worked like a charm!

Thanks for the excellent guide =D
[Samsung Galaxy Nexus] asmodi:
I had tryed maybe 10 times but always dont work , always the counter still at 0.00.00 and the raw file size is 0 ko , my s3 is rooted (i can see the su pop up saying that it granted for ADB ) and i had verified the data partition its mmcblk0p12 any sugestion ??
[Samsung Galaxy Nexus] spaceghost21:
For a glaxy s3, the partition should be "mmcblk0p15". Try it again using 15 instead of 12
[Samsung Galaxy Nexus] TechGuy334:
nc: command not found?????

I keep getting the nc: comand not found error when i try to complete the raw file process. WHAT AM I DOING WRONG:confused:
[Samsung Galaxy Nexus] winamp26:
download this file and extract to (c:/cygwin/bin)
[Samsung Galaxy Nexus] cfan7777777:
I follow your steps.when i run "/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/mmcblk0p12",it shows:"nc:applet not found". I put "nc.exe" into /bin.when i run nc '127.0.0.1 5555 | pv -i 0.5 > mmcblk0p12.raw',it shows correct!

WHY?
[Samsung Galaxy Nexus] cfan7777777:
View attachment 1832694