Restoring data using twrp? - Moto E Q&A, Help & Troubleshooting

While switching ROMs , can we restore data (internal+sd-ext) from previous ROM using twrp?
Those Who have tried it or having knowledge abt it please share..

Files stored on Internal + External SD has nothing to do with with switching ROMs.
Explanation, while backing up from twrp you get options like system, data, cache and boot.
"Data" here represents application data which includes user apps and their data (data of system apps too).
Example- You downloaded a song from chrome. That song resides on your internal storage but isn't considered as data of chrome (lets say it's external data) , while bookmarks in xhrome is considered as internal data.
So if you're worrying about your songs or photos. Then don't. Just dont wipe your internal storage or external one and everything's safe.
Now about the data partition, it's absolutely fine to restore data only from previous backup of twrp. However it may conflict in the new rom. Suppose you have a data backup of lollipop rom and you're trying to restore it on a marshmallow rom, it'll give you headache a little bit.
None of the VALUABLE application data resides on external storage. (Exceptions are always there like I've seen clash of clans caches in external storage, it's not valuable thats why I've highlighted this word earlier)
Anyway I don't think twrp back up the data stored on external storage (correct me if I'm wrong here).
So you're good to go if you're about to restore data from same version of android. Just restore and see what happens.

-z3r0- said:
Files stored on Internal + External SD has nothing to do with with switching ROMs.
Explanation, while backing up from twrp you get options like system, data, cache and boot.
"Data" here represents application data which includes user apps and their data (data of system apps too).
Example- You downloaded a song from chrome. That song resides on your internal storage but isn't considered as data of chrome (lets say it's external data) , while bookmarks in xhrome is considered as internal data.
So if you're worrying about your songs or photos. Then don't. Just dont wipe your internal storage or external one and everything's safe.
Now about the data partition, it's absolutely fine to restore data only from previous backup of twrp. However it may conflict in the new rom. Suppose you have a data backup of lollipop rom and you're trying to restore it on a marshmallow rom, it'll give you headache a little bit.
None of the VALUABLE application data resides on external storage. (Exceptions are always there like I've seen clash of clans caches in external storage, it's not valuable thats why I've highlighted this word earlier)
Anyway I don't think twrp back up the data stored on external storage (correct me if I'm wrong here).
So you're good to go if you're about to restore data from same version of android. Just restore and see what happens.
Click to expand...
Click to collapse
With SD-ext, I mean second partition which is used for link2sd or app2sd...restoring that in a same Android version on different ROM..will it create problems?
P.s thank you for your reply..?

sikoo1996 said:
With SD-ext, I mean second partition which is used for link2sd or app2sd...restoring that in a same Android version on different ROM..will it create problems?
P.s thank you for your reply..
Click to expand...
Click to collapse
Yes twrp won't backup linked data.
I've tried this for once.
Just do data backup from twrp and then restore it in new rom.
Since you won't be wiping your second partition of sd card. Files there won't be harmed. After restoring you'll get it working like in the previous rom.

Related

How to backup Internal SDCard

