[Q] [HELP] Accidentally formatted data partition - Nexus 5 Q&A, Help & Troubleshooting

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.

Related

Recovering data on hard-reset?

I recently accidentally hard-reset my xda iii. Most of data was stored on my sd card (which of course i can recover). I want to know whether it is possible to recover other data, much in the same way you would with a desktop. There were several important text messages i needed.
Is this possible or has the data gone for good?
Silly me, didn't back up in a while...
in the flash part of the memory you can as in /storage and extented rom but not the ram they work just like ram in your pc == no power no bytes no memory of last state to undelete to
Ok, so there may still be some data in the flash part. Do you know of any programs that might help me?
Thanks for your reply
A hard reset will have more than likely wiped what was stored internally.
I suggest you get a backup utility and start using it, that way, if it happens again, you will have a full backup of everything you had installed, and all of the files stored on the device.

[Q] How to access System, Data, Cache, etc.

Hello! I don't speak english, sorry. But I have a trouble. Can I mount System, Data folders to my PC for recover files on it?
I execute Format Data, Format System in 4ext recovery and lose my Contacts. I know that contact's database placed in some file on System or Data partition. How to recover it?
P. S.: I have not install any firmware after formatting partitions to prevent damage my data...
Please, Help me!
You can use adb to access any files on those partitions, but as you've formatted the data partition, those files will not exist anymore.
If you could "mount" the partitions, they would now be empty. I don't think there's any way to recover the data unless you have a backup somewhere (Google account?).
If there is a way, it's not a question of mounting the partitions, but actually using data recovery techniques on the phone's internal memory.
Does anybody know if that's possible / feasible?
Edit: don't you have a nandroid backup you could restore from?
that:
http://forum.xda-developers.com/showthread.php?t=1994705
might be possible solution, or a base (direction) do dig further...
I recently have been recovering, stupidly formated drive too,
got the data back (most of it anyway )
but the tree (folder structure )
was irrevertably gone, and part of a file names as well,
so, when you calm down, after getting data back,
you realise there is still a gigantic work ahead,
with bitting through thousands of files with names like:
< _ibc.so or _ops.png >, and guessing which belongs to what....
...but, if one strongly sets ones mind on accomplishing the task,
it is possible....
Edit: the link above, is just a beginning of the journey,
oft, one has to gather bits of several tutorials and [HOW TO]`s
and that is what i also, stongly recommend to do,
its because, these things are often non official- hundred percent
novice proof hardened methods,
each of them, had worked for somebody,
but there is no guarantees- that particular method`ll work for you...
Success:good:

[Q] Undo data wipe/undo changing FS

Hello everyone,
so I accidentally wiped my /data/media on my OnePlus One where all my backups where in because I wanted to try out F2FS . I didn't have in mind, that for doing that TWRP would have to format the whole userdata partition instead of just using rm for everything except /data/media like in normal wiping :silly:.
Now I wondered if there was any way to recover at least the last deleted backup, because I guess it's still lying around somewhere in the flash cells. I know that there are plenty of programs for PCs to accomplish that, but does anyone perhaps have an idea about how to do it on a phone, preferably without having to boot into Android, as it might overwrite the data when setting up? I thought about pulling an image of the partition via adb in recovery and try to recover the files from that on the PC, but I have no idea on how to get the image to my pc without storing it on the phone first, which would obviously definitely overwrite all the data. And also I don't know if that image would actually contain all the data because I couldn't find out if the flash uses wear leveling.
If anyone has got any idea I would really appreciate to hear it, even if it only says that it's impossible.
Many thanks in advance .

HELP! Accidentally formatted internal storage in TWRP 3.0.0!!!

: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.

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