yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] zayedreza:
Please Help

Hi guys,

I had to do a factory reset. I have lost all of my new-born's photos in the process.

I have a Galaxy Note 5 SM-N920C on Android version 5.1.1

I have tried all the data recovery programs available, they just keep showing me my WhatsApp pictures repeatedly (I have those backed up anyway)

I have rooted the device and tried USB mass storage apps - they don't work (so that I can perform a detailed scan of the partitions to recover the data)

I have tried to mount the device using MTPDrive

I have tried to use FTP to mount the drive using NetDrive

I have tried to img the whole phone http://xdaforums.com/galaxy-nexus/general/guide-internal-memory-data-recovery-yes-t1994705 but I wasn't able to get the partition imaged as it keepsreturning back with 0Bytes

I have tried everything.

Is there any way I could get the pictures back, I am so desparate.

Kind Regards,

Zahid
[Samsung Galaxy Nexus] Jeklund:
Thanks for the guide your effort is appreciated. I have attempted to follow everything and feel as if I have done so correctly. However my files keep coming out empty, is there a way to solve it? I'm using a Motorola X Play and my userdata partition is mmcblk0p42. I'm trying to use this method to recover as I accidentally ran fastboot erase userdata in a brain fart, I vaguely recall somewhere in this thread saying that may not allow this process to work however I find it odd I'm not getting even a small amount of data.
[Samsung Galaxy Nexus] Oracle-:
Oneplus One (CM13 - 64gb) - Data Recovery

I am getting the 0bytes file size problem however if I access localhost:5555 on browser it downloads the right file size (~58gb).

I figured that might be okay and just rename to .RAW but vhdxtool says "identifier signature is invalid"

USB Debugging has been approved and root used for emulating the phone partition on localhost:5555

EDIT: I have isolated the problem to being a 64bit version of cygwin. 32bit version is copying the file properly
[Samsung Galaxy Nexus] icepopi:
Hi everybody

I tryed to recovery my Samsung Galaxy S5

But i have this problem :

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

0 O 0:02:16 [ 0 O/s] [<=> ]

All the time 0 octets and i don't know why??

Anyone can help me?
[Samsung Galaxy Nexus] Jeklund:
Good call I was running the 64 bit version as well, everything is copying on the 32 bit version.
[Samsung Galaxy Nexus] Oracle-:
I am still having the issue of vhdxtool giving me:

"Identifier signature is invalid. Expected 656C696678646876, actual 0."

Bit stuck on this one any ideas?

EDIT:

Managed to find this post after doing a vigorous search through this thread for a download link to vhdtool:

http://xdaforums.com/galaxy-nexus/g...covery-yes-t1994705/post52888253#post52888253

The issue I was having seems to have been related to vhdxtool which is what replaced vhdtool after microsoft took it down.
[Samsung Galaxy Nexus] bbsankarreddy:
Unable to mount the partition properly!

THank u for this valuable post.

I renamed my 58.2 GB raw file to vhd (after converting it) and then attached it. After mounting it I didn't get a single unallocated volume but a number(~25) of volumes (Only 2 are unallocated,8 MB each).

And when I open "This PC" I can see four drives (other than my hdd ) (screenshot attached).

Help in mounting the image properly.

thanks in advance. :)
[Samsung Galaxy Nexus] Burgscheinkerkdeiktraast:
Is there easier way to have access to internal card and recover files? This tutorial makes things complicated, maybe today is easier?
[Samsung Galaxy Nexus] LaNsLyDe:
awesome! I'm late on reading this , but will try this tonight.

I found a program , but the free version only restores half of the video size haha. Interested?
[Samsung Galaxy Nexus] renzs:
Curiously I'm only able to recover the thumbnails of my photos and not the actual photos.

Tried with recuva and photorec.

Any ideas?

Also, nice work on this guide!
[Samsung Galaxy Nexus] TheJuicer:
This is from pulling from the p0 as the other user suggested. I tried recovering the p12 partition for the userdata but it is only providing me what is currently on the phone after unlocking the bootloader. It's not finding my previous data for some reason. I had a decent amount of pictures and videos. You are corrent that that media folder is stock ringtones and boot animations. I also noted that using recuva with the p12 partition it doesn't give me folder structure and when I try using testdisk with p12 it says it can't find anything.
[Samsung Galaxy Nexus] andrewjt19:
Awesome will need to try it out just for the fun of it. Do you have a guide for Ubuntu users?
[Samsung Galaxy Nexus] farokz:
commands>?

