[Q] Root partition data recovery - Android Q&A, Help & Troubleshooting

Hello. Not so long ago I flashed a custom rooted ROM. After this I realized that I forgot to save some important app configs (im history, notes). As far as I know, Android uses ext4 filesystem on its root partition. Is there a way to perform undelete or any other method to try to recover deleted files? Searching the forums gives some results of repairing data on internal storage, but I guess the user data space is meant, not the root. My device is Huawei U8850 Vision, Android version 4.1.2. Thanks in advance.

loadmem64 said:
Hello. Not so long ago I flashed a custom rooted ROM. After this I realized that I forgot to save some important app configs (im history, notes). As far as I know, Android uses ext4 filesystem on its root partition. Is there a way to perform undelete or any other method to try to recover deleted files? Searching the forums gives some results of repairing data on internal storage, but I guess the user data space is meant, not the root. My device is Huawei U8850 Vision, Android version 4.1.2. Thanks in advance.
Click to expand...
Click to collapse
If your data partition was wiped during flashing, there is no way to recover your lost files. (Assuming that's where they were stored)
Sent from my Nexus 4

Theonew said:
If your data partition was wiped during flashing, there is no way to recover your lost files. (Assuming that's where they were stored)
Sent from my Nexus 4
Click to expand...
Click to collapse
Sorry for hijacking this thread but my question is similar.
I accidentally pasted an older version over the newer file. The file is somwhere in the /data/data directory so I suppose it is on the root partition. Is there any way to recover the previous version of the file?
thx

Related

[Q] Any way of recovering data after doing a factory reset?

A couple of weeks ago, my SGS II crashed really badly and affected my phone in that I kept getting force close messages as well as "System UIDs Inconsistent" ones plus I couldn't access the partitions within my phone in Windows Explorer even though the phone was recognised by it.
It looks as though I may need to do a factory reset which to me is going to be a pain in the ass especially where videos and MP3's are concerned.
Another problem is that even though I installed VillainROM and followed the rules to the letter concerning its installation, supposedly I didn't install the system recovery that was unique to it and which would have made things a lot easier for me.
I don't even know if there is a way to backup data from the partitions to a 16GB or bigger micro SD card within the regular system recovery or not.
If I do need to a factory reset, are there any Apps out there that will let me recover data from the internal partitions as long as I don't write over the lost data concerned? (I know there's software available for PC that does something similar with data stored on hard drives)
Well on Cutom ROM you can use Titanium Backup Pro for Backup and Restoring. On Stock ROM's even Kies would do.
Regards.
ithehappy said:
Well on Cutom ROM you can use Titanium Backup Pro for Backup and Restoring. On Stock ROM's even Kies would do.
Regards.
Click to expand...
Click to collapse
That's the irony, I actually had Titanium Backup installed on my VillainROM custom ROM and I'd even bought an upgrade to the Pro version but for some reason, it wouldn't let me upgrade to the full version even though I had a license for it that I paid for, and as a result, it wouldn't let me do a full backup without having to do it slowly.
If I did reinstall Titanium Backup and managed to get my problem sorted out, would it recover deleted data or not?
Titanium Backup would only restore what it previously backed up.
The most easy way would be to just dump your data partition into a tarball (given you have root access on your phone).
Just hop into a terminal or adb shell and do
Code:
su
busybox tar zcvf /sdcard/data.tar.gz /data
That will give you a full .tar "backup" of all the data on the internal data partition.
Restoring that to app after a wipe and reinstall can be a bit pain in the poo, but it's better than nothing - and a recovery of previous files after a wipe would at best give you the same.
HellcatDroid said:
Titanium Backup would only restore what it previously backed up.
The most easy way would be to just dump your data partition into a tarball (given you have root access on your phone).
Just hop into a terminal or adb shell and do
Code:
su
busybox tar zcvf /sdcard/data.tar.gz /data
That will give you a full .tar "backup" of all the data on the internal data partition.
Restoring that to app after a wipe and reinstall can be a bit pain in the poo, but it's better than nothing - and a recovery of previous files after a wipe would at best give you the same.
Click to expand...
Click to collapse
How do I go into a terminal or adb shell? I'm using Windows 7 if that's any help?
For Terminal install a Terminal App from the marketplace on your phone and run it directely on it.
ADB you get from the Android SDK.
HellcatDroid said:
For Terminal install a Terminal App from the marketplace on your phone and run it directely on it.
ADB you get from the Android SDK.
Click to expand...
Click to collapse
I take it that once I do the factory reset on the phone and install a Terminal App on it via Android Market, I just need to run the command that you recommend that I do and I should be able to recover the data that was on my partitions, pre factory restore?
(Apologies for asking all these questions as I'm still a newbie when it comes to Android and I'm just pissed that this happened in the first place because of the overheating that caused it to happen in the first place)
What if I select advance restore in CWM recovery and restore data? Will it affect the flashed rom?
borgmanjayce said:
I take it that once I do the factory reset on the phone and install a Terminal App on it via Android Market, I just need to run the command that you recommend that I do and I should be able to recover the data that was on my partitions, pre factory restore?
Click to expand...
Click to collapse
No, you run the command BEFORE the factory wipe and use the tarball you got to restore any data you still need.
kryptoner said:
What if I select advance restore in CWM recovery and restore data? Will it affect the flashed rom?
Click to expand...
Click to collapse
Should work too, but depending on *what* borked up the install (might be some setting/config/piece-of-data somewhere) it will be restored as well - but definitaly worth a shot and pretty much "a must" to do those backups (I do them regulary).
gillian07 said:
It is possible to restore deleted files deleted from samsung galaxy s2 android phone after factory reset, take a look at this guide: recover data after android phone factory reset
You'd better do not use the phone before you get back lost files.
Click to expand...
Click to collapse
Blair Miller said:
You can check this related atciel recover files after restore factory settings
Click to expand...
Click to collapse
No program is free without compromise. If you factory reset without backup, there is not much you can do to recover deleted files. That's why such warnings exist before reverting back to a clean state.
You can try a Recuva download the program connect as storage device and try to scan Hope it helps
ma11221 said:
You can try a Recuva download the program connect as storage device and try to scan Hope it helps
Click to expand...
Click to collapse
Recovery programs such as recuva work best on magnetic media such as pc hard drives. Flash storage on mobile phone are different as there are no moving parts, so recovery is not that easy. There is also a much higher likelihood of corruption on flash storage too when restoring deleted files, so that's why there is really no 'best' method for recovery.
How to Recover Deleted Data from Android after Factory Reset
When you perform a factory reset on Android, you will return the device to the condition it was when shipped from the factory. A factory data reset can help fix most issues that occur on Android. Any incorrect settings, glitches, bugs, viruses, or software problems on the device will be wiped clean.
But the files deleted from an Android phone aren’t actually wiped from its memory. Instead, the files are only marked as deleted and invisible. The system will write data over those files in the future. You can later use specialized data recovery tool to scan the Android memory for deleted files and try to recover them.
mendywen0322 said:
When you perform a factory reset on Android, you will return the device to the condition it was when shipped from the factory. A factory data reset can help fix most issues that occur on Android. Any incorrect settings, glitches, bugs, viruses, or software problems on the device will be wiped clean.
But the files deleted from an Android phone aren’t actually wiped from its memory. Instead, the files are only marked as deleted and invisible. The system will write data over those files in the future. You can later use specialized data recovery tool to scan the Android memory for deleted files and try to recover them.
Click to expand...
Click to collapse
Got any tips on what software?

[Q] Nabi 2 Kids Android Tablet

Hello Everyone,
I have not play with any android devices since android 2.0 and even back then found self rooting tools. I got my Kid Nabi2 tablet. Runs Android 4.0.4 currently. Nice little tablet. Problem is only have 8GB or storage. About 4gb after all system partitions and recoveries. So my question is can I safely back up my recovery partition to external source to free up some space? I assume recovery partition has complete recovery files when I do restore to factory option. I I remember correctly android has few partitions. /boot, /system, /recovery, /sd. is there a way just to have your operating system and whatever apps. Have recovery mode but have files on like sd card. If I decide to root this device dose that changes anything in my recovery partition. If device is rooted can I just go back to completely stock by doing factory reset? I just want to make sure that if I root it and want to go back to complete stock for any reason I can do that.
You can restore from your backup that gets made after you flash the custom recovery.
Here is the original script for using on Windows:
http://forum.xda-developers.com/showthread.php?p=32207344
Though you should use the gapps package from http://forum.xda-developers.com/showthread.php?p=35888524 as it gets rid of the 'android upgrading' messages on every boot.
If you want a more manual method, or are on linux, see http://forum.xda-developers.com/showthread.php?t=2016463
t499user said:
You can restore from your backup that gets made after you flash the custom recovery.
Here is the original script for using on Windows:
http://forum.xda-developers.com/showthread.php?p=32207344
Though you should use the gapps package from http://forum.xda-developers.com/showthread.php?p=35888524 as it gets rid of the 'android upgrading' messages on every boot.
If you want a more manual method, or are on linux, see http://forum.xda-developers.com/showthread.php?t=2016463
Click to expand...
Click to collapse
T499user, thank you for replaying. I do run windows. I did look at the section you direct me to me before. What I don't understand is when you root with his program do I use option 1 or 2. Where dose the back up go and how do I restore it later? when I restore dose that bring it back completely to stock, meaning just like it was when i got it? I'm currently running new nabi software do I have to worry about losing wifi?
Also is there a way of freeing up space on my nabi 2 by keeping a back up somewhere else. I think now there is recovery/back up partition. that works when I do factory reset. is that is how that works?
By installing new custom recovery would other recovery still be there?
Sorry trying to get back after many Apple years..
skull791 said:
T499user, thank you for replaying. I do run windows. I did look at the section you direct me to me before. What I don't understand is when you root with his program do I use option 1 or 2. Where dose the back up go and how do I restore it later? when I restore dose that bring it back completely to stock, meaning just like it was when i got it? I'm currently running new nabi software do I have to worry about losing wifi?
Also is there a way of freeing up space on my nabi 2 by keeping a back up somewhere else. I think now there is recovery/back up partition. that works when I do factory reset. is that is how that works?
By installing new custom recovery would other recovery still be there?
Sorry trying to get back after many Apple years..
Click to expand...
Click to collapse
I prefer to do it manually, but if you are going to use the script, use option 2. Then you can install gapps from TWRP using http://forum.xda-developers.com/showthread.php?t=2065878.
The backup that gets created is of the current system state. It is stored in /sdcard/TWRP/backups/*serialnumber*/backupname
No worries about wifi as long as you did all of the OTA updates.
t499user said:
I prefer to do it manually, but if you are going to use the script, use option 2. Then you can install gapps from TWRP using http://forum.xda-developers.com/showthread.php?t=2065878.
The backup that gets created is of the current system state. It is stored in /sdcard/TWRP/backups/*serialnumber*/backupname
No worries about wifi as long as you did all of the OTA updates.
Click to expand...
Click to collapse
Now do I have to install TWRP or when i root it will do it for me?
It will be done with the script.
t499user said:
It will be done with the script.
Click to expand...
Click to collapse
What dose exactly gets back up?
also do you know why nabi2 only has about 4.45gb of free storage when total is 8gb? 3.55gb seems a lot for system files???
skull791 said:
What dose exactly gets back up?
also do you know why nabi2 only has about 4.45gb of free storage when total is 8gb? 3.55gb seems a lot for system files???
Click to expand...
Click to collapse
The system, boot, and data partitions get backed up. That is the way they set it up for the partitions.
All of your questions have already been answered in the other threads, might want to do a search for 'Nabi' and have a read.
t499user said:
The system, boot, and data partitions get backed up. That is the way they set it up for the partitions.
All of your questions have already been answered in the other threads, might want to do a search for 'Nabi' and have a read.
Click to expand...
Click to collapse
T499user trust me I been reading crazy and still cant find an answer. Want to point me to the right place ?
No problem, I would start with the following:
http://forum.xda-developers.com/showthread.php?t=1905674
http://forum.xda-developers.com/showthread.php?t=2016463
t499user said:
No problem, I would start with the following:
http://forum.xda-developers.com/showthread.php?t=1905674
http://forum.xda-developers.com/showthread.php?t=2016463
Click to expand...
Click to collapse
Thank you. I did read all of them. Do you know where I can find something about android system file. Mostly why I have only 4.45gb out of 8. Is thereba way to move back up patition? To external source to free up some space?

[Q] Cannot restore stock backup

Hello!
I have recently unlocked and rooted my international Atrix it in order to try some other custom ROM's.As advised, i did make a backup of the original ROM (with Romracer’s Recovery 5.0.2.7-atrix5) before installing a new one(the backup files resulted are using this file extension ext3.tar).
After a while i decided to go back on 2.3.4 GB because of the better battery life.I encountered an error while restoring the system "Not enough space on device"(by using advanced restore i could restore data,cache and other partitions except system).
After searching on the internet about this problem, i realized that i couldn't restore the backup because my system partition has 320 MB of space while the system backup archive has 310 MB.It looks like the system need a bit more space in order do be able to extract/install and do it's thing.
My question is: 1) Do you guys know any method that i can use in order to restore that system partition?
1a) Is it possible to somehow alter the backup to make it smaller?
1b) Is making the system partition bigger an solution(i heard you can brick your phone by doing this)?
2) And last, if there is no way of restoring my backup, does anyone know where i could find an International 2.3.4 GB Fruitcake?I searched the whole forum but i couldn't find any working links.
Tracu said:
Hello!
I have recently unlocked and rooted my international Atrix it in order to try some other custom ROM's.As advised, i did make a backup of the original ROM (with Romracer’s Recovery 5.0.2.7-atrix5) before installing a new one(the backup files resulted are using this file extension ext3.tar).
After a while i decided to go back on 2.3.4 GB because of the better battery life.I encountered an error while restoring the system "Not enough space on device"(by using advanced restore i could restore data,cache and other partitions except system).
After searching on the internet about this problem, i realized that i couldn't restore the backup because my system partition has 320 MB of space while the system backup archive has 310 MB.It looks like the system need a bit more space in order do be able to extract/install and do it's thing.
My question is: 1) Do you guys know any method that i can use in order to restore that system partition?
1a) Is it possible to somehow alter the backup to make it smaller?
1b) Is making the system partition bigger an solution(i heard you can brick your phone by doing this)?
2) And last, if there is no way of restoring my backup, does anyone know where i could find an International 2.3.4 GB Fruitcake?I searched the whole forum but i couldn't find any working links.
Click to expand...
Click to collapse
did you try wiping system, then restoring? did you try searching for das8nt's webpage via yahoo/google/etc?
Sent from my MB860 using xda app-developers app
palmbeach05 said:
did you try wiping system, then restoring? did you try searching for das8nt's webpage via yahoo/google/etc?
Sent from my MB860 using xda app-developers app
Click to expand...
Click to collapse
Wiping system does not solve the issue and yes, i did search on the das8nt website.