Hello,
I got my international S3 2 months ago and I would now like to try a new ROM.
I am worried about looding data.
I did backup my device using CWM and Titanium Backup but it seems to me that neither backs up all of the contents of the internal SD.
Shall I worry about backing up these folders;
.AllSharePlay, .aptoide, .clipboard, Alarms, Andoird/data/(many files under this directory), Gameloft and many many more folders.
How do I know all was backed up with Titanium / CWM
Another irritating issue is that via Windows 7 browser it is impossible to tree size or Beyond compare the phone storage, (both internal and external SDCards). Am I missing something?
If you
Wipe data (factory reset)
Wipe cache
format system
then your internal sd card stays as it is and you dont have to worry about backing it up
CuttyCZ said:
If you
Wipe data (factory reset)
Wipe cache
format system
then your internal sd card stays as it is and you dont have to worry about backing it up
Click to expand...
Click to collapse
Half right, CWM will not wipe the internal SD with a factory reset, but stock recovery will.
And I don't think Titanium backs up the internal SD, all you can do is copy the files to your PC.
delsus said:
Half right, CWM will not wipe the internal SD with a factory reset, but stock recovery will.
And I don't think Titanium backs up the internal SD, all you can do is copy the files to your PC.
Click to expand...
Click to collapse
By saying stock recovery you mean flashing new ODIN?
The thing about copying files to my PC as you stated is a pain, tree size or beyond compare cannot work on the phone's memory, also some files are in use by the system causing the copying to stop and then you have to start guessing what was / not copied.
Consumes a long time, I'm sure there should be an easier way.
Are these files seen in the img I attached needed at all or all is covered by the TIT and CWM backup?
Thanks
rmetanes said:
By saying stock recovery you mean flashing new ODIN?
The thing about copying files to my PC as you stated is a pain, tree size or beyond compare cannot work on the phone's memory, also some files are in use by the system causing the copying to stop and then you have to start guessing what was / not copied.
Consumes a long time, I'm sure there should be an easier way.
Are these files seen in the img I attached needed at all or all is covered by the TIT and CWM backup?
Thanks
Click to expand...
Click to collapse
Stock recovery is what is included with stock ROMs, can't remember exactly what it's called.
I have never had problems backing my internal sd up on my PC, and the files in your pic seem to be your files and some app data, CWM does not back up the internal SD, but it also does not wipe the internal sd, if you wipe data in CWM, it only wipes the data partition and cache partition, 100% not the internal SD. I also don't know Titanium will backup app data from the SD.
delsus said:
Stock recovery is what is included with stock ROMs, can't remember exactly what it's called.
I have never had problems backing my internal sd up on my PC, and the files in your pic seem to be your files and some app data, CWM does not back up the internal SD, but it also does not wipe the internal sd, if you wipe data in CWM, it only wipes the data partition and cache partition, 100% not the internal SD. I also don't know Titanium will backup app data from the SD.
Click to expand...
Click to collapse
Delsus, so you only copy and paste the Internal SD to your PC I guess.
rmetanes said:
Delsus, so you only copy and paste the Internal SD to your PC I guess.
Click to expand...
Click to collapse
Pretty much.
Internal SD card Backup
If U use apps like Lexicomp and Medscape
The file size for lexicomp is about 850,225,187 bytes (only for med not for dental) and number of files are 32037 and Medscape are 60,843,144 bytes and number of files are 2926. It takes more than 1 hour for the PC to determine the time to calculate the duration, to copy the files to PC.......android is still in its infancy comparing to PALM OS
Main Phone is Centro after treo 680, My secondary phone is SIII (a phone with lots of bugs, no one never denies it)
Thank you all guys.
I did rest to FD and you were right the internal SD was not wiped and I have also successfully installed Omega Rom on my S3.

[Q] Flashed from stock to CM10.1, data gone...or is it?

