TWRP nandroid - Android Q&A, Help & Troubleshooting

Good Morning,
I would like to make a Nandroid backup with TWRP, but on their website there is this FAQ hereunder which if I understand correctly, states that internal storage is not included. I don't have an external card but only internal storage. Can someone confirm that a nandroid with TWRP doesn't include the data in internal storage, or is this a misunderstanding?
Many thanks.
What is EXCLUDED from a TWRP backup?
Apr 11, 2018
First of all: you have to choose the partitions which should be added to a backup but there is an important thing to know regarding the /data/media storage (FAQ: What is a data/media device?).
When you have a device with a /data/media storage as internal storage TWRP behaves different then you might thought. Please read the mentioned link above to understand what /data/media is and if your device is affected or not.
Creating a backup of the user data partition will NOT include /data/media (your internal storage)! That means if you save photos or data on the internal storage (e.g. some apps will save data there as well) those will be NOT included in a TWRP backup! There are many people thinking that this is the case but due to a decision taken by the dev team this is the current way of how it works.
To be absolutely clear when you do something like this:
1.Creating a full backup in TWRP (including /data partition)
2.Factory resetting your phone
3.Restoring your previously taken full backup
4.Result: all your saved data will be there but your data on the internal storage gets LOST!
So keep that in mind when you backup and restore!
You may want to backup the internal storage as well but this is not possible in the TWRP GUI. You have to do it manually (e.g. with "tar" when your internal storage is mounted in TWRP).
TWRP is open source software. So you're free to add a backup option for the internal storage and push your request to our gerrit for reviewing.
https://twrp.me/faq/backupexclusions.html

Related

Extract images from Nandroid backup

I know i need to extract them with unyaffs.exe
But i can't find where my camera photos stored ..
Please navigate me to the path ...
Motorola Atrix 2.3.4 device.
Thanks.
Nowhere, they're on the SD card (/DCIM/)
So they are gone ?
I stored them at the internal sd, not in the external sd.
Internal SD... ah, sorry: the Atrix has built-in memory... I wasn't aware of that. That depends on how it is accessed... I still wouldn't expect it to show up in Nandroid backups, but if your lucky it doesn't get formatted and you can still retrieve it. The question is, what device is this internal storage and what filesystem does it use.
Can you still mount the storage on the PC? You should be able to retrieve most of your images even if the drive was formatted using a standard photo recovery tool
I just full wiped everything .. all the storage places too and intsalled new ROM.
OK, i can do that , which revocery tool should i use ?
It's been a while ... I think I used this one:
http://www.z-a-recovery.com/digital-image-recovery.htm
The free version is enough for image recovery.
Thanks
Just recover some of my images ...
But i can't get the full library from the nandroid backup? what information do you need?
I know i can just restore the nandroid backup ... but it will do trouble ... diffrent kernel from my preset rom..
Any ideas?
?
Sorry for the late response, But I just stumbled upon the thread. I had the G2x. The internal memory is just like another SD card. Just that it's not removable. What's backed up in a Nandroid is things like the /data, /cache /boot /system and android.secure partitions. The internal memory is /emmc. It doesnt get formatted in a wipe (unless you say so) and it doesnt get backed up in the Nandroid. Otherwise, your Nandroid backups would be EXTREMELY large.

[Q] What exactly happens when I delete my internal SD card?

