yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] 02ranger:
Thank you so much for posting this! I accidentally deleted every photo in my photo gallery and have been able to recover some using this method. Its awesome. :)

I noticed that none of the pictures I took with my current phone (gsm galaxy nexus), none of my screenshots, and a lot of wallpapers didn't make it, but pictures from an old phone in the same folder did. Would the /sdcard/Pictures folder be on mmcblk0p12 or elsewhere? I would assume its with the rest of the sdcard data, right? I may have just lost that stuff, but I'm still hoping to find it, since those files are what I was trying to recover to begin with. :) I copied the block data over within a couple hours of the deletion and barely used my phone in between. If anybody has any ideas that's great, but I'm just happy I did actually recover some of it. Thanks again!! :D

Edit: I just realized new camera pics would be under DCIM. Would that folder be with the rest on the userdata block?
[Samsung Galaxy Nexus] mugabuga:
How do I set up ADB inside of the cygwin folder?
[Samsung Galaxy Nexus] worf_1977:
It is installed by default with Android SDK.

As long as you setup yor PATH environment, you don't need to install it through CYGWIN

Sent from Quo'nos via subspace transmission
[Samsung Galaxy Nexus] coiotul:
I`m a proud possesor of a Nexus 7. The internal data was wiped by mistake when trying to install a new custom rom. I`ve identified that the user data partition on nexus 7 is mmcblk0p9, but when I run "nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p9.raw" the command shows just the following: "0 B 0:00:00 [ 0 B/s]".

In the cygwin folder I have a RAW that is empty having 0KB.

