yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] khantwal:
sir,

code is getting executed but it is making a file of 0kb in nexus folder

how should i recover
[Samsung Galaxy Nexus] Gallion:
I got everything working. I have a 25.5 GB file. Unfortunately, even PhotoRec is unable to recover anything from it. Does Android do encryption by default or what? Or does a factory reset 0 out the storage?

Edit : TRIM... I see... ugh.
[Samsung Galaxy Nexus] Joelmac:
Badly needing help

Hi guys.

I badly need some help. No not some, HUGE help. Firstly, I lost my old account in xda and secondly I have wiped out my entire internal memory data which is at around 30 GB's of photos, videos and other important stuff.

Here's what happened, I have a Moto G4 Plus running with RR rom 7.1.2 and when buying a sim card in a place that I was in,my phone has been giving me trouble, i.e, it frequently says "insert sim card" when I clearly have one. As my limited prior knowledge gave me an idea on what to do, I thought it would be because of modem version so I tried to revert to stock android 7.0 which shouldn't have been advisable. Though I have successfully reverted to stock, the problem is that I forgot to back up my internal data, I just couldn't recall that it is supposed to be destroyed upon flashing stock rom. I feel terribly down coz it's been years since the last time I flash stock roms on my phones coz I always go with custom roms via TWRP recovery.

And so, with that, I wish someone out there could help me. I tried so hard to follow these instructions but I can't seem to acquire what I'm supposed to have as stated here. Probably because this post is couple of years ago.

MY SITUATION: I have all the pre-requisites mentioned in the OP except that I have problem with cygwin. I ain't that familiar with this tool but I downloaded it via their website.

INQUIRY: 1. What confuses me is how do we tell that we have PV and UTIL-LINUX properly installed?

2. And regarding cygwin terminal, which one does that terminal refer to?

Please see attached photos for reference.

Thanks a lot in advance guys. Xda has always helped me for years, though sadly I lost my old account. It's just that I really need to restore at least the photos I lost. Those photos contain a lot of important details to me, which I need in my career and a lot of different information.]
[Samsung Galaxy Nexus] testerkur:
Hello, after bootloader unlock i have lost all data at zuk z2, it's running android 6.0.1 (if it matters). I have succesfully extracted 58GB image but vhd tool doesn't create any file, after renaming it to vhd and mount it's not possible to initialize disk. I have also followed this guide

but testdisk scan doesn't give any results. It's because this method won't work with android >4.3 or i'm missing anything?

Regards
[Samsung Galaxy Nexus] wappsam:
SO frustrating is't it? TRIM is my nemesis :(
[Samsung Galaxy Nexus] Fcremers:
0KB block (Samsung Galaxy A320FL)

Hello Sirs, Madams,

I hope someone can help figure me out why my block is 0KB or perhaps what I can do if I need to scan another block instead?

Phone type: Samsung A320FL

I've seen in the post that you can figure out what other block you need.

I used the code and this was the result:

[IMG="Photo"]https://i.ibb.co/zfvdG4s/Knipsel.png[/IMG]

How can I figure out which one I need or should I go over them one by one?

I hope someone can help me out!

Kind regards,

Freek
[Samsung Galaxy Nexus] RRRex:
hello everyone,

when trying to transfer to 127.0.0.1 via tcp 5555 it gets stuck on 0bs transfer and makes a 0kb raw file. I'm on lineage os 8.1/samsung galaxy s6 edge/file system ufs and the partition im trying to back up is sda17. any ideas and help would be greatly appreciated i lost 4 years worth of notes.

[IMG="stuck"]https://imgur.com/a/3s6O8FX[/IMG]
[Samsung Galaxy Nexus] pucca76:
Hi, I'm new to the forum here and newbie to adb/cygwin. Apologies if this has been answered in another post, if so please direct me to the right place. I'm also trying to recover my gallery folder from a HK Samsung Galaxy A8s/android 8.1.0/samsung experience v9.5, rooted with Magisk, installed busybox from playstore and netcat v 1.12 from a webpage.

Typing df in cygwin64 showed dm-0 as largest block, with 1K-blocks: 116997384 , Used: 5040920, Available: 111956464, Use%: 5%, Mounted On: /data (although using another command showed sda28 as the largest block, whereas df didn't even list sda28). Followed the instructions exactly as described at aesonlabs.ca / blogs / android-internal-storage-sector-by-sector-copy-clone /. I ended up with a 0kb dm-0.raw file and with sda28, it stated something like invalid location. Not sure if its something I'm doing wrong or if its still possible to extract from the newer android OS? I made a query at the instructions website too, but no reply. Also tried a filezilla server method but still no result. :eek:

Would appreciate any advice you guys can give, or even pointing me to the right page. Thanks in advance!
[Samsung Galaxy Nexus] ruzaini88:
Alternative easier & faster solution to copy internal memory

:) Guys refer below link:

>>> howtorecover.me/data-recovery-internal-storage-android-phone-guide <<< [copy paste this in google, sorry I m new user cant post link]

Using FTP method. More faster and hassle free like this method.

I wasted whole day doing this method, clueless whether it is busybox issue, nc issue, or whatever... the raw file remain 0 bytes.

I just tried one time with FTP method, it works!!!!!

succesfully copied the whole "sda" from my Zenfone 5z.
[Samsung Galaxy Nexus] jacobobbo:
Can yu help me ? I stuck on "Looking for the partition with lost data " list_of_partitions file on device and PC have no data
[Samsung Galaxy Nexus] mahigohan:
lrwxrwxrwx root root 1970-01-12 06:12 userdata -> /dev/block/mmcblk0p42

Will this one help ? android saves photos only in userdata ?

I have done the whole process (unlocked bootloader) userdata alone 12GB. And only few photos got recovered :(

Can i get mmcblk other than userdata ? will that help ?
[Samsung Galaxy Nexus] jamesvilbar:
Is this applicable to Samsung Galaxy S9?
[Samsung Galaxy Nexus] ahmed.mo:
please help

please help ... i can't find the name for my infinix note 4 internal storage.. i need it all or media block .. because i make a row copy for recovering data

when i use first code thats happend

Infinix-X572:/ # ls -l/dev/block/platform/omap/omap_hsmmc.0/by-name/

See ls --help

ls: Unknown option /dev/block/platform/omap/omap_hsmmc.0/by-name/

when i use df code

127|Infinix-X572:/ # df

Filesystem 1K-blocks Used Available Use% Mounted on

tmpfs 1457636 1312 1456324 1% /dev

tmpfs 1457636 0 1457636 0% /mnt

/dev/block/mmcblk0p21 396744 872 395872 1% /cache

/dev/block/mmcblk0p3 5968 68 5900 2% /system/vendor/protect_f

/dev/block/mmcblk0p4 5968 56 5912 1% /system/vendor/protect_s

/dev/block/mmcblk0p18 28144 2364 25780 9% /system/vendor/nvdata

tmpfs 1457636 1568 1456068 1% /sbin

/sbin/.magisk/block/system 4390068 3350456 1039612 77% /sbin/.magisk/mirror/system

/sbin/.magisk/block/data 24901484 3583028 21318456 15% /sbin/.magisk/mirror/data

tmpfs 1457636 0 1457636 0% /system/etc/permissions

tmpfs 1457636 0 1457636 0% /system/priv-app

tmpfs 1457636 0 1457636 0% /system/xbin

/data/media 24901484 3583028 21318456 15% /mnt/runtime/default/emulated

please help
[Samsung Galaxy Nexus] Beerce:
Hi all,

Excellent guide. Although I'm a noob so needed to do a lot of extra Googling, I managed to complete the entire process on an XT1032 and get the entire data block transferred and mounted. Unfortunately Recuva, testdisk nor photorec are recovering anything at all. It seems all they're pulling are the files that are on the newly flashed phone (icon thumbnails and whatnot). The strange part is I cannot locate any of the folder structure (userdata, DCIM for example) in testdisk or photorec, all I get are the large unnamed blocks to try to recover from and that's when I get nothing but files from the newly flashed phone.

Am I doing something wrong? I suspect that TRIM rewrote the data but within this thread I see that thumbnails could still be recoverable but I'm not getting anything at all from the phone.

Background: This phone was stuck in a boot loop for some reason, so I used some tools to install TWRP recovery and flash the stock ROM and in the process I unlocked the bootloader (accidentally and foolishly) which is what resulted in the data loss and me seeking this thread. I ended up getting the phone out of the boot loop and back to "stock," but now cannot recover any old data as per above.

Any help would be greatly appreciated!
[Samsung Galaxy Nexus] Benik3:
Hi guys.

What you do if you have too big file and you cannot use FAT32 format?

Thanks!

EDIT: I found that with DiskGenius I'm able to format it as FAT32. But problem probably is, that original partition was F2FS...
[Samsung Galaxy Nexus] Anastasiya_panda:
Hello, I was looking on the forum, got confused and could not find a solution. How to recover data with a bootlap?

The redmi note 8 pro phone went to an endless reboot, did not drop it, just put it on charge at night, and in the morning I saw an endless reboot. I don’t know what to do, I don’t want to erase everything through the main menu, because there are a lot of necessary files. I read that you can somehow clear the cache via fastboot (wipe cache), but I only have the rabbit logo displayed and that's it, no menu. help me please
[Samsung Galaxy Nexus] arjavanb:
Recover deleted photos from Huawei P20 Pro (EMUI 10)

Hi Guys, If this is not the place to ask this question please direct me to the right place and apologies for spamming the thread.

I have a Huawei P20 Pro which runs on EMUI 10.0.0 model: CLT-L04. I have deleted some files (photos) from internal storage that I want to recover. Now the issue is that the phone is not rooted so file recovery softwares fail to access those deleted files. I then decided to root the device obviously without wiping off the data [deleted photos again] but it seems that EMUI 10 is not rootable. Is there any option for me. Is there a way that I recover my photos? Do you know who should I reach to (not FBI of course!) or how should I proceed.
[Samsung Galaxy Nexus] Mr.BUBU:
I have tried 4 times from scratch... and I can't find what I missing

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

bash: pv: no se encontró la orden

What is Pv? what I missed?
[Samsung Galaxy Nexus] Mr.BUBU:
Hi!!!

Someone can help me a little bit?

I have a problema converting to VHD this blocks: I tryed with vhdxtool too, but I can´t make it work.

vhdtool.exe mmcblk0p53.raw (3.538.944kB)

Image is too big for virtual disk [CHS] geometry.

vhdtool.exe -dm-1.raw (25.784.304KB)

dm-1.raw.vhd (Only 2050KB)
[Samsung Galaxy Nexus] Samin raiyan:
I have note 10 pro indian variant can I do this?
[Samsung Galaxy Nexus] Wartickler:
Negative.
[Samsung Galaxy Nexus] CyanRose:
hello i am trying recovery my htc m9 thanks my error and stupid indian tutorials . i am format my internal memory by accident and wiped format and change ex4 to f2ts and bugged custom rom give bootloops and corrupt my phone. now i am trying for recovery some comands adb connect 5050 works in windows 11 i need recovery my data

my rom crdroid 7.38 android11

i am trying info of my partitions but not works but i had recovery info of my partitions ls -lR /dev/block

find: exec fdisk: No such file or directory

[GUIDE] Internal Memory Data Recovery - Yes We Can!

This method does not seem to work on newer phones that apply TRIM or some other type of partition clearing implementation. If anyone has recovered their data on a device newer than Android 4.3 please pm me and let me know. The Preamble Did you...

xdaforums.com

[GUIDE] Internal Memory Data Recovery - Yes We Can!

This method does not seem to work on newer phones that apply TRIM or some other type of partition clearing implementation. If anyone has recovered their data on a device newer than Android 4.3 please pm me and let me know. The Preamble Did you...

xdaforums.com

[GUIDE] Internal Memory Data Recovery - Yes We Can!

This method does not seem to work on newer phones that apply TRIM or some other type of partition clearing implementation. If anyone has recovered their data on a device newer than Android 4.3 please pm me and let me know. The Preamble Did you...

xdaforums.com
[Samsung Galaxy Nexus] CyanRose:
here the files for working for me and works in windows 11
[Samsung Galaxy Nexus] CyanRose:
update try convert raw file with vhdtool /convert not works i am trying recovery with raw file
[Samsung Galaxy Nexus] CyanRose:
good news i had extrared of the info of partitions

with is command

ls -lR /dev/block cat /proc/partitions

works i am can extrared the userdata of all my partition i try extrared my all my partition but is zero data give luck for recover my data 3hrs and 5 min
[Samsung Galaxy Nexus] CyanRose:
now i had bad news my files is dead and is over thanks the bugged update and twrp accident wipe all of my files is deleted and lost forever T_T
[Samsung Galaxy Nexus] CyanRose:
works for me
[Samsung Galaxy Nexus] CyanRose:
i had bad news i am lost all my data and internal storage is lost forever thanks a stupid indian tutorial and bugged custom rom i am feel painful and crying for lost all my data is over and now i am lost everything my memories and my pics and some important files thanks a stupid indian tutorial

remove youtube dislikes is a mistake
[Samsung Galaxy Nexus] eagleagleblissempire:
Please how did you do it

Guide Me Please

Thanks
[Samsung Galaxy Nexus] ramvalier:
Hi guys,

I have a similar problem. My Samsung Galaxy A52 was formatted and I need to recover all the data I had. I have tried several recommended programs, but none of them have worked for me. They only retrieve the current information but do not recover the deleted files, which is what I want/need. Does anyone have a guide and a program that works to recover this information? What are the things I should consider? Do these methods really work?

Thank you very much in advance.
[Samsung Galaxy Nexus] HOrobOD:
Is this form of data recovery possible on a modern device that was factory reset? My OnePlus 8 Pro on Android 13 factory reset itself the other day, causing me to lose 2.5 years of videos of my child (thankfully my photos were backed up).

I've tried dumping `/dev/block/sda` following this guide, but I'm not having much luck with various data recovery tools. Should I dump the userdata partition directly instead?
[Samsung Galaxy Nexus] rickkane:
I wasn't worried about the speed. It takes as long as it takes. I still can't get the phone to create the RAW file. I've tried these commands in the recovery screen, and the bootloader screen, and with the phone normally running. I have updated all the drivers. The phone is listed in device manager in all of these modes. I am thoroughly confused.
[Samsung Galaxy Nexus] scandiun:
You can't still get the file with the FTP method? Did you even try it?

If you don't want to know more about the ftp method, try as last chance Wifi ADB instead of connecting the cable.
[Samsung Galaxy Nexus] mac_alimboyao:
please help

I'm a n00b and i'm lost. I don't know how to use the cygwin terminal. I tried to directly type the code but it says that adb is not a function. can someone please help and give me a guide for n00bs on how to do this.

now i'm having a problem again. please take a look at the picture that i have attached.
[Samsung Galaxy Nexus] rickkane:
I'll try the adb over WiFi. To be honest I read the post about the ftp method and it was confusing to me. I feel like I'm doing something wrong. I also don't understand how to put the phone into adb mode. Can anyone explain that?
[Samsung Galaxy Nexus] scandiun:
There's nothing special, just enable usb debugging in developer options
[Samsung Galaxy Nexus] rickkane:
OK. I have that done. Still crossing fingers that I can get this working!
[Samsung Galaxy Nexus] lane2m:
I am not able to run BusyBox if I download it from the market it install but when I lunch it it say have not root access, I tried busybox installer but even from there it can not install it event trying different versions

I have a samsung note android 4.0.4.

I am not an expert but I was even wondering if it there is a tool like clockwork mode that easily create the image files without following what it appears to me a bit complicate process where we have to use a terminal and multiples steps.

Anyhow would be very useful to have a video tutorial....do not know if there is already something around.

Thanks
[Samsung Galaxy Nexus] scandiun:
Probably you don't have a rooted phone
[Samsung Galaxy Nexus] lane2m:
THX...You was right.. I get installed busybox....now I am stacked as below when I work with the second terminal ....

Andrea@Andrea-PC /nexus

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

-bash: pv: command not found

Looking in previous post it looks like I need to install the pv command from some setup...which ones?
[Samsung Galaxy Nexus] scandiun:
man read the first post and apply the requirements you need those packages into cygwin
[Samsung Galaxy Nexus] Wartickler:
I know it's a lot of steps to get to the final product. If you can find a shorter method please share it with us. In the meantime if you will follow the steps in the op you should have success. A great number of people have made this work for them.

Good luck (:

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] scandiun:
From cygwin's setup.exe
[Samsung Galaxy Nexus] rickkane:
Ok, tried wifi over adb. Here's what it says, nc: bind: Address already in use

When I try to do the ftp method, it says bad address "40" copy/pasted it below. What am I missing here? I'm not the most techie of people, but I'm perplexed!! Lol. Thanks for the help.

Rob@Rob-PC ~

$ adb shell

shell@android:/ $ su

si8~~su

/system/bin/sh: si8~~su: not found

127|shell@android:/ $ su

su

shell@android:/ # cd /data

cd /data

shell@android:/data # mkfifo myfifo

mkfifo myfifo

mkfifo: myfifo: File exists

1|shell@android:/data # ftpput -v -u -P 40 COMPUTER_IP p11.img myfifo &

ftpput -v -u -P 40 COMPUTER_IP p11.img myfifo &

[1] 7734

shell@android:/data # ftpput: bad address '40'
[Samsung Galaxy Nexus] scandiun:
If something fails restart from the beginning. You probably have the ftp server configured to default (21) instead of 40, so change it.
[Samsung Galaxy Nexus] dpgetz:
This post really saved me! Thanks!
[Samsung Galaxy Nexus] rickkane:
Connected the phone through usb cable, also does the same through adb via wifi. Commands sent from the cygwin window, also does the same through cmd prompt. I feel like I'm missing a step here. Port is set to 40. Thanks again for all your help. I can't believe this isn't working.
[Samsung Galaxy Nexus] Wartickler:
lol - you'll get it. I promise (:

In the screen shot I notice you use the word COMPUTER_IP instead of the actual IP address of the machine... could that be a problem? I don't know if that's it but it looks suspicious!

Go to command prompt and type: ipconfig

I don't know the details of the method you are using so try each one of these:

* Look for the line that says Local Area Connection and your IP address is the one under IPv4

* If that doesn't work try the IPv4 address under the name of your wireless adapter

Good luck (:

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] kcshadowxxx:
I'm sorry for the newb question but if i'm trying to recover pics and videos...what path will I type into Cygwin?If I could have the 2 command prompts posted for that it would be great. Thank you in advance.
[Samsung Galaxy Nexus] yoss15:
If someone could help me I would really appreciate it. My mom somehow accessed the boot loader of her HTC Evo 4G LTE and caused it to factory reset.

I'm trying to recover her photos using this method but keep running into problems as I'm not great with this stuff.

I have the SDK tools installed and can use ADB fine in command prompt under the proper directory but I keep getting "adb: command not found" when trying to use it in Cygwin. I know I have to do something to make it system wide and have tried following the instructions in the ADB post but I'm still having no luck.

Thanks in advance for any help
[Samsung Galaxy Nexus] mrstealthusmc:
I had to use this just the other day because i screwed with my phone and accidentally deleted all my sdcard data...it took a little to get going, but i got it to work. The directions are spot on. Follow those and all is well. Unfortunately i wasn't able to recover everything, but it was cool to try!
[Samsung Galaxy Nexus] yoss15:
I solved my problem with adb however after following all the steps I'm coming up with 0 files recovered. I'm really hoping that I'm missing something and there is still hope for recovering some photos.

I'm on an Evo 4g lte and so I tried to recover from /dev/block/vold/179:38 which according to what I can find is the /mnt/sdcard or internal memory. I got this information from DiskDigger on my phone. Can anyone confirm that this is the correct location? What I'm confused about is that it says the file is 9.94 GB which I don't understand because the Evo only has 8 GB of internal memory, any explanation for this?

Then after following the steps and trying to mount the .raw file I don't have any initialize this disk option. So I tried convert to GPT disk and then followed the instructions and came up with nothing. I then tried everything over again from the beginning and still had no initialize option so I just tried skipping that step and creating a new simple volume. Still came up with nothing, can anyone think of something I'm missing?

I tried recovering /data through /dev/block/mmcblk0p37 which is 2.16 GB and I had the initialize option and was able to recover some files which were mostly stock backgrounds and such.
[Samsung Galaxy Nexus] scandiun:
Did you try with the 179 entirely?

Take a look at this evo 4g lte specific thread here:

http://forums.androidcentral.com/ht...e-got-evo-ask-me-anything-14.html#post1772662
[Samsung Galaxy Nexus] rickkane:
Thanks for the response. I have the port set to 40 but this is what I am getting.....

I left -P 40 off by accident once and it connected, but hangs on the next command and times out. Can I mail you the phone??? LOL. I'm totally lost.

Thanks
[Samsung Galaxy Nexus] scandiun:
man you are not specifying username after -u nor the password, and don't use the command that ends in ampersand because goes to background unless you know what you are doing.

Read again the guide

http://xdaforums.com/showthread.php?t=1818321

At the point "Back up of the whole memory block (via wifi)"
[Samsung Galaxy Nexus] rickkane:
Got it working. The files it pulled are more or less a ton of random pictures (some I don't even remember seeing) and a few small in size .zip files. I am looking for a clockwork mod backup that would've been stored on the internal sd card. I ran it with "/dev/block/mmcblk0p12" and also "/dev/block/mmcblk0." The second came out larger in size and had more zip files. Do I need to push all the zips over to the phone to be able to see what is what?

Thanks very much Scandiun and Wartickler for all the help.
[Samsung Galaxy Nexus] scandiun:
Everything you get you can see it on the computer. Furthermore, the clockworkmod backup is not a single file, but instead a folder in the sdcard with files inside. Depending on clockworkmod version, there can be few big images or there can be a lot of small blobs. Probably the best would be to recover the entire clockworkmod folder inside the sdcard. What do you want to recover exactly? Did you try mounting the raw image?
[Samsung Galaxy Nexus] rickkane:
I didn't try mounting the whole .raw file. I'm looking for a backup I made just before I flashed the factory jb image.

BTW, thanks again for all the help.
[Samsung Galaxy Nexus] scandiun:
Well, flashing a rom only affects the system partition, so although it may "delete" your data partition (where sdcard is into) you should be able to recover almost everything, provided that you didn't use the phone afterwards.