will the commands be same for galaxy s3??
[Samsung Galaxy Nexus] Mach3.2:
Check on the gs3 sub forum.

Beamed from my Maguro.
[Samsung Galaxy Nexus] Febby:
You'd have to find the sgs3 mount points for device and hopefully it should work. ;)
[Samsung Galaxy Nexus] farokz:
cant find anywhere man.?? help please..?? my full internal storage got deleted accidently.. n i had important files there...!! please helpp?!!
[Samsung Galaxy Nexus] rickkane:
I've copy pasted each line individually, then opened a second cygwin window, and copy pasted each line individually. I've tried entering SU so that I have the #, and without. Tried opening two cygwin windows at the same time as well. This is the only result I am getting over and over. What am I missing? All I need to find is the clockwork mod folder!! Lol. Thanks for the help so far.
[Samsung Galaxy Nexus] TheJuicer:
Is your busybox folder really under bin? I had to change my code to xbin. Check on your phone.
[Samsung Galaxy Nexus] rickkane:
Yes sir. It's right there where it should to be. I installed busybox from the play store. Not sure if that's my problem. Also I'm running bugless beast 4.1.2 if that matters any. Thanks.
[Samsung Galaxy Nexus] jcarmi04:
THX and ?

First of all, this is LEGEN, wait for it... And a huge thanks for not only finding this fix but also posting. Just been through my fair share of hassles with cell company and phone manufacturer, since during a troubleshooting process they had me factory data reset my Nexus without telling me it would be a total dump (aren't they paid to know this?!).

My question is, since I was not previously rooted, what is the likelihood that rooting my "deleted" device (thus wiping the phone again) will render any recoverable data (pix is what I mostly care about) unrecoverable? I have not written anything on the device since they screwed me, except for linking my gmail back to the device and downloading a SD card data recovery program during THEIR attempt to help fix what they broke (TONS of explicit words to say about that again!!).

Thanks, thanks, thanks again!

DARY!!!!!

Edit: FWIW, Running 4.1.1.
[Samsung Galaxy Nexus] Wartickler:
So, unfortunately, the chances are high that you will have some data loss. My fear is that the flash memory manufacturers have firmware that spreads out the life of writes to the memory so that they can avoid burn in. Altering your phone, specifically in destinations that have had few writes (like a long term storing of photos on your phone will likely do,) is probably going to result in some portion of your data being overwritten.

In some cases, only a little altering needs to happen...like rooting. Other cases involve more complete overwrites, like flashing whole ROMs.

It's a crap shoot that you hope you will win...one that some people here have been #winning.

Good luck (:
[Samsung Galaxy Nexus] scandiun:
Try with the ftp method using usb tethering
[Samsung Galaxy Nexus] TheJuicer:
Is there a way to "undo" the VHD command on the RAW file. I want to try recovering within linux and I think it's not mounting maybe due to the fact that I ran this command on the RAW file in windows to mount it. I could pull the partition from the phone again but it has been getting used daily and afraid chance of deleted data being there becomes less and less. Thanks
[Samsung Galaxy Nexus] scandiun:
So you didn't have a backup again?
[Samsung Galaxy Nexus] jcarmi04:
Not sure if it will help, but the 3 things you should try since I had what appears to be the same problem as you (and the one that worked for me was the 1st one):

1. Check the Java installation directory and path in Environment Variables (mine "%ProgramFiles%\Java\jdk1.7.0_10")

2. Check the ADB path in your Environment Variables

* http://xdaforums.com/showthread.php?t=1830108

3. Reboot the computer after each (not sure if necessary, but why not since it sounds like you've been troubleshooting way longer than a reboot cycle would take)

Hope it helps!
[Samsung Galaxy Nexus] mattw951:
Galaxy S2 Recovery

Does anyone know of the correct block for the GS2? I have tried using mmcblk0p12 but my .raw file stays at 0 B with 0 B/s transfer speed.
[Samsung Galaxy Nexus] rickkane:
Did this and got this result

I can't however get the thing to backup or whatever for 3 hrs. I'll seriously paypal someone $30 if they can help me get this working. Thanks also to everyone that's helped so far.

Maybe I'm having trouble with ADB mode. I was doing all this with the phone on and screen on. When I put it in the recovery screen (the one with the Andy laying down) I can't get adb shell because it won't recognize the device. But I don't have any unrecognized devices in device manager. Help.......
[Samsung Galaxy Nexus] scandiun:
That took 25 seconds because was using the internal phone bus. If you use adb, it will be very slow, because ADB has a speed of about 1 MBps, like USB 1.1.

If you want to get the fastest speed you can get use USB tethering or at least wifi tethering with ftp method, because ADB always has a limit on one megabyte per second no matter what.

---------- Post added at 01:57 PM ---------- Previous post was at 01:56 PM ----------

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

Try the ftp method, in case you don't solve it, android is known to have some bugs on the adb thing.
[Samsung Galaxy Nexus] Burgscheinkerkdeiktraast:
Thank you, but is there normal tutorial? This one does not cover it all, especially some steps.

Doing it all manually is so counterproductive, Android is really useless sometimes. Automatic configuration tool would be great instead of that bible.
[Samsung Galaxy Nexus] ashu01:
HELP :crying:

Guys i lost all my data accidentally while flashing a ROM.

I am using OnePlus2 and it has 64 gb Internal memory that is mounted as an MTP device. I have read many articles and found there is no way to recover data from MTP device.

This tutorial works on MTP Devices???

I just want to recover photos. Dont need any other data
[Samsung Galaxy Nexus] zyph13:
Yes, the tutorial above (http://xdaforums.com/showpost.php?p=66972563&postcount=1383) should work, as long as your device is still bootable. All the steps are there. Follow the instructions very carefully to obtain a forensic image from the device. Once you have that, you can use both TestDisk and PhotoRec from your PC to analyse the image and recover data from it.

If your device is Android v4.3 or later, it was probably running TRIM (not good news for photo data recovery). It's still worth running a recovery though, in case TRIM didn't get a chance to kick in.

In my observations TRIM doesn't seem to wipe out thumbnails, only the main images under DCIM, and thumbnails are better than nothing (on most Android devices they're surprisingly large).
[Samsung Galaxy Nexus] utsc:
What is the easier way to recover deleted WhatsApp Chats & calls Galaxy S4 GT-I9506 running Andriod 4.3
[Samsung Galaxy Nexus] digitalhigh:
Dude...what do you want, the OP to come over to your house and do the work for you while gently stroking your hair and whispering "It's going to be OK."?

I mean...do you have a better solution, versus "doing it manually". Do you even understand what is happening here??

Let me illuminate some key points:

1. Android, by nature, is designed to keep the /data partition secure. As we've gone from Lollipop>Marshmallow>Nougat, this is only getting to be more true. Now devices are usually encrypted by default, and you can't even run ADB as root on production devices.

2. These guides are telling you how to capture the entire disk image (of a Linux-based OS), mount it to a windows PC, and scan it with commercial data-recovery tools. You are stepping outside the realm of "any putz can do this". The instructions are complex because WHAT YOU'RE TRYING TO DO IS COMPLEX!!

3. "Android is really useless sometimes". No, I think what you meant to say is "your level of skill and knowledge is really useless sometimes". Android is an Operating System, and a very powerful one at that. If you'd like a prime example of a "useless" OS, look to iOS, where you can't even begin to think about doing something like this. Raw access to userdata storage? Yeah, good luck with that.

4. "Automatic configuration tool would be great..." - SO WRITE ONE THEN. The OP wrote this years ago, and zyph13 was kind enough to update these instructions *again*, which is significantly more love than a lot of these aging threads get. You should be thanking him for even replying to your first complaint.

That being said, I would suggest that instead of complaining about something being complicated, you take the time to understand the process and learn why and how you're doing what you're doing. There's a reason for all of this, as I illustrated above, and complaining that it's too hard or too complicated only tells everybody else that you're just lazy, ignorant, or both.

To add to the original discussion - I found that redirecting the output with Cygwin doesn't seem to work. It shows a 0 counter in the "second" cygwin window, and then the first window stops executing the dd command.

I was (well, it's still dumping) able to overcome this by doing an ADB shell into the device, getting root, and then doing

dd if=/dev/block/XXX of=/mnt/extSdCard/data1.raw

This obv. requires you have an external SD card slot and a card big enough to hold a copy of your /userdata part., but I've used it in the past to dump partitions with no issue. Zyph, I'm curious if you have any insight as to what I'm doing wrong? I'm running win10. It is an insider preview and I do have the Windows Subsystem For Linux installed (Bash on Windows, yes it's a thing now. ;)), so I'm wondering if I pooched something there. It seems like it *wants* to run, but isn't grabbing the output correctly...
[Samsung Galaxy Nexus] Burgscheinkerkdeiktraast:
That'd be nice.

I understand more-less. Enough to do basics, not enough to do whole process even with tutorial as it does not cover all noobs problems I encountered.

A lot of things in Android made me hard life because of the encryption, because problems with kernels or just changing (modding look of it) GUI. It is not simple.

I do not think I am too lazy or ignorant. I am just shocked how much effort one must put into recovery image operation.

Knowledge about that won't make me smarter as knowing Linux won't make you better than Windows user.

I reformatted and installed another rom on tablet, soon changing it to Windows one, as Android tablets are just bigger phones.:)
[Samsung Galaxy Nexus] Turbo212:
Is there any hope of recovering pictures on a device that can't be rooted? I have a Droid Turbo 2. I don't care if I have to destroy the device to get the photos off of it. Any help would be greatly appreciated.

Thank you
[Samsung Galaxy Nexus] p1xo:
In creating the image I get 0B and 0B/s and time running. Any idea what is wrong? Thank you
[Samsung Galaxy Nexus] TheEndHK:
Just make sure don't use cywin 64bit it got 0 file size problem, i got same case and switched to 32bit and solved.
[Samsung Galaxy Nexus] oz.edri:
I'm having the same issue, and I solved it by running the last command (busybox) in the first terminal and then immediately running the last command (busybox) in the second terminal.
[Samsung Galaxy Nexus] Invin@69:
hi, can you please provide urls and tutorial for all the software you mentioned under REQUIREMENT section
[Samsung Galaxy Nexus] DalekExt:
I'm stuck on 5th stage. Everything is done right but anyway it doesn't work. [Galaxy S6]

$ adb shell

shell@zeroflte:/ $ su

su

root@zeroflte:/ # /system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/sda3

/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/sda3 <

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

87+0 records in

86+0 records out

44032 bytes (43.0KB) copied, 0.032679 seconds, 1.3MB/s
[Samsung Galaxy Nexus] Adityashaw:
I was able to mount raw file using vhd.

Recuva detected 27 files and those were undeleted ones.

My mobile (Asus ZenFone 2 Laser ZE550KL) was mistakenly formatted by me.

Used EaseUS Data recovery and it found many small files but two big files , namely , FILE079.FCPEVENT and FILE001.FCPEVENT.(Both are of 4GB each).

Now what to do next??
[Samsung Galaxy Nexus] z4ck1n:
data recovery on droid turbo (quark)

[MENTION=2129788]Wartickler[/MENTION] [MENTION=2738944]scandiun[/MENTION] [MENTION=3381574]hakneo[/MENTION] [MENTION=5877999]VieiraS[/MENTION] [MENTION=2007693]iHack13[/MENTION]

Does fstrim write log, in case of bootloader unlock process in persistent log file?

Objective to check if fstrim has already cleared the data.

https://www.reddit.com/r/Android/comments/1rws2c/is_my_trim_working/

adb logcat -d | grep -i fstrim

problem this is only works in normal boot mode and not in fastboot or twrp recovery. I am hesitant to boot into normal mode, as i am guessing fstrim will start background.

Is it good idea to rename fstrim binary (temporary)? :confused:

In twrp console,

dmesg

works but no fstrim related log entries.

Device : Droid Turbo (quark)
[Samsung Galaxy Nexus] z4ck1n:
Writing to Update :

Device : Droid Turbo (quark)

I tried different methods mentioned in the thread and https://www.dflund.se/~jokke/androidfilerecovery/ with testdisk & photorec.

Unfortunately deleted/formatted files are not recoverable for me. In my case, bootloader unlock process trigger wipe (trim) /data.

:rolleyes:

Starting using flickr & google drive to sync your files & photos.
[Samsung Galaxy Nexus] lonsing:
nexus 7 2012 softbrick - recoverable?

Like many others here I have a file I need but that I didn't back up (I know, I know).

I went to bed on Friday with a working nexus 7 2012 and woke up on Saturday with a soft bricked device. I have no idea why - it just book loops.

It is stock.

- boot loader locked

- stock recovery

- Android 4.2.2

- not rooted

From what I have been able to understand there is no way to recover data since the nexus 7 bootloader will destructively over-write memory as soon as I unlock.

I don't believe there is any way to get to adb other than the cut down "sideload" version in recovery and that just seems to abort once I download a new update.

Is anyone aware of any method that might work for me to recover data?

I can't fastboot a new image since the bootloader is locked.

Thank you
[Samsung Galaxy Nexus] jamesteka:
Yes you can recover lost data from internal memory without having any trouble

Source: http://www.file-recovery.com/android_recovery.htm
[Samsung Galaxy Nexus] winamp26:
hi

i recovered images and movies from s3,j5,j7,s4,a7,note4 successfully with this guide.
[Samsung Galaxy Nexus] mkbarasbal:
This trick works on Samsung Galaxy S5?
[Samsung Galaxy Nexus] claudiuch:
It should work and any device but don't expect 100% recovery
[Samsung Galaxy Nexus] Susa123:
I have a question regarding the steps mentioned from zyph13.

With which consumer level software can I try to recover? As I can tell, they all need rooting, but zyph13 says, to "only try the simple non-invasive options."

Thanks!!
[Samsung Galaxy Nexus] djbaha:
Hey all

I'm trying this method with my LG D802 G2 device. Can't seem to dump mmcblk0. The commands just finish immediately without any error and gives me 0 bytes raw file. I'm trying to dump the whole memory. What am I doing wrong?
[Samsung Galaxy Nexus] myi500:
Nexus 6P

1|root@angler:/ # /system/xbin/busybox nc -l -p 5555 -e /system/xbin/busybox dd if=/dev/block/mmcblk0

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

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

46+0 records in

45+0 records out

23040 bytes (22.5KB) copied, 0.007423 seconds, 3.0MB/s

When I enter the command I get anything from a 0kb to a few MBs, then I open a second window and run the next series of command and usually get a 0kb file. One person suggested I run the same busybox commnand again in a new window and it just errors out with:

-bash: /system/xbin/busybox: No such file or directory

Again trying to restore data from a Nexus 6P phone and at the time it had Cyanogen 13 installed. I had wiped it by accident with Copperhead.
[Samsung Galaxy Nexus] myi500:
scandiun, What FTP method? That link doesnt mention steps to use such a method.... thanks in advance.
[Samsung Galaxy Nexus] scandiun:
http://xdaforums.com/showthread.php?t=1818321
[Samsung Galaxy Nexus] myi500:
FTP method

Scandiun,

Im getting no where with the FTP method. Can you tell me what the problem is? The phone is connected via USB cable, it does not have internet, no other internet sources are connected to the computer. The x.x.x.224 ip is from ipconfig of the computer.

I entered:

ftpput -v -u user -p pass -P 40 192.168.42.224 block.raw /cache/myfifo

I am getting:

Connecting to 192.168.42.224

ftpput: can't connect to remote host: Connection timed out
[Samsung Galaxy Nexus] TuercasFC:
Thanks for all. I tried it for a Alcatel Idol 3, and I cant do it. I know it's very difficult, because every phone is different, but i'm tired of testing. Commands that doesn't work for me, missing drivers... TRIM, downgraded, maybe lost partitions... is for nothing i think.

One tip... never leave for later your backups...
[Samsung Galaxy Nexus] Sonstiger:
Might there be the chance to recover internal data of a Samsung Galaxy S6 this way? This would be so great but I need some more advice on how to proceed.

My original post:

Dear guys,

I accidentially deleted around 70 GB of videos and photos on my Galaxy S6 128 GB (SM-G920F, Android 6.0.1, G920FXXU3DPDP). I was so stupid to try to move the camera folder instead of copying it to the computer and since the process was aborted it was gone from my phone and not on my computer. I'm missing a lot of family pictures and videos that were very very valuable for me.

My phone is rooted (odin) and the root works properly. I tried several recovery programs, some are working in general and are requesting supersuser rights (like phone paw android recovery) - but can't find any of the deleted images and videos. Others (like Wondershare Dr..Fon Android recovery) do not work properly (it gets superuser rights but in the last step before scanning the phone it tries to get (other?) super user rights that are not properly requested).

I should be gratefull for any kind of help. Please let me know if you need any additional information. It would be the biggest present to get back any of the many photos and videos I lost.

Best,

Sonstiger
[Samsung Galaxy Nexus] sidepart:
I have no clue if it'll work but just follow the instructions on the main page. Here is a key change though:

For step 1, userdata is a different partition for us, not /dev/block/mmcblk0p12. For the S6 edge it's /dev/block/sda21, probably the same for the S6. So in step 5, use this code instead:

adb forward tcp:5555 tcp:5555
adb shell
su <---he mentions this correction in a reply
/system/bin/busybox nc -l -p 5555 -e /system/bin/busybox dd if=/dev/block/sda21

Also, I had trouble using the most recent version of netcat. This guy posted a version that seemed to work better for the s6: http://xdaforums.com/showpost.php?p=63641693&postcount=1313