My internal SD card is mostly full (11GB) after a year of using my i9300, and I'm not sure where all that space has gone (some pictures and video but I think a lot of apps I used throughout the last year but ended up deleting). So I figure the next time I try a new ROM I will delete the whole thing and start from scratch, backing up my data of course. I will back up the entire internal SD card to my computer and take a nandroid backup before doing anything.
Should I format the internal SD card or just delete all its contents?
I've noticed that when I try a new ROM the internal SD card isn't touched, so where does the ROM actually get stored?
What does the wipe data / factory reset option in ClockworkMod Recovery actually wipe?
Does a nandroid backup back up the internal SD card? I have a feeling the answer is no, but then what does it actually back up?
If I use TitaniumBackup to back up all my app data and move that backup to my computer, then I delete the internal SD card, wipe the system, tehen replace my old ROM with a new ROM, then use TitaniumBackup to restore my apps and their data, am I missing anything? For example, I don't think certain data gets backed up by TitaniumBackup, for example photos (even though that might be considered 'data' of the camera app), so what could I be unwittingly missing when I do my restore from TitaniumBackup? How will I know what things I need from what's currently on my internal SD card?
iamthemandroid said:
Should I format the internal SD card or just delete all its contents?
Click to expand...
Click to collapse
No need to format it.
iamthemandroid said:
I've noticed that when I try a new ROM the internal SD card isn't touched, so where does the ROM actually get stored?
Click to expand...
Click to collapse
Lets distinguish between these things.
The "internal SDcard" is NOT an sdcard. It is a partition on the internal memory referred to as /sdcard (on other phones /sdcard mounts to removable media but not here). However, as it happens, the internal memory itself is an eMMC (embedded MultiMedia Card) which is where the confusion arises, so let us refer to eMMC as "Internal Memory" from here on.
The internal memory has many partitions (It's 14.9 GiB in total). It has a /system partition (ROM goes here) a /boot partition (bootloader), /recovery partition (guess) and /cache partition and a /data partition (A few others that aren't of interest here).
Usually /data is where all your data and apps go (in /data/app and /data/data) however, we use the FUSE file system to cleverly put /sdcard (usually removable media) into /data/media. This way /data is fully used as user data space.
iamthemandroid said:
What does the wipe data / factory reset option in ClockworkMod Recovery actually wipe?
Click to expand...
Click to collapse
Custom Recoveries wipe /data/app and /data/data. Stock recovery wipes /data which includes /data/media AKA /sdcard
iamthemandroid said:
Does a nandroid backup back up the internal SD card? I have a feeling the answer is no, but then what does it actually back up?
Click to expand...
Click to collapse
No. It backs up /system, /data (ignoring data/media) and /cache. It often backs up to /sdcard so it cant backup where it is saving the files to
iamthemandroid said:
If I use TitaniumBackup to back up all my app data and move that backup to my computer, then I delete the internal SD card, wipe the system, tehen replace my old ROM with a new ROM, then use TitaniumBackup to restore my apps and their data, am I missing anything? For example, I don't think certain data gets backed up by TitaniumBackup, for example photos (even though that might be considered 'data' of the camera app), so what could I be unwittingly missing when I do my restore from TitaniumBackup? How will I know what things I need from what's currently on my internal SD card?
Click to expand...
Click to collapse
Backup titanium to /sdcard then copy EVERYTHING from /sdcard to computer, will catch everything. Titanium doesn't back up stuff on /sdcard unless it is explicitly part of an application and you select that option in preferences
Your best option would be to format Internal SD card. And as you install a new rom, as you can see you only have 11GB of free space. Thats what is left from your total 16GB. Android OS reserves some space for bootloader, rom and cache.
The factory reset in recovery will delete all your system settings, apps, messages, call log and such. But if I'm correct it shouldn't touch the pictures. Nandroid backup doesnt hold your whole Internal SD card in itself.
And titanium backup backups apps and their settings, but it will not backup messages or pictures.. You can for example manually copy pictures to your computer and then back to your device. And for messages there is a good app called 'SMS Backup & Restore'.
Hope this helps
Edit: Me and my slow typing
Etirel said:
Edit: Me and my slow typing
Click to expand...
Click to collapse
I was on a mission
rootSU said:
I was on a mission
Click to expand...
Click to collapse
Guess so But you explained it a lot better than I did. So probably better that way
help me please formated sd with stock nanaroid on it..please help!!!!
i formatted my sd like a clown...i recoverd the files how ever i am unable to find my twrp back up ...i really need some help
DroiDBoSS said:
i formatted my sd like a clown...i recoverd the files how ever i am unable to find my twrp back up ...i really need some help
Click to expand...
Click to collapse
You formatted that means you have lost what was on the sd card .
If you put your Nandroid backup on that card then its lost .
JJEgan said:
You formatted that means you have lost what was on the sd card .
If you put your Nandroid backup on that card then its lost .
Click to expand...
Click to collapse
know any ware i can download the rogers stock 4.1.2 firmware...and does it mess with my unlocked bootloader if i flash back?
DroiDBoSS said:
know any ware i can download the rogers stock 4.1.2 firmware...and does it mess with my unlocked bootloader if i flash back?
Click to expand...
Click to collapse
Do you have I9300 or I9305 phone ???
If not this is I9300 you are in the wrong forum . Firmware/ mods from here may brick your phone .
Back up
rootSU said:
No need to format it.
Lets distinguish between these things.
The "internal SDcard" is NOT an sdcard. It is a partition on the internal memory referred to as /sdcard (on other phones /sdcard mounts to removable media but not here). However, as it happens, the internal memory itself is an eMMC (embedded MultiMedia Card) which is where the confusion arises, so let us refer to eMMC as "Internal Memory" from here on.
The internal memory has many partitions (It's 14.9 GiB in total). It has a /system partition (ROM goes here) a /boot partition (bootloader), /recovery partition (guess) and /cache partition and a /data partition (A few others that aren't of interest here).
Usually /data is where all your data and apps go (in /data/app and /data/data) however, we use the FUSE file system to cleverly put /sdcard (usually removable media) into /data/media. This way /data is fully used as user data space.
Custom Recoveries wipe /data/app and /data/data. Stock recovery wipes /data which includes /data/media AKA /sdcard
No. It backs up /system, /data (ignoring data/media) and /cache. It often backs up to /sdcard so it cant backup where it is saving the files to
Backup titanium to /sdcard then copy EVERYTHING from /sdcard to computer, will catch everything. Titanium doesn't back up stuff on /sdcard unless it is explicitly part of an application and you select that option in preferences
Click to expand...
Click to collapse
I backup via philz_touch_6.00.8 but when i tried to restore philz_touch_6.00.8 could not find the backup folder or file. Also when i check the my data using file explorer also i could not find backup file or folder. Interesting that capasity of internal sd card is less then befor about 3 GB. Could you explain why i could not find and restore or remove ?

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 ?

Restoring data using twrp?

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.

How to backup internal storage without twrp or apps?

I want to know how to make a complete backup of internal storage (ie. Sdcard0) without using a patched twrp or and apps. Is it as simple as zipping up a single directory?
Ideally I want this to complement my twrp backup of the system partitions.

Categories

Resources