Could any of you guys explained to me what I`m doing wrong and why the export is to RAW file is not starting ?
[Samsung Galaxy Nexus] captinhack:
hi is there no way without rooting :(

if there's really will be awesome :p:good:
[Samsung Galaxy Nexus] coiotul:
I forgot to mention that my Nexus 7 is rooted, and I have access to all system files...
[Samsung Galaxy Nexus] spaceghost21:
Are you running the commands as an administrator?
[Samsung Galaxy Nexus] abc8877:
Hihi, I'm having the same problem. I had done all the steps correctly. When go into the recover session, none of the picture make it.

Btw, did you manage to find a way to recover all those deleted photo from gallery 1?
[Samsung Galaxy Nexus] Mohdoo:
Edit: Found busybox.

My timer is indicating it is transferring at 0 B/s. Is this normal? Its only been going about 2 minutes.

Is it possible that my phone is not connected in ADB mode? I am not sure how to connect my phone in ADB mode. Any help much appreciated.

Here is a screen shot of my first window:

And my second window:

Any help would be very appreciated :(

Thank you!!
[Samsung Galaxy Nexus] Va1ha1a:
I'm having the above issue as well.
[Samsung Galaxy Nexus] bmilitant:
how do i do this? back up the entire internal memory partition to your computer as a single, massive .RAW file,
[Samsung Galaxy Nexus] JTIII:
CM 10.1 Sprint Galaxy S3 Help

I've searched through this thread to see if anyone who has CM10.1 on their Sprint Galaxy S3 had any knowledge on how to find the userdata since there isn't a /dev/block/mmcblk0p15. Can someone show me which directory I should be looking for that has the internal sdcard data? I would greatly appreciate it. I understand that I'm in the wrong forums, but with much searching I can't find a guide similiar to this. Thanks in advance.

My Sprint Galaxy S3 using CM10.1

drwxr-xr-x root root 2013-04-15 17:36 acct
drwxrwx--x system cache 2013-04-15 23:59 cache
-rwxr-x--- root root 269180 1969-12-31 19:00 charger
dr-x------ root root 2013-04-15 17:36 config
lrwxrwxrwx root root 2013-04-15 17:36 d -> /sys/kernel/debug
drwxrwx--x system system 2013-04-15 23:25 data
-rw-r--r-- root root 136 1969-12-31 19:00 default.prop
drwxr-xr-x root root 2013-04-15 17:37 dev
drwxrwx--x system radio 2012-07-01 13:22 efs
lrwxrwxrwx root root 2013-04-15 17:36 etc -> /system/etc
lrwxrwxrwx root root 2013-04-15 17:36 extSdCard -> /storage/sdcard1
drwxrwxrwx root root 1969-12-31 19:00 firmware
-rw-r----- root root 960 1969-12-31 19:00 fstab.qcom
-rwxr-x--- root root 109500 1969-12-31 19:00 init
-rwxr-x--- root root 1238 1969-12-31 19:00 init.cm.rc
-rwxr-x--- root root 2487 1969-12-31 19:00 init.goldfish.rc
-rwxr-x--- root root 7040 1969-12-31 19:00 init.qcom.class_core.sh
-rwxr-x--- root root 4539 1969-12-31 19:00 init.qcom.class_main.sh
-rwxr-x--- root root 4031 1969-12-31 19:00 init.qcom.early_boot.sh
-rwxr-x--- root root 2656 1969-12-31 19:00 init.qcom.lpm_boot.sh
-rwxr-x--- root root 18447 1969-12-31 19:00 init.qcom.rc
-rwxr-x--- root root 4039 1969-12-31 19:00 init.qcom.sh
-rwxr-x--- root root 2848 1969-12-31 19:00 init.qcom.syspart_fixup.sh
-rwxr-x--- root root 27763 1969-12-31 19:00 init.qcom.usb.rc
-rwxr-x--- root root 5658 1969-12-31 19:00 init.qcom.usb.sh
-rwxr-x--- root root 19286 1969-12-31 19:00 init.rc
-rwxr-x--- root root 11067 1969-12-31 19:00 init.target.rc
-rwxr-x--- root root 1795 1969-12-31 19:00 init.trace.rc
-rwxr-x--- root root 3947 1969-12-31 19:00 init.usb.rc
-rwxr-x--- root root 93424 1969-12-31 19:00 initlogo.rle
-rw-r--r-- root root 2988 1969-12-31 19:00 lpm.rc
drwxrwxr-x root system 2013-04-15 17:36 mnt
drwxrwx--x system system 1969-12-31 19:00 persist
dr-xr-xr-x root root 1969-12-31 19:00 proc
drwxr-xr-x root root 1969-12-31 19:00 res
drwx------ root root 2013-04-13 02:13 root
drwxr-x--- root root 1969-12-31 19:00 sbin
lrwxrwxrwx root root 2013-04-15 17:36 sdcard -> /storage/emulated/legacy
dr-xr-x--- system sdcard_r 2013-04-15 17:36 storage
dr-xr-xr-x root root 2013-04-15 17:36 sys
drwxr-xr-x root root 2013-04-13 17:58 system
lrwxrwxrwx root root 2013-04-15 17:36 tombstones -> /data/tombstones
-rw-r--r-- root root 272 1969-12-31 19:00 ueventd.goldfish.rc
-rw-r--r-- root root 9098 1969-12-31 19:00 ueventd.qcom.rc
-rw-r--r-- root root 5465 1969-12-31 19:00 ueventd.rc
lrwxrwxrwx root root 2013-04-15 17:36 usbdisk0 -> /storage/usbdisk0
lrwxrwxrwx root root 2013-04-15 17:36 vendor -> /system/vendor
[Samsung Galaxy Nexus] stiankarlsen:
Will this technique work for formatted internal memory as well ?

(Note, I've read through all 40-something pages, but English is not my first language, so it's kinda hard to get a technical understanding.)

(And I use a Mac, that should say something about my level of competence.)

(And the fact that I restored my GF's phone to factory defaults, and that she doesn't have any backup of anything, what-so-ever.)
[Samsung Galaxy Nexus] 02ranger:
Nope, I never did have any more luck. I just gave up cause I hadn't heard anything here and I figure I must've been in the right partition since I got some pictures to recover. Really sucks too, I lost a LOT. Oh well, you live and learn I guess. I'll keep my pics backed up somewhere now. I think maybe the app that deleted them is why I lost so much. Its the only thing I can think of. I was using QuickPic and there is a select all button that I hit that doesn't really even look like a button at all, but I wonder if QuickPic doesn't overwrite when it deletes.
[Samsung Galaxy Nexus] anirudhks:
this usually happens if you are trying to do a copy paste from notepad I would suggest you to type the code manually

also make sure your firewall / AV is off .. sometims NC is blocked by AV..

---------- Post added at 12:38 PM ---------- Previous post was at 12:35 PM ----------

the recuva is a crap recovery tool , use stellar phoenix or Rstudio they will get you the pics u need
[Samsung Galaxy Nexus] 02ranger:
Stellar Phoenix did great for me! I still haven't gotten everything back (and I know I may never get it all), but it easily found two or three times as many useful pictures as any of the other software I tried. Thanks for that! :)
[Samsung Galaxy Nexus] oubeichen:
If only I had seen this article before,thanks all the time
[Samsung Galaxy Nexus] sniperkill:
There's a app in Google play store called "Undelete for root users" that will probably recover your deleted photos.
[Samsung Galaxy Nexus] 02ranger:
I tried that first but for some reason it wouldn't work. Something about the file structure of a Galaxy Nexus or because it doesn't have a separate SD card, I don't remember exactly. I couldn't even download it from the market, I had to side load it to even try. Stellar Phoenix has done really well though, so I'm glad of that. Thanks!
[Samsung Galaxy Nexus] orion2001:
Thanks so much!! This link to netcat should be in the OP. I couldn't find Netcat via the link in the OP and I ended up finding some version online but apparently it wasn't the correct one because I kept getting stuck with 0b/s transfer speed (what seems to be the case for a number of other folks).

Keeping my fingers crossed that I can recover my data.
[Samsung Galaxy Nexus] ybboy007:
problem

I have a problem once i do "adb start-server" it gives me the desired message but when i go to Cygwin and type "adb forward tcp:5555 tcp:5555 and hit enter it says "bash: adb: command not found" the phone is rooted and its t-mobile i do not know what to do
[Samsung Galaxy Nexus] spaceghost21:
youtube.com/watch?v=Mwn20Udp5YA

Follow this video step by step n it should work. If it works hit the thx so ppl can see it
[Samsung Galaxy Nexus] Mellow-:
Depressed soul reporting in

Stupidness ensued, all of my photos got deleted, and I've been melancholic ever since. I see great success stories in this thread, but mine will not be as such unless someone can lend me some assistance. I'm searching high and low for a means to non-destructively root my phone, which has unfortunately been updated to the latest build (JDQ39). Am I crap-outta-luck here, guys?
[Samsung Galaxy Nexus] anirudhks:
can you add more details about your phone ?
[Samsung Galaxy Nexus] Mellow-:
Such as?

It's a Galaxy Nexus (TORO) CDMA/LTE from Verizon currently running the latest build (JDQ39), unrooted and still locked. Seeking a means to rooted without unlocking so I don't loose my cache and can still recover my deleted pictures.
[Samsung Galaxy Nexus] anirudhks:
highly doubt to achieve this without root... unless any experts out here knows a way around
[Samsung Galaxy Nexus] lokenok:
Adb command not found?

---------- Post added at 07:50 PM ---------- Previous post was at 07:36 PM ----------

nvm but i cant do cd /nexus it says no such file or directory

---------- Post added at 08:18 PM ---------- Previous post was at 07:50 PM ----------

adb forward tcp:5555 tcp:5555

Lokx@Loken ~

$ cd /nexus

Lokx@Loken /nexus

$ nc 127.0.0.1 5555 | pv -i 0.5 > mmcblk0p23

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

0 b per sec????
[Samsung Galaxy Nexus] subsonicbug:
Wow. just went through this daunting process after accidentally deleting my 'storage' folder on my Galaxy Nexus and messing up the pointer to my internal storage or whatever the hell happened.

I'm a total n00b, but I did get it to work! At least, I got the whole RAW memory block copied over, and was able to mount the drive, quick format it, and then have it show up as an available drive on my system so I could run Recuva.

Some things I did have to do slightly differently than the steps in the Original Post:

1. No matter how many times I tried to add the Android sdk platform-tools folder to Environment Variables -> Path I could never get the adb commands to be accessible from any location command prompt, I always had to be in the platform-tools folder. So what I did was copy the adb.exe, AdbWinApi.dll and AdbWinUsbApi.dll files into cygwin\bin . This allowed me to run the adb commands while I was in the cygwin terminals

2. I had to add an 'su' command in between the adb shell command line and the busy box command line in Step 5

I recovered a TON of files, I just need to find what I actually care about in there.

As a 'just in case' I also scanned the virtual drive with another tool Test Disk ( http://www.cgsecurity.org/wiki/TestDisk ) so I have a lot of recovered stuff to sort through to find my pics / videos that were recoverable.

Hoping this post helps others. Thanks to Wartickler for the guide!
[Samsung Galaxy Nexus] wesssider:
I did the exact same thing. Hit delete on the 'storage' folder, then hit cancel immediately but it was too late. Currently exporting my 'mmcblk0p12.raw' file... 3+ hours...
[Samsung Galaxy Nexus] ant49:
Hello! I have a problem, I managed to create the RAW file but I can not convert it to VHD .. even if I give the command "VhdTool.exe / convert mmcblk0p12.raw" I do not convert the file ..
[Samsung Galaxy Nexus] anirudhks:
after you run the command it will not change , you will just need to rename the .raw to vhd yourself thats it ;)

Hit thanks if helped ..
[Samsung Galaxy Nexus] grantgw:
LG Nexus 4 notes

Hey guys;

First - awesome tutorial!

Some notes about challenges I hit:

within the shell from adb, I was having permission problems. It kept on saying permission denied, can't open file.

After typing su within the shell, type 'whoami' as well. If its not user "0", your phone root authorization isn't set up correctly. Its application specific, so you will have to grant it permission. I use "SuperSU", which shows a list of apps which have requested root privileges. You just have to click on ADB shell to make it work.

As others have stated here, its partition mmcblk0p23 that is the user data folder.

When I tried to transfer, it would transfer 300Mb or so, and then crash. I'd have to unplug/plug my phone and restart the commands from scratch. Each transfer would be a different size! I opened task manager, and set anything related to the ongoing transfer to high priority. The whole file transferred. My Nexus 4 p23 file size is 13798401 KB.

Finally - you can skip the microsoft software step. I used diskdigger (nagware), which found quite a lot of files. It works fine just off the raw data file you transfer.

Grant
[Samsung Galaxy Nexus] alfredoc01:
:good: Hi very new here, after reading you for years now I'm writeing something too ;) ..the procedure was ok! with the new driver for 4.2.2 I transfered the image @ 4MB/sec.

I have a Galaxy Nexus yakju 16gb (european), the problem is that I just can recover few files that are in the phone right now!

(the phone is 13gb free space now, was just 2gb free space before!!)

and not thousands pics that I had before

unlocking

the nexus with GN Toolkit 11 and than

rooted

to do the procedure of recovery of this fantastic post!

How I can act? :confused: thank you very much!

Al
[Samsung Galaxy Nexus] Mach3.2:
Shouldn't you like copy all the files on your phone before unlocking...

Beamed from my Maguro.
[Samsung Galaxy Nexus] alfredoc01:
hi scandiun, what do you think about that? How could it is possiple that I can't get no files even 1 single file from the "old" phone?

Only actual files :(

Thanks
[Samsung Galaxy Nexus] somstall:
thank you for the guide! i have some really important pictures on my internal sd card that i accidentally deleted so this tutorial is exactly what i need but there is one thing i am using windows 8, can someone confirm that it is save to use win 8 instead win7. I tried to search the forum for this but the search function isn't working atm. Thanks in advance! and keep up the good work
[Samsung Galaxy Nexus] Bastan92:
Just want to post that while I was successfully able to export the memory blocks, none of the old data showed up.

I'm running the stock 4.1.2 S3 i9300 firmware. Unless I was doing something wrong (possibly, but I don't think so), it seems like the stock standard recovery somehow writes zeros to the blocks. Very unfortunate.

Thanks so much for the guide though! I learned so much about the Android filesystem!
[Samsung Galaxy Nexus] yuriebc:
I do this on my Asus Tf300

but, after 3,5 hours, Recuva found only 130 files:

- 1 .pdf file with 24,4gb (!)

- 1 .ODE file with 1,52 gb

- another .pdf with 101 mb

- and some jpg and zip files

none of the recovery files are useful for me :(

any suggestions?
[Samsung Galaxy Nexus] sushil.mudgil:
Opening Post says Below ...

Unlock the screen.

Open a Cygwin terminal and enter (This assumes your BusyBox installation is at [/system/bin/busybox]. It may be at [/system/xbin/busybox]):

Do i need to open this Cygwin terminal on windows 7 laptop or inside the android phone. ??

If I need to open it inside windows , how can i open it ... shall i browse to normal cygwin directory created in C drive ?? Pls help me understand the same .
[Samsung Galaxy Nexus] ilconte81:
Really useful article, give me a big help!
[Samsung Galaxy Nexus] Cnhamm532:
awesome tutorial! I just had a total nerdgasm! :good:
[Samsung Galaxy Nexus] eRadicant:
Nexus 10 partition table
[Samsung Galaxy Nexus] Metal72:
Help! pv command not found

Thank You Wartickler! This guide is great!

Thank you SPhcT for pv solution!

---------- Post added at 09:03 PM ---------- Previous post was at 08:18 PM ----------

reinstalled cygwin with pv and util-linux

replaced pv.exe with new one (extracted from pv.zip)

checked busybox location

pv command still not found...

Help??

Thank you!
[Samsung Galaxy Nexus] scott1188:
Thanks for the Guide!

However i just manage to recover those photo and files which located in Whatsapp folder and Wechat Folder, I did not manage to recover all photo from Camera Folder.

Anyone encounter the same issue with me ?
[Samsung Galaxy Nexus] aznpandaman:
Problem mounting as VHD

So I followed the steps up to being able to extract the raw file from the phone (galaxy s3, I used /system/xbin/busybox and got mmcblk0p15 for this phone [tmobile variant]). After converting to VHD with the tool in cmd I'm unable to mount the file as a VHD it keeps giving me, "the requested operation could not be completed due to a virtual disk limitation. Virtual disks are only supported on NTFS volumes and must be uncompressed and unencrypted."

I ran the VHD tool multiple times and yet still no dice even though it completes successfully in CMD.

HALP Please!

I also ran ZAR on the raw file and was able to recover some minor thumbnails from album art and whatnot and it barely even touched the DCIM files :( I'm hoping Recuva will be able to do a better job.
[Samsung Galaxy Nexus] limit321:
Stuck with netcat invalid

I have just got about everything except the netcat part. Whenever I enter in the command, I get this invalid option regarding netcat. Someone please help me, I am very desperate in recovering my files.
[Samsung Galaxy Nexus] earsly:
Did you find the problem? I have the same issue....
[Samsung Galaxy Nexus] saros606:
I am also getting a .raw file of size 0kb... I have meticulously followed your instructions and I would greatly appreciate some options of what may be wrong here..
[Samsung Galaxy Nexus] limit321:
Seems like this thread has gone to the point where no one is willing to help anymore. It a thread being avoided i assume.
[Samsung Galaxy Nexus] Slomies:
Thanks!

I just did this on my sisters S3. I was able to save a BUNCH of her photos and even some videos. The videos had no sound, but still worth it when they are the only videos she had of my niece and nephew. Then she got a nice lesson on how to back all her stuff up onto her computer :P
[Samsung Galaxy Nexus] nexusn00b:
FINALLY GOT IT TO WORK!!

Wow...OK well, report to come after it finishes taking a dump.:highfive:
[Samsung Galaxy Nexus] nathajoz:
Yeah.... I agree with u...
[Samsung Galaxy Nexus] scandiun:
It is letter l not number 1
[Samsung Galaxy Nexus] berre:
Hi,

I want to restore my internal sd card on my Galaxy S2

I found the device via diskdigger

/storage/sdcard0 corresponds with /dev/block/vold/259:3

1) I've installed cygwin

2) commands in first window all work fine

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

3) created a "restore" directory

4) commands in seconds window work fine except the last command

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

first problem I encountered: "nc: command not found"

I downloaded the netcat.exe and that part is ok now but now I get "pv: command not found"

Anybody any idea on how to get that working?

** EDIT FOUND PV.EXE here : http://sourceforge.net/projects/pvforcygwin/?source=dlp **

Command now works, well it's running, but raw file remains 0 bytes... any thoughts?

Cheers!

B
[Samsung Galaxy Nexus] xLoveHateLegend:
Okay, so I'm a bit confused. I installed cygwin and opened the terminal.

I input: adb forward tcp:5555 tcp:5555

the terminal then responds with:

-bash: adb: command not found

anyone know what's going on?
[Samsung Galaxy Nexus] limit321:
ok thanks! I figured it out. Managed to recover all my stuff!
[Samsung Galaxy Nexus] igtomic:
Hello everyone,

I have read whole topic and followed the procedure but in the end I get this:

I would really appreciate some help because Ive lost a lot of important photos from my zte blade 3 .

Mmblck 22 is read by the diskdigger...

Thanks in forward !
[Samsung Galaxy Nexus] spinkman:
Invalid option --1 is telling you what it doesn't like please read a bit harder.

it's not a 1 its an 'l' like letter L, lima, loco, like, larry

---------- Post added at 02:06 PM ---------- Previous post was at 02:01 PM ----------

For those of you that are getting the ZERO sized raw files please make sure that you are rooted and using the su command and that your phone screen is on and you allow the SU request!!!!!

you MUST allow the request on your phone before it will do anything

---------- Post added at 02:17 PM ---------- Previous post was at 02:06 PM ----------

You need to install ADB or it is not in your systems path. that is a whole other thread. please google
[Samsung Galaxy Nexus] stringrazor:
I deleted a video I want to recover and searching has led me here. From what I've read, it seems that for my device, SCH-i515 VZW Galaxy Nexus Android 4.2.2 Build JDQ39, to recover files I need to root but by rooting I will delete all user data. My searches for a non-destructive root procedure for this device have come up empty. I can of course backup my data and apps before rooting. If I root and let the procedure wipe user data, is there still a chance I'd be able to recover a file deleted before rooting or would it be a waste of time?
[Samsung Galaxy Nexus] XERO_Racer:
on Cygwin showing

instead of

i also dont get an SU permissions prompt, can someone help me? thanks

UPDATE: DISREGARD THIS POST I GOT IT WORKING
[Samsung Galaxy Nexus] boogiecornejo:
i have managed to recover a 14 gb raw file from my entire data block (mmcblk0) on my S4 but cant seem to get the initialize disk command in disk manager. is it because the disk seems fragmented as seen in my attachment? how do i go about recovery from this point on? do i really need to get a specific block only to be able to get the initialize disk command? help pls...
[Samsung Galaxy Nexus] boogiecornejo:
i figured it out... it has to be a particular block. question is, when i do a search for blocks via the find "/dev/block/platform/ -name 'mmc*' -exec fdisk -l {} \;" command the blocks display a different capacity as compared to what i recover. for example it says that my mmcblk0p29 has a capacity of 10.4 gb but the raw file i get from it is only 9.74 gb. what happened to the rest of its contents? none of the pictures i actually want to recover is in the raw file. im thinking they must be in the missing 700 mb. is this possible?