HELP! Accidentally formatted internal storage in TWRP 3.0.0!!! - ONE Q&A, Help & Troubleshooting

:crying::crying::crying::crying::crying:
Hi,
Today i wanted to install Sultanxda CM13, so I carefully wiped only data, system, cache, dalvik cache & ART in Multirom-TWRP 3.0.0 after taking backups in Titanium Backup & nandroid backups. Then I went to wipe>advanced wipe>ticked system>fs options>change fs>selected f2fs & swiped . Same I did for data & cache (formatted only /data, /system & /cache). After that, when I when I went to install zip, MY INTERNAL STORAGE WAS EMPTY! (Also, 54GB space remaining in internal storage) :crying::crying::crying::crying:: OH DAMN S**T . I am very very sure I didnt wipe or format Internal Storage. And now my whole internal storage is gone (IT HAD VERY VERY IMPORTANT VIDEOS, PHOTOS & DOCUMENTS).
SO PLEASE HELP ME IN RECOVERING THE FILES. And curse you TWRP 3.0.0!
EDIT 1: I just saw this xda thread: http://forum.xda-developers.com/gal...de-internal-memory-data-recovery-yes-t1994705. But it needs ADB & root access, and I dont have OS. Installing OS isnt a problem or me, but if I install OS, some files would be written on data partition, and that would decrease the chances of file recovery. So any way to access root & adb without OS? @DaxNagtegaal and other people can you please help?
EDIT 2: I tried to use root in adb (in TWRP), but it doesnt work. So I installed COS12.1 YOG7DAS2K1-signed flashable zip & SUperSU 2.65 as a last resort in TWRP, booted it, skipped any data restore (to do it later), installed busybox and now I am trying the long-method given here: http://forum.xda-developers.com/gal...de-internal-memory-data-recovery-yes-t1994705 (Now I am making .raw file of the internal storage block through adb). (It seems its gonna take about 8 hours to completely make the vhd file).

Buy an otg cable download a rom on your pc,transfer it to your pc and voila else you can also buy a usb which can be plug directly in your mobile.i think you will be able to recover some file because rom won't take over 54gb.

Please read properly. I installed COS 12.1 YOG7DAS2K1 as a last resort. Now I am trying to recover the data.

I don't think you will be able to recover all the files but atleast some will be recoverable as rom won't take over all space,how many files were there?which files were valuable to you? it its photos?as i once lost my pictures since then im using google photos!

Yup, many pics, some documents, some text files (in which I save all my passwords, usernames, etc) & videos (also game data ).

ah ok i feel you mate,now when you are up and running just use google photos for pictures and googledrive or dropbox for your important files,atleast you know you will be safe if ever you encounter any issue.

Try " delete " like recovery app .once i tried and recover nearly 500 photos but i hadn't try to recover files .

If you change data to f2fs this will wipe your internal storage. Just do a backup next time and inform you more.

Related

[Q] [HELP] Accidentally formatted data partition

I wanted to do a factory reset (i.e. remove everything from /data except /data/media/0), but ended up formatting the partition, partly because the Materialised Theme rearranges the buttons, partly because I am a bit dumb seemingly...
After I realized what I just did, I immediately piped the whole partition onto my PC using dd and netcat. I hoped to be able to recover my photos and the /data TWRP backup I did before using photorec, but it couldn't find a single file :crying:
So does TWRP reset every bit of the partition to zero when formatting it?
Or could there be another explanation on why photorec doesn't find anything? Could there be any chance that I'll see my data again?
It's flash memory, tricks that would work on a physical hard disk WILL NOT recover any data. I am sorry but it is not possible, by ANY means, to recover your data.
It sucks I know but please take this as a learning experience on the value of off-device backups. You can upload twrp backups to Google drive directly from the phone for easy secure storage and recovery.
Also Google will sync and backup your photos if you enable it, for the future.

Browse twrp backup