[Q] System data too large after unroot plz help

Hi-
I was rooted on a Nexus 4 with a custom kernel, and then I flashed the stock kernel/boot.img and updated to android 4.3, which I think caused me to lose root.
I'm running out of storage space for seemingly no reason, so I downloaded diskusage app and there's a section called system data that is taking up 3.8 gigs. From other threads, it seems likely that there's some old backups from clockworkmod or maybe titanium backup somewhere taking up too much space.
The problem is I cannot see any of those folders. I went through all the folders with various file explorers and can't find any old backups to delete. How can I do that? Do I need root access to see them?
I also can't seem to uninstall the SuperSU app. I tried a factory reset but the large system data 3.8gb chunk is still there.
I'm just trying to get back to stock and remove whatever mysterious files are taking up way too much space. Any help would be appreciated! Thanks.
pf4711 said:
Hi-
I was rooted on a Nexus 4 with a custom kernel, and then I flashed the stock kernel/boot.img and updated to android 4.3, which I think caused me to lose root.
I'm running out of storage space for seemingly no reason, so I downloaded diskusage app and there's a section called system data that is taking up 3.8 gigs. From other threads, it seems likely that there's some old backups from clockworkmod or maybe titanium backup somewhere taking up too much space.
The problem is I cannot see any of those folders. I went through all the folders with various file explorers and can't find any old backups to delete. How can I do that? Do I need root access to see them?
I also can't seem to uninstall the SuperSU app. I tried a factory reset but the large system data 3.8gb chunk is still there.
I'm just trying to get back to stock and remove whatever mysterious files are taking up way too much space. Any help would be appreciated! Thanks.
Click to expand...
Click to collapse
If your overall goal is to get back to complete stock, I would recommend downloading this factory image for the Nexus 4 and flashing it. Let me know if you still have questions.
question
Thanks - can I flash this without root?
pf4711 said:
Thanks - can I flash this without root?
Click to expand...
Click to collapse
Yes, you can flash the Nexus 4 factory image without root I would recommend checking out this guide for a tutorial on how to flash a factory image to your Nexus 4.
thanks
thanks for the help

