[Q] Recovering data after a wipe - General Questions and Answers

I've unlocked the bootloader on a HTC Desire 510. This triggered a wipe. Afterwards, I wiped the system using the recovery. I had some photos on the internal SD card that I need to recover ASAP. Currently, the phone doesn't have any ROM, and I can only access it through fastboot and adb (adb in Phillz recovery). I've tried pulling the images from /sdcard/DCIM, but it doesn't pull anything, saying that no files are there.
I'm thinking of running photorec on the phone, but since it's the internal SD card, I can't mount it to the PC from the recovery. I thought of putting a ROM .zip on an sdcard and flash it, but I'm afraid that a flash would make recovery impossible. Is there a way I can dump the internal sdcard image just through fastboot and adb? Any ideas would also be most welcome.

Dafta said:
I've unlocked the bootloader on a HTC Desire 510. This triggered a wipe. Afterwards, I wiped the system using the recovery. I had some photos on the internal SD card that I need to recover ASAP. Currently, the phone doesn't have any ROM, and I can only access it through fastboot and adb (adb in Phillz recovery). I've tried pulling the images from /sdcard/DCIM, but it doesn't pull anything, saying that no files are there.
I'm thinking of running photorec on the phone, but since it's the internal SD card, I can't mount it to the PC from the recovery. I thought of putting a ROM .zip on an sdcard and flash it, but I'm afraid that a flash would make recovery impossible. Is there a way I can dump the internal sdcard image just through fastboot and adb? Any ideas would also be most welcome.
Click to expand...
Click to collapse
flashing a new ROM.zip will only delete everything for sure.
I'm sory to say it, but by my knowledge there's only one way to recover them, and that's by recovering a backup on recovery mode.
I hope you did make a backup before unlocking your bootloader. If you didn't, I think there's not very much you can do :s
anyway, please remember to ALWAYS make a recovery backup before doing anything in recovery.

louis-JYG4t said:
flashing a new ROM.zip will only delete everything for sure.
I'm sory to say it, but by my knowledge there's only one way to recover them, and that's by recovering a backup on recovery mode.
I hope you did make a backup before unlocking your bootloader. If you didn't, I think there's not very much you can do :s
anyway, please remember to ALWAYS make a recovery backup before doing anything in recovery.
Click to expand...
Click to collapse
What kind of backup??
For a nadroid backup you need a custom recovery, and to flash a custom recovery you need a unlocked bootloader...

Newyork! said:
What kind of backup??
For a nadroid backup you need a custom recovery, and to flash a custom recovery you need a unlocked bootloader...
Click to expand...
Click to collapse
but he said he whiped the system using a recovery?

louis-JYG4t said:
but he said he whiped the system using a recovery?
Click to expand...
Click to collapse
Yes, AFTER I unlocked the bootloader. There were all in all two wipes, although the second one was only /data and /cache.
I did a backup using adb, but to my knowledge, that's only a backup of the apps and their data.

When you unlock a bootloader phone, you lose everything, including photos, musics, etc.
Do you have a backup of your files?
Sorry bad english

If I were you, I would restore the backup with adb and see if you have your photo's back.
Otherwise I have no idea for how you can restore them sory...

louis-JYG4t said:
If I were you, I would restore the backup with adb and see if you have your photo's back.
Otherwise I have no idea for how you can restore them sory...
Click to expand...
Click to collapse
Why does nobody read my OP? I said the phone doesn't currently have a ROM on it. I can't restore that backup.
I'm going to flash busybox, a 300kb zip file that probably won't overwrite too much data, and use dd to get what I need.

If you have an adb backup of your files in the pc, you can extract it and get your photos back

Related

can CWM recovery not see the internal SD card for the skyrocket