Hey guys i got a question. I did a backup via twrp and moved it to a USB flash drive then did a factory reset now I'm trying to fnd my photos to restore them via nandroid manager but i cant find them. Can anyone tell me the path where they were backed up?
FYI im pretty sure the photos are weithin the backup because it has a size of about 5gb.
Thank you in advance!
The 'backup' is for the system. Twrp does not backup folders per se. All my pics are on my 128gb card and no matter what I flash or restore, there they are. Are you saying they were on the phone and you managed to delete them, if so, that's what a restore should fix. I say should because sometimes restores don't work the way you might expect them too.
Yeah but I want to restore just the photos is there a way to extract them out of the backup?
Sent from my Xperia Z3 using XDA Free mobile app
TWRP backups and recovery backups in general only save /system, /cache, /dalvik-cache and /data, but the data directory has stored only app data, settings etc. but no media (that's in the /media or /sdcard directory). If you did a factory reset usually the internal sdcard won't be cleared. If it somehow happened your pictures are lost, if you didn't enable Google's automatic photo backup.
Link for a clearer explanation:
https://m.reddit.com/r/Nexus5/comments/278oq8/twrp_backup_is_data_the_sdcard_how_does_restore/

[CLOSED] How to Full Backup With TWRP (Include Internal Storage)?

Hi All,
I have N910C and using LineageOS 14.1 and TWRP 3.2.3.0.. Yesterday i saved full backup and selected:
System
System Image
Data (excl. storage)
Cache
Preload
Boot
Recovery
Modem
EFS
Then wiped everything and tried another ROM. I didn't like it and restored this backup and i can't see Internal Storage. I guess it didn't take them.
How can i backup "all" the things in my phone with TWRP? If i can't, can you advise me a stable app for this job?
P.S: I don't want to use an app for this. I want to do with TWRP but i don't know how can i backup Internal Storage with that.
Thank you.
This has been answered before and can be made known by searching this anywhere on XDA, for example "backup internal storage TWRP".
You selected Data (excluding storage). Note the 'excluding'.
In order to backup your internal storage as well, you need to select 'Internal Storage' from the list of partitions in TWRP.
Depending how much you have filling up your phone, this can make TWRP backups quite large.
One explanation can be found here
Thread closed.

How To recover my photos from my rooted android

Hi i recently made a backup with wondershare mobile trans and it created a .BAK file of 30gb and it is corrupted i don't know why, I can't read videos and photos (if you know any way to access the data in it even if it is corrupted please tell me), i tried extracting it with winrar but it only extracts 6gb of some photos , the rest is corrupted it can't finish extraction.
I flashed a new rom and orange fox recovery , i have root access , i installed disk digger with full root access but it can't find any photo (not a single one) in my internal storage , is there any way to recover my photos from internal storage ?
I flashed my phone before knowing The backup file .BAK was corrupted
If you flash a ROM then Android's internal storage memory - who is surprised ? - gets completely overwritten, means previously stored data have been lost.
jwoegerbauer said:
If you flash a ROM then Android's internal storage memory - who is surprised ? - gets completely overwritten, means previously stored data have been lost.
Click to expand...
Click to collapse
I formatted internal storage before flashing the new rom
Steps to recover your deleted data from your rooted Android device-
1. Connect Your Android device.
2. Launch Android Data Recovery software on computer and choose 'Data Recovery'
3. Choose file types to Scan
4. Preview and restore lost data from Android phone.
Stop using your phone to prevent new files from overwriting lost data. Then try to use data recovery software to detect the photos from internal storage. If it can be detected, recovery is simple.
jwoegerbauer said:
If you flash a ROM then Android's internal storage memory - who is surprised ? - gets completely overwritten, means previously stored data have been lost.
Click to expand...
Click to collapse
I tend to think it's a lost cause especially if the drive is zeroed out when you flashed.
Don't know but...
This wouldn't surprise me as it's a wise precaution to ensure a clean flash/load.
Even if not overwritten the file structure is lost as that was certainly overwritten when you flashed it. All you will find at best is completely random disjointed files.
The images will have no metadata ie time stamp etc. If you have hundreds, thousands of random images just forgetting about them becomes the less frustrating option many times. There's no way to index them except by memory, one at a time.
Been there, done that

Stuck in recovery after rom update

Hello,
I just updated the rom Evolution X 11 on my Xiaomi Mi 9T Pro after using an older version for about half a year.
Now my phone does not boot anymore, its stuck in recovery (TWRP). Also all data seems to be encrypted and TWRP is not asking for a password.
Is there a way to get my phone to boot again or at least backup my data before I do a full wipe?
You should always do a full twrp backup before messing with roms.
The best solution would be to backup the "Data" and "Internal Storage" partitions. Data contains all apps, their appdata and settings, while internal storage contains all of your own files (photos, videos etc.). After you back these up, wipe your phone (system, data, cache, dalvik) and flash the version of evolution x you were using previously. Now restore data and internal storage and your device should be back to normal.
If you get a bootloop while booting after restoring data and internal storage, then wipe the device again and this time flash evolution x, but only restore internal storage. This way, it should boot and you will be able to recover your files, though your apps will be gone.
If you only restore internal storage then it will no doubt boot up and you will have access to your files, but since you'll have already backed up the important stuff (data + internal storage), you might as well try restoring data as well, as there is no harm, and if the phone boots correctly after restoring both partitions, your phone will be as it was before your updated your rom.
This happened a while back to me with my J5, the issue was that I made a full TWRP backup, then began to test other roms. After I was done, I tried to restore my backup, but it would constantly fail. I sat down for a while, confused and sad about how my TWRP backup had failed me. I tried every solution I could think of, eventually this solution I've mentioned in the above paragraph came to my mind. Thank god for putting it into my mind, otherwise I would've lost a lot of stuff (mainly whatsapp chats which werent backed up, and a lot of apps which I took the time to pain-stakingly configure in the best way for my device).
Anyways, enough of my story, hope this helps you out! If it does, message back here and let us know, and also mark my post as the solution if it was able to help you, so that anyone else who stumbles upon this thread can be saved too!
Cheers!
PhotonIce said:
You should always do a full twrp backup before messing with roms.
The best solution would be to backup the "Data" and "Internal Storage" partitions. Data contains all apps, their appdata and settings, while internal storage contains all of your own files (photos, videos etc.). After you back these up, wipe your phone (system, data, cache, dalvik) and flash the version of evolution x you were using previously. Now restore data and internal storage and your device should be back to normal.
If you get a bootloop while booting after restoring data and internal storage, then wipe the device again and this time flash evolution x, but only restore internal storage. This way, it should boot and you will be able to recover your files, though your apps will be gone.
If you only restore internal storage then it will no doubt boot up and you will have access to your files, but since you'll have already backed up the important stuff (data + internal storage), you might as well try restoring data as well, as there is no harm, and if the phone boots correctly after restoring both partitions, your phone will be as it was before your updated your rom.
This happened a while back to me with my J5, the issue was that I made a full TWRP backup, then began to test other roms. After I was done, I tried to restore my backup, but it would constantly fail. I sat down for a while, confused and sad about how my TWRP backup had failed me. I tried every solution I could think of, eventually this solution I've mentioned in the above paragraph came to my mind. Thank god for putting it into my mind, otherwise I would've lost a lot of stuff (mainly whatsapp chats which werent backed up, and a lot of apps which I took the time to pain-stakingly configure in the best way for my device).
Anyways, enough of my story, hope this helps you out! If it does, message back here and let us know, and also mark my post as the solution if it was able to help you, so that anyone else who stumbles upon this thread can be saved too!
Cheers!
Click to expand...
Click to collapse
Thank you for your help but backing up the data and internal storage doesnt seem possible right now because all the data is encrypted in TWRP...
If you can't backup anything, then wipe system, cache and dalvik, and flash the version of evolutionx you were previously using. Then boot, it should be fine. If it wont boot (give it some time, it will take the time of a fresh install), then this time wipe system+data+cache+dalvik, then flash whichever rom you like and you'll be able to access the files.
You can also try using platform tools and fastboot or adb ( i dont remember exactly which one) to copy the filess from your phone onto your pc.
Sorry if this doesn't apply to your situation, I've never used a phone which has been encrypted, as such I have no experience with them.
PhotonIce said:
If you can't backup anything, then wipe system, cache and dalvik, and flash the version of evolutionx you were previously using. Then boot, it should be fine. If it wont boot (give it some time, it will take the time of a fresh install), then this time wipe system+data+cache+dalvik, then flash whichever rom you like and you'll be able to access the files.
You can also try using platform tools and fastboot or adb ( i dont remember exactly which one) to copy the filess from your phone onto your pc.
Sorry if this doesn't apply to your situation, I've never used a phone which has been encrypted, as such I have no experience with them.
Click to expand...
Click to collapse
That sounds like a good idea. I found the old version on my PC.
Now I just need a way to install it... because twrp cant read the file. I tried with adb sideload but that results in an error for some reason. Flashing Magisk for example with adb sideload is possible.
Edit: Got it to work by using a tool called "Large Address Aware". Now waiting for the results...
PhotonIce said:
If you can't backup anything, then wipe system, cache and dalvik, and flash the version of evolutionx you were previously using. Then boot, it should be fine. If it wont boot (give it some time, it will take the time of a fresh install), then this time wipe system+data+cache+dalvik, then flash whichever rom you like and you'll be able to access the files.
You can also try using platform tools and fastboot or adb ( i dont remember exactly which one) to copy the filess from your phone onto your pc.
Sorry if this doesn't apply to your situation, I've never used a phone which has been encrypted, as such I have no experience with them.
Click to expand...
Click to collapse
This did not help unfortunately... Im still in the same recovery-bootloop and my data is still encrypted.
It's probably still bootlooping as the data partition got modified when you flashed the newer version of evolutionx, and now it will not work with the old one. You can try wiping system+data+cach+dalvik and then flashing any rom of your choice. This will give you access to your internal storage (photos, media etc), but it will remove your apps and their settings. Whatsapp images are stored in the internal storage so you won't need to worry about those.
Again, this is risky, as it may not work (I don't know much about encryption), or you might still not be able to access your files after flashing the new rom. Proceed at your own risk.
PhotonIce said:
It's probably still bootlooping as the data partition got modified when you flashed the newer version of evolutionx, and now it will not work with the old one. You can try wiping system+data+cach+dalvik and then flashing any rom of your choice. This will give you access to your internal storage (photos, media etc), but it will remove your apps and their settings. Whatsapp images are stored in the internal storage so you won't need to worry about those.
Again, this is risky, as it may not work (I don't know much about encryption), or you might still not be able to access your files after flashing the new rom. Proceed at your own risk.
Click to expand...
Click to collapse
Thank you for still helping me out but I already did a full reset yesterday. I did not lose much except for the time setting it all up again.
I still dont really get the point of encrypting all your data if you cant decrypt it even if you know the password...

Categories

Resources