How to recover deleted .zip from Android devices

Hello All,
I deleted a zip file from my android device(not rooted)., And I need to recover the zip file which contains photos approx 150Mb.
Is there a possible way to recover it., Even paid tools/apps I am ready to try.
Just need to know a valid method to recover it. Please help
Thanks.
siadathali said:
Hello All,
I deleted a zip file from my android device(not rooted)., And I need to recover the zip file which contains photos approx 150Mb.
Is there a possible way to recover it., Even paid tools/apps I am ready to try.
Just need to know a valid method to recover it. Please help
Thanks.
Click to expand...
Click to collapse
Without root? Probably not.
Sent from my SM-S767VL using Tapatalk
Android OS doesn't have a Recycle Bin as that's the case with for example Windows OS, unless you install such an extension.
jwoegerbauer said:
Android OS doesn't have a Recycle Bin as that's the case with for example Windows OS, unless you install such an extension.
Click to expand...
Click to collapse
That is true, but, deleted data doesn't truly get wiped/removed unless the data is overwritten. When a file is deleted, it doesn't get deleted, it just gets marked by the system to be ignored until the next time the system needs to write data, at such times, it will write the new data over the data that has been marked.
Data recovery software does have the ability to find this data that has been marked for deletion and recover that data. But it requires root.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
Data recovery software does have the ability to find this data that has been marked for deletion and recover that data. But it requires root.
Click to expand...
Click to collapse
Most of the recently released higher-end Android devices running Android Lollipop or higher come with data encryption enabled out-of-the-box - in order to be more resistant to government snooping.
IMO even if it may be true that a data recovery software can find and recover deleted data, these data are encrypted and therefore without any use of all, unless you have appropriate forensic tools.
If I'm mistaken then please tell me the data recovery software that can bring back deleted data in decrypted way.
Data recovery software works for you, but all require the phone to be rooted, so you will need to do that first to your device. With root access, it can scan the files that would normally be inaccessible.
It can be recovered back with some data recovery software?If the.zip is too large,i tink it will be difficult to recover back.
Droidriven said:
That is true, but, deleted data doesn't truly get wiped/removed unless the data is overwritten. When a file is deleted, it doesn't get deleted, it just gets marked by the system to be ignored until the next time the system needs to write data, at such times, it will write the new data tover the data that has been marked.
Data recovery software does have the ability to find this data that has been marked for deletion and recover that data. But it requires root.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
I Do not mind rooting now, but !! my understanding is that if I root the device now., It will wipe off all my data in my phone, coz rooting the phone is another way of flashing?? It will be more hard to recover file if my phone is wiped out.
Saenyu67 said:
It can be recovered back with some data recovery software?If the.zip is too large,i tink it will be difficult to recover back.
Click to expand...
Click to collapse
My file is hardly 150MB zip file. Not of huge size.
siadathali said:
I Do not mind rooting now, but !! my understanding is that if I root the device now., It will wipe off all my data in my phone, coz rooting the phone is another way of flashing?? It will be more hard to recover file if my phone is wiped out.
Click to expand...
Click to collapse
Yes, but, only if the rooting method requires unlocking your bootloader because unlocking the bootloader formats the data partition. But, if you can find a way of rooting without having to unlock the bootloader or flashing a custom recovery, it won't format your data partition.
Honestly though, your chances of rooting without unlocking bootloader or flashing custom recovery , aren't very good. To do so would require finding an app or PC program that is a "universal rooting tool" and it would require the tool having an exploit that works on your device.
Or, you could do a Google search for:
"Recover data android no root"
Then try the various tools and methods that finds, if you can find videos in that search, it may help you further.
Sent from my SM-S767VL using Tapatalk

Categories

Resources