WTF is going on, why has this (in the history of this phone) apparently never been asked? I feel like I'm taking crazy pills over here, just trying to flash a simple rom.
i can access mine through CWM.
yes yes, the only thing i noticed that is different on this phone is that when i make a nandroid it puts it on my external sd instead of my internal but it still sees my internal.
If cwm is not recognising the internal sd card....you have a corrupt partition. You need to odin
Stock. Tar boot into stock recovery wipe data/cache 3 times each reboot. Then root/ flash cwm recovery back onto the phone and then wipe and flash your rom
whitesox311 said:
WTF is going on, why has this (in the history of this phone) apparently never been asked? I feel like I'm taking crazy pills over here, just trying to flash a simple rom.
Click to expand...
Click to collapse
Are you getting this message after you root the device? I had this same issue and realize I needed to first root the device, open ROM manager to give it root access then reboot. After that it was OK.
silver03wrx said:
If cwm is not recognising the internal sd card....you have a corrupt partition. You need to odin
Stock. Tar boot into stock recovery wipe data/cache 3 times each reboot. Then root/ flash cwm recovery back onto the phone and then wipe and flash your rom
Click to expand...
Click to collapse
This............^^^^^^^^^^^^^^

[Q] HELP!! i wiped my cache and sd card partition...

So, to make the long story short...
basically, I have no cache partion.
I was rooting my nexus s and flashing a rom everything was fine until I retardedly pressed wipe cache partition in clockwork recovery so now i can still boot up normally but i can't do anything as you all no, the nexus s doesn't have an external card slot, so my phone says that I haven't got an sd card inserted.
Is there any way to bring back the cache partition and how could i make it recognise it as the sd card?
Click to expand...
Click to collapse
The problem above seems to have fixed itself but now I have another problem. I have flashed MIUI rom and I don't know where the superuser app has gone since I rooted it. So now I can't flash a newer version of CWM and I'm stuck with this rom. I have downloaded the CWM 5.x.x.x.x from the other thread but I am not able to flash it even with update.zip. I seem to be unable to flash anything at the moment because in CWM it just aborts everything because the 'cache' partition is not there. Also when I go boot up normally into MIUI, I can't turn wifi on, everytime I change it to on, it just won't let me and it says error below the switch. Is there anyway to fix this at all?
I think you need to go back into clockwork mod recovery, go to mounts menu, make sure sdcard is mounted. If you can't mount it, you'll have to format it. If you can mount it, then do it, then go to mount usb, and hook up to a computer and back up everything you have in your sdcard folder just to be safe. You can now flash your ROM again.
If you have nothing in your sdcard folder when you connect to the computer, download an undelete program that works with flash drives, and see if it can restore your files.
Sent from my SNES
bedalus said:
I think you need to go back into clockwork mod recovery, go to mounts menu, make sure sdcard is mounted. If you can't mount it, you'll have to format it. If you can mount it, then do it, then go to mount usb, and hook up to a computer and back up everything you have in your sdcard folder just to be safe. You can now flash your ROM again.
If you have nothing in your sdcard folder when you connect to the computer, download an undelete program that works with flash drives, and see if it can restore your files.
Sent from my SNES
Click to expand...
Click to collapse
thx for the suggestion, but I have tried that already and in clockworkmod it says that I can't mount or format the partition as because they don't exist so I don't have any idea what to do.
Also I am able to boot my phone into the rom I have flashed but when I try to turn on the wifi, it gives me and error and turns off, is there a way to solve this at all?
can you use SD partition in CWM to create it again?
Just throwin it out there, not sure if it would work or not?
blackhemi4x4 said:
can you use SD partition in CWM to create it again?
Just throwin it out there, not sure if it would work or not?
Click to expand...
Click to collapse
I have CWM 3.0.0.0.0 so I am not sure about the other versions and this one only allows me to partition up to 4gb so not really useful on the nexus s.
thx anyway
Flash cwm 5.0.2.0 ?
sent from my Sensation
Flash recovery thru fastboot. Fastboot flash recovery recovery.img
sent from my Sensation
vabeachfc3s said:
Flash cwm 5.0.2.0 ?
sent from my Sensation
Click to expand...
Click to collapse
vabeachfc3s said:
Flash recovery thru fastboot. Fastboot flash recovery recovery.img
sent from my Sensation
Click to expand...
Click to collapse
do you mean flash recovery through fastboot with cmd? I tried that but in cwm or in MIUI it doesn't flash, it just says waiting for device, so I am guessing the usb connection is not working properly either. I can transfer files though if that is any help...
Then u need to install the proper drivers for your device
sent from an HTC sensation on CM7 alpha #10

HELP