Hi guys.
I just flashed my SGSIII from Stock 4.1.2 to the latest CM10.1 nightly using CWM.
These are the steps, in chronical order, i went through:
Root device
Install CWM
Titanium Backup my apps and app data
EFS Backup
several other manual backups such as sms backup, dcim folder, whatsapp images etc.
Nandroid Backup using the CWM
Transfer all backup files to my MAC, as i don't have an external SD, just in case
Flash CM10.1, Flash Gapps, Wipe Data/factory reset, wipe davlik cache
Everything works fine, therefore copy TB Backup form Mac to device and restore it.
First of all: I didn't expect "wipe data/factory reset" to delete my complete internal storage (in the past being reffered to as sdcard0) containing all my user data like photos etc. But in fact it did! Nowhere to be found right now, which doesn't really matter as i did backup the most important stuff. But anyway...
And here comes the strange thing:
My system tells me that i have 11,35gigs of storage overall but only 6gigs can be used? The internal storage is literally empty. I don't have any files on it except my TB Backup data which is about 450-500mb. Another stange thing is that these 4 or 5 gigs of data which cannot be found anywhere (except DiskUsage) just happen to be as much data as i had on my phone before the whole flashing process.
So, I gotta ask myself: Could this be my old data? If yes, where is it to be found?
Another hint: I used the DiskUsage app to scan my internal storage. It shows me "system data" with a size of a little over 4gigs. What is that? Is this my old - but unaccessible - data?
I wanted to post a screenshot here, but I am not alowed as a new user. So here is my link 0cn[DOT]de[SLASH]ug5c
I'd be very appreciative if you could help me somehow. And yes, I did perform a search before asking, but couldn't find anything. :good:
/sdcard used to mount to /data/media/ but now its /data/media/0 so android is looking here for your data.
Basically all your 11.35 GB is in /data anyway so it accounts for /data/app, data/data (where apks are and app data) but also /data/media (now /data/media/0)
So using a file manager, look for stuff in /data/media and /data/media/0.
In data/media you should only have:
0
obb
Legacy
Often you'll find a clockworkmod folder here due to a backup
Factory reset from stock recovery / android wipes /sdcard. But clockworkmod recovery (and others) do not
Sent from my GT-I9300 using Tapatalk 2
Thank you so much!
Indeed, a copy of my whole old data is in /data/media, so it's full with a bunch of folders, containing my old stuff including the CM.zip and the Gapps.zip etc.
According to your post, this is not right? Should I move the data somewhere?
Is there a good reason why they changed the filesystem and the folder structure in 4.2.x so massively?
And again, thanks!
domemvs said:
Thank you so much!
Indeed, a copy of my whole old data is in /data/media, so it's full with a bunch of folders, containing my old stuff including the CM.zip and the Gapps.zip etc.
According to your post, this is not right? Should I move the data somewhere?
Is there a good reason why they changed the filesystem and the folder structure in 4.2.x so massively?
And again, thanks!
Click to expand...
Click to collapse
first of all, it's not a copy, those are the original files. you can move it to /data/media/0 to be able to access it from the ROM.
the reason for the change is the multiple users feature. /0 is internal SD for the first user, /1 is for the second, and so on
Glebun said:
first of all, it's not a copy, those are the original files. you can move it to /data/media/0 to be able to access it from the ROM.
the reason for the change is the multiple users feature. /0 is internal SD for the first user, /1 is for the second, and so on
Click to expand...
Click to collapse
This makes a lot of sense! Thanks for clarification.
One last question
Strangely enough I found my whole old data here as well: /mnt/shell/emulated
Is there a reasonable explanation for this as well?

Wiped data before flashing ROM but it's still showing up