Hi I accidentally deleted my GT-s5300 backup for CWM I need that some would create it to me. I don't need your data or anything if you like you can format data and then do the backup (before do a backup of your data) and then send it to me somehow (we will figure that out), but if you don't know what I'm talking about here and if you have gt-s5300 don't be like "I don't know I'm coming home" I'll teacht you how to do it
Just download a ROM for your device. Boot it into recovery, then adb push the zom.zip to your phone. Wipe the data and flash ROM.
TheArc said:
Just download a ROM for your device. Boot it into recovery, then adb push the zom.zip to your phone. Wipe the data and flash ROM.
Click to expand...
Click to collapse
More detailed please

TWRP question

Hi,
Does installing TWRP wipe the personal data after it get installed on the device for the first time ?
Many Thanks to all of you
It shouldn't delete personal data. TWRP is recovery partition, it doesn't deal with the userdata partition. However, some tools used for flashing the TWRP might have an option to completely re-format your phone, so make sure that setting is unchecked. If anything, make a backup of your phone prior to doing this.
mohhaxs said:
It shouldn't delete personal data. TWRP is recovery partition, it doesn't deal with the userdata partition. However, some tools used for flashing the TWRP might have an option to completely re-format your phone, so make sure that setting is unchecked. If anything, make a backup of your phone prior to doing this.
Click to expand...
Click to collapse
Many thanks for you help. actually I can not backup any thing, that is all my actual problem. I can not access to the android OS, but can access the recovery and download mode. Someone suggested to backup all the data from twrp before trying wipping all the phone ... what do you think about that ? Is it a good workarround so I can recover a functionning phone with all my data ?
Many thanks
Edit: I plan to use heimdall to flash the twrp recovery mode on the phone.
Droiid848 said:
Many thanks for you help. actually I can not backup any thing, that is all my actual problem. I can not access to the android OS, but can access the recovery and download mode. Someone suggested to backup all the data from twrp before trying wipping all the phone ... what do you think about that ? Is it a good workarround so I can recover a functionning phone with all my data ?
Many thanks
Edit: I plan to use heimdall to flash the twrp recovery mode on the phone.
Click to expand...
Click to collapse
It depends on the phone. If it is Samsung, just flash the same firmware on top of the device using odin and make sure the re-partition is not checked. Or if you can access recovery mode, try hooking it up to the computer and use adb shell to locate your files and pull them off the device.

TWRP Restore Data and/or System = Bootloop