I'm pretty new to flashing ROMs. My phone is rooted using all in one toolkit, s-off with sunshine. TWRP is my recovery.
I made a backup of my rooted stock ROM , then used TWRP manager to flash cm11. I checked to wipe all the data and dalvik before flashing. Cm installed with no issues.
Once I finished setting it up, I installed es file explorer again and noticed that all my files from my internal storage are still accessible. Its just listed under 0. Everything is still in tact tho.
Did I do something wrong? I don't understand why I still have all these files.
mattprice86 said:
I'm pretty new to flashing ROMs. My phone is rooted using all in one toolkit, s-off with sunshine. TWRP is my recovery.
I made a backup of my rooted stock ROM , then used TWRP manager to flash cm11. I checked to wipe all the data and dalvik before flashing. Cm installed with no issues.
Once I finished setting it up, I installed es file explorer again and noticed that all my files from my internal storage are still accessible. Its just listed under 0. Everything is still in tact tho.
Did I do something wrong? I don't understand why I still have all these files.
Click to expand...
Click to collapse
You have to have internal storage checked for it to be wiped
^^^This. The data that was wiped was system data, not your personal data.
Thanks for responding so quick,
I checked all of the options under install on twrp manager. Looking back, it says wipe data, wipe cache, wipe dalvik. There wasn't an option for wipe internal storage.
Is there anything I can do to fix this now? Or would I just have to go into twrp and reflash cm from recovery, making sure to check wipe internal storage?
Also, if I leave it as is, is it going to cause any problems?
mattprice86 said:
I checked all of the options under install on twrp manager. Looking back, it says wipe data, wipe cache, wipe dalvik. There wasn't an option for wipe internal storage.
Is there anything I can do to fix this now? Or would I just have to go into twrp and reflash cm from recovery, making sure to check wipe internal storage?
Click to expand...
Click to collapse
First off, ditch TWRP Manager, its a needless middle man (you're talking about the TWRP Manager app, right?).
If you boot into TWRP and select Wipe, you will see under "Advanced Wipe" there are a slew of wipe options (but be careful what you pick, as there are options to wipe things like the removable SD).
HOWEVER, you don't need to wipe the internal storage to flash a ROM. Yes, you need to wipe user data (/data) in most cases, and also cache and Dalvik. But wiping internal storage (virtual SD, also called sdcard on ES File Explorer, or sometimes /0) is not needed. For most practical purposes this partition is treated like a removable SD card. In fact, by default, backups like your TWRP nandroid and Titanium Backups are stored here. So if you wipe, you will lose those (unless you move/copy them to the removable SD or somewhere else like your computer).
Some folks like to wipe internal storage when they flash a ROM, just for general cleanup purposes. But its a personal choice, and not really necessary IMO. And as mentioned doing so will wipe your backups unless you save them somewhere else that isn't going to be wiped.
Thank you so much for clearing that up.
Yes, I was talking about twrp manager. You're right, after I checked the options, all it did was reset and boot up twrp. Pretty useless...
So since I still have all my game data stored, can I just copy it over somewhere to retain where I was at? I'm talking about android/obb data.
How would I go about integrated all my previous data into this current software? Let me know it my question made sense or not
mattprice86 said:
Yes, I was talking about twrp manager. You're right, after I checked the options, all it did was reset and boot up twrp. Pretty useless...
Click to expand...
Click to collapse
I think some folks like to use it to install TWRP. But installing with fastboot is easy, and also important to know how to do if you have issues someday and need to re-install TWRP from a non-booted condition.
So yeah I agree that TWRP Manager is pretty useless.
mattprice86 said:
So since I still have all my game data stored, can I just copy it over somewhere to retain where I was at? I'm talking about android/obb data.
How would I go about integrated all my previous data into this current software? Let me know it my question made sense or not
Click to expand...
Click to collapse
Use the app Titanium Backup to migrate app data when flashing ROMs (also handy to migrate app data to a new phone). And paying the few dollars for the Pro Key and getting the batch backup/restore functions is well worth it if you are flashing ROMs.
Do not use Titanium to migrate any system data to a new ROM, as this will likely cause problems. Just apps and app data. I've had success migrating SMS with Titanium as well. But other things like Settings and Homescreen setup, I usually just do again manually after flashing a new ROM.
As mentioned in my post above, the default save location for Titanium Backup data is the internal storage. So do not wipe internal storage when flashing a ROM, or you will lose your backup data.
Just copying the game files will most likely not work to migrate your game save data.
Thanks for all the help, I really appreciate it.
I used titanium backup and extracted my apps and data from my nandroid backup. Worked pretty well.
The only thing I'm having trouble with now is getting my info like contacts and stuff to sync. It says it's synced, but I'm not seeing it.
I wanted to install HTC backup again and try and restore that info. Would that work?
mattprice86 said:
The only thing I'm having trouble with now is getting my info like contacts and stuff to sync. It says it's synced, but I'm not seeing it.
I wanted to install HTC backup again and try and restore that info. Would that work?
Click to expand...
Click to collapse
I can't say, as I don't use HTC Backup.
I prefer to just have my contacts on my Google (Gmail) account. This is the default on the phone, so unless you changed it, your contacts should all be on the cloud on Gmail (you can login to Gmail on a computer and confirm your contacts are there). Then will automatically restore to the phone when you first setup and enter your Google login and password.
If you've confirmed your contacts are on Gmail, and still not synching, go to Settings>Accounts & sync>Google, go to where Contacts is checked, uncheck it, and then check it again. Sometimes the sync will just get "stuck" and this will clear it up.
One M8 stuck on GPE 5.0.1 ROM boot animation
I foolishly reset factory data using TWRP under Wipe, and when I try to reinstall the GPE 5.0.1 ROM I couldn't find it. Then I try to restore my backed up Sense ROM and I couldn't find it under Restore. Maybe I deleted it and I forgot about it. Help me? I don't have MicroSD to store the GPE ROM which I thought would solve my problem because I thought I may have deleted the GPE ROM .zip file when I reset factory data. Now I am stuck on GPE ROM bootanimation the moving around dots. I need help please someone?
muqrimusa said:
I foolishly reset factory data using TWRP under Wipe, and when I try to reinstall the GPE 5.0.1 ROM I couldn't find it. Then I try to restore my backed up Sense ROM and I couldn't find it under Restore. Maybe I deleted it and I forgot about it. Help me? I don't have MicroSD to store the GPE ROM which I thought would solve my problem because I thought I may have deleted the GPE ROM .zip file when I reset factory data. Now I am stuck on GPE ROM bootanimation the moving around dots.
Click to expand...
Click to collapse
If you did the "default" TWRP factory reset (data, Dalvik, cache) this is not foolish, and is the correct wipe for moving to a new ROM.
You either bypassed the default, and went to "Advanced" and wiped the internal storage; or there is also the occasional instance where internal storage is corrupted by no fault of your own (more common with oldr TWRP versions?).
adb push a ROM to the internal storage (or adb sideload flash) while in recovery.
okay I kind of fixed my One M8. But one problem remains, I can't use my internal storage. My Camera App can't use the internal storage so does all the other apps such as Whatsapp or downloads from Chrome. It's as if my internal storage is not there or somehow malfunctioned or the ROM doesnt support the use of internal storage. But before I got into this problem (I forgot how I got it in the first place as it happened months ago only now I was able to fix my One M8), it worked perfectly fine, the Storage had no problem. But I had problems with Wifi, I thought maybe reflashing the ROM was a good idea to fix this but it didn't instead I can't access my internal storage by File Manager or by PC. If you have any solution please help me. Thanks in advanced.
muqrimusa said:
okay I kind of fixed my One M8. But one problem remains, I can't use my internal storage. My Camera App can't use the internal storage so does all the other apps such as Whatsapp or downloads from Chrome. It's as if my internal storage is not there or somehow malfunctioned or the ROM doesnt support the use of internal storage. But before I got into this problem (I forgot how I got it in the first place as it happened months ago only now I was able to fix my One M8), it worked perfectly fine, the Storage had no problem. But I had problems with Wifi, I thought maybe reflashing the ROM was a good idea to fix this but it didn't instead I can't access my internal storage by File Manager or by PC. If you have any solution please help me. Thanks in advanced.
Click to expand...
Click to collapse
Broken WiFi is usually a symptom of wrong (outdated) firmware for the current ROM.
Internal storage may be corrupted. Try to connect to a computer and format it, or you can try RUU.
Or try to re-flash custom recovery, or update or try a different one (if TWRP, try CWM/Philz or vice versa). Some folks fixed similar internal storage issues by flashing recovery.
I need help again.. I decided to format all my data but I kept my backup in the internal storage.. But after rebooting the phone it works but then I can't download apps from the play store or from chrome.. also I can't transfer files from my pc to my one m8.. But I can take photos (which I think uses internal storage).. Also my guest mode is not working.. Ithought something must be wrong with the internal storage so i wiped it out.. When i rebooted everything is black but when I long press the power button 'power off' shows up.. Something must be wrong.. Oh when connecting to my pc it shows CD Drive instead of HTC_OneM8 like it usually would.. Pls reply even when there's no hope to fix this phone at all..

Restore S-Planner

Hello,
I have made a backup of my calendar with "easy backup" from the Play Store and installed a custom rom. Therefore I made a full wipe - unfortunately I lost the backup.
I have stored both, the internal SDCard and the external SDCard to my Computer and still have this data.
Is there any possibility to restore my calendar entries with the given data?
Thank you very much
GerhardK90 said:
Hello,
I have made a backup of my calendar with "easy backup" from the Play Store and installed a custom rom. Therefore I made a full wipe - unfortunately I lost the backup.
I have stored both, the internal SDCard and the external SDCard to my Computer and still have this data.
Is there any possibility to restore my calendar entries with the given data?
Thank you very much
Click to expand...
Click to collapse
Just move the Easy Backup data folder back to your device and reinstall the app. As long as the folder is in the right spot, the app should recognize and restore your data. It's a good idea to sign into an account for the Calendar stuff so it gets stored in a cloud service, thus making this transition easier.
Thank you for your reply!
ahh I think I werent exact enough in my explaination. The problem is, that I made the backup of the internal and external SDCard first and then downloaded the backup tool of which I thought it would make the backup on the external SDCard. Unfortunately the tool stored the backup file on the internal SDCard. So the problem is, that my current backup does not hold the files of the backuptool.
GerhardK90 said:
Thank you for your reply!
ahh I think I werent exact enough in my explaination. The problem is, that I made the backup of the internal and external SDCard first and then downloaded the backup tool of which I thought it would make the backup on the external SDCard. Unfortunately the tool stored the backup file on the internal SDCard. So the problem is, that my current backup does not hold the files of the backuptool.
Click to expand...
Click to collapse
Ah, I see. Gonna be out of luck then unless you
A) Had signed up with a Samsung account and it had synced before wiping
B) Have a nandroid backup of your previous rom to restore (if you don't - shame on you! lol)
If it was saved to your internal storage, then I'm not sure why it still wouldn't be there unless you intentionally wiped it in recovery. Factory data resets in a custom recovery do not touch the partition of your internal storage that you save your app data and media to.
Edit: App data in this sense is what the apps store on your internal storage partition that the phone sees as /sdcard/, which is /data/media not the regular app data stored in /data/data such as like settings and preferences, which does get wiped in a reset.
es0tericcha0s said:
Ah, I see. Gonna be out of luck then unless you
A) Had signed up with a Samsung account and it had synced before wiping
B) Have a nandroid backup of your previous rom to restore (if you don't - shame on you! lol)
If it was saved to your internal storage, then I'm not sure why it still wouldn't be there unless you intentionally wiped it in recovery. Factory data resets in a custom recovery do not touch the partition of your internal storage that you save your app data and media to.
Edit: App data in this sense is what the apps store on your internal storage partition that the phone sees as /sdcard/, which is /data/media not the regular app data stored in /data/data such as like settings and preferences, which does get wiped in a reset.
Click to expand...
Click to collapse
:S I do not understand that actually, because somewhere S-Planner has to save the entries - or not? So I think if I backup anything from the internal/external storage I should also have backed up the database with the entries or not ?

[Q] Need help with Flashing

Ok - In TWRP, I have made a backup of my phone (though I don't think internal storage is an option??)
I have my ROM, in this case I am using Cyanogen.
I do a full wipe and flash and flash the ROM.
My question lies with apps and internal storage. Since none of my apps that I installed are there, but some of their data is in internal storage, what is the best way to deal with that?
For instance, I have a gas log app that isn't there after flashing but its data is on Internal Storage.
audiotech520 said:
Ok - In TWRP, I have made a backup of my phone (though I don't think internal storage is an option??)
I have my ROM, in this case I am using Cyanogen.
I do a full wipe and flash and flash the ROM.
My question lies with apps and internal storage. Since none of my apps that I installed are there, but some of their data is in internal storage, what is the best way to deal with that?
For instance, I have a gas log app that isn't there after flashing but its data is on Internal Storage.
Click to expand...
Click to collapse
Copy or download the ROM, Gapps, and any other flashables to your internal SD card.
Backup any app data that you may want to carry over (For me this is usually contacts, SMSDB, Chomp Settings, Nova Settings. You may have different ones.) . This can be done to the local device, to Google through sync, or another cloud storage service.
When this is complete, Reboot to TWRP.
Wipe Cache, Dalvik Cache.
Make a nandroid backup of partitions: System, Data.
Wipe System, Data, Cache, Dalvik Cache.
You would then install: CM ROM, G Apps, then any additional mods that you want (LG Quick Remote, TBO Black Telegram, etc).
Reboot to System and wait a good 5 minutes before touching the device.
Sign in to Google account(s), sync, restore any app data that you manually backed up.
As far as coming from a stock ROM, there are a few files leftover in the internal storage. Some may be in the /sdcard/ root directory. Others for apps may be installed in /sdcard/Android/ and subdirectories. These may also be manually deleted if you are not carrying them over or no longer using them. Easier to use a file explorer like ES here to be more precise.
restore any app data that you manually backed up.
through Titanium Backup or Reinstall all apps through Play?
Also, can Visual Voicemail still work?
audiotech520 said:
through Titanium Backup or Reinstall all apps through Play?
Click to expand...
Click to collapse
Depends how important your Candy Crush level is to you. I would not use Titanium Backup, just pull the apps from Play and restore therewithin. For SMS, use SMS Backup & Restore in both the old and new ROMs.
audiotech520 said:
Also, can Visual Voicemail still work?
Click to expand...
Click to collapse
I think that it requires a stock-based ROM to use it with Verizon or most carriers. There are also third party services that you can use to free yourself of the carrier, add features, and manager your voicemail visually. Google Voice/Hangouts is cheapest and least featured, but it gets the job done.

Categories

Resources