Something happened to my phone and I succeeded to flash it all new with Android 9.0 which I was on.
But when I try restore twrp backup (data and/or System) I always end up with bootloop.
Tried to reflash Magisk too but doesn't help.
Bootloops right back to TWRP after 2 minutes.
Anyone have any ideas on how I can get my data back from the twrp backup?
Tried to official twrp and bmu_sparks.
Thanks.
timebandi said:
Something happened to my phone and I succeeded to flash it all new with Android 9.0 which I was on.
But when I try restore twrp backup (data and/or System) I always end up with bootloop.
Tried to reflash Magisk too but doesn't help.
Bootloops right back to TWRP after 2 minutes.
Anyone have any ideas on how I can get my data back from the twrp backup?
Tried to official twrp and bmu_sparks.
Thanks.
Click to expand...
Click to collapse
Same thing happened to me yesterday. If you still have access to TWRP, enter it and wipe everything and install newest oxygen pie zip. TWRP is broken for our devie and backups cannot be trusted I'm afraid. Wish I knew this before.
timebandi said:
Something happened to my phone and I succeeded to flash it all new with Android 9.0 which I was on.
But when I try restore twrp backup (data and/or System) I always end up with bootloop.
Tried to reflash Magisk too but doesn't help.
Bootloops right back to TWRP after 2 minutes.
Anyone have any ideas on how I can get my data back from the twrp backup?
Tried to official twrp and bmu_sparks.
Thanks.
Click to expand...
Click to collapse
After restore is complete do not reboot, try the following, it might work,
1-Do not do any wipe,
2-Flash exactly the same ROM which is backed up,
3-Flash twrp,
4-Reboot twrp.
5-Flash Magisk,
8-Reboot system,
In case you are trying to go back from pie to oreo you have to flash roll back rom.
All the best, hope this helps., cheers.
Have tried all that with no luck. But if I do a Factory reset any time after the data restore the phone works but then I dont have any data
This sucks big time.
Have installed all from scratch. Luckly fastboot was working all the time
Some data I could restore with Titanium Backup but not so much I needed/wanted.
Too bad we cant rely on TWRP and its backup/restore feature.
timebandi said:
Have tried all that with no luck. But if I do a Factory reset any time after the data restore the phone works but then I dont have any data
This sucks big time.
Have installed all from scratch. Luckly fastboot was working all the time
Some data I could restore with Titanium Backup but not so much I needed/wanted.
Too bad we cant rely on TWRP and its backup/restore feature.
Click to expand...
Click to collapse
Its good only in the case if you are decrypted, since the time I'm decrypted no such problems, if you want you can try it,
https://forum.xda-developers.com/oneplus-6/how-to/tutorial-decrypt-flash-rom-pie-oreo-roms-t3838643
timebandi said:
Something happened to my phone and I succeeded to flash it all new with Android 9.0 which I was on.
But when I try restore twrp backup (data and/or System) I always end up with bootloop.
Tried to reflash Magisk too but doesn't help.
Bootloops right back to TWRP after 2 minutes.
Anyone have any ideas on how I can get my data back from the twrp backup?
Tried to official twrp and bmu_sparks.
Thanks.
Click to expand...
Click to collapse
Using TWRP backups on this phone is fun but not impossible. This process works for me.
1. Store backups on something other than the phone (I use an OTG card reader and 128 GB SD card)
2. Use a Fastboot Rom of THE EXACT SAME ROM as the backup and let it do it's thing flashing the phone (it will also wipe the phone in the process, which is why you need to store the backup elsewhere)
3. Boot up the phone and go through the whole process of setting it up. Don't worry about installing all your apps.
4. Install TWRP and Magisk if you used it on the backup.
5. Now restore your TWRP backups - just restore system, data, and boot.
I have done this at least 100 times and it has always worked.
I presume the fastboot rom is not only gonna wipe the internal drive but will also lock the bootloader, thats a lot of hassle to do every time you want to restore, but thanks for your suggestions, cheers.
vtec303 said:
I presume the fastboot rom is not only gonna wipe the internal drive but will also lock the bootloader, thats a lot of hassle to do every time you want to restore, but thanks for your suggestions, cheers.
Click to expand...
Click to collapse
The fastboot rom wipes the internal drive but DOES NOT lock the bootloader. Besides, I haven't seen or heard of another way to use TWRP backups without decrypting the phone, and I have security concerns with decrypting the phone.
tabletalker7 said:
The fastboot rom wipes the internal drive but DOES NOT lock the bootloader. Besides, I haven't seen or heard of another way to use TWRP backups without decrypting the phone, and I have security concerns with decrypting the phone.
Click to expand...
Click to collapse
ohh ok, I thought it locks it but thanks for the info, yes thats why I decrypted my device, lets hope in this thread we could find a easy way out to restore sucessfully while encrypted, have you tried just backing up boot, system and data and than restoring it ? cheers
vtec303 said:
ohh ok, I thought it locks it but thanks for the info, yes thats why I decrypted my device, lets hope in this thread we could find a easy way out to restore sucessfully while encrypted, have you tried just backing up boot, system and data and than restoring it ? cheers
Click to expand...
Click to collapse
Yes I tried. Without the fastboot rom to reset everything that stupid encryption bites you in the butt.
Yep. I just restored an entire nandbackup, and now my phone boots to a quailcomm dump screen only, can't fastboot into recovery or anything. Guess my new plans tonight involve fixing this thing.
I also got a bootloop after restoring 8.1 android with twrp 3.3.1 by nemo nemo on my leagoo xrover.
factory reset and wiping everything exept microsd card didnt help...
thanks for some help
vtec303 said:
After restore is complete do not reboot, try the following, it might work,
1-Do not do any wipe,
2-Flash exactly the same ROM which is backed up,
3-Flash twrp,
4-Reboot twrp.
5-Flash Magisk,
8-Reboot system,
In case you are trying to go back from pie to oreo you have to flash roll back rom.
All the best, hope this helps., cheers.
Click to expand...
Click to collapse
Thanks a lot, man. it worked for me

Categories

Resources