Changing data partition before restoring - Honor 6X Questions & Answers

Hello guys. Is it necessary to change data file system back to f2fs before restoring?

Restoring what, a backup of stock rom by what i assume? If you went of custom, and now you're coming back to stock yes, you gotta restore data partition to f2fs before restore a backup. If not, it won't work.

Related

Nandroid Backup/Restore Scripts

This is mostly for rom developers but I suppose other people might find use for it.
We always tell everyone to do a nandroid backup before flashing anything, and then we often do a cpio backup of data during the rom flash and restore that. redundant.
I've made some scripts to integrate a nandroid compatible backup into the rom install, or any cwm zip for that matter. Then you can restore it as well, or just data. Afterwards, I clear cache, lost+found, dalvik, and tombstones to prevent any problems.
Doing it this way the user has a full nandroid backup, and you have a data backup to restore post rom install.
It also backsup the kernel, recovery and .android_secure... which is apps on the sdcard.
Nandroid Backup Script Pastebin
Nandroid Restore Script Pastebin
Is this similar to this-
http://forum.xda-developers.com/showthread.php?t=951269
only in that its a backup... using my script your backups can be restored in CWM. and it can restore cwm nandroid backups, i made it as an alternative to the current way backups are being made during installs. this gets the kernel, recovery, data system, apps installed to the sd.. everything, and the rom developer can restore whichever parts they deem necessary.. but the full backup is there should the user wish to revert using cwm...
Aha! I do believe I have a use for this in my customizations!

Nandroid backup..

I did a nandroid backup bit it said fatal error while backing up bpws...or something like that...(one more thing...will nandroid backup...backup my apps if I lost them??)
Sent from my XT720 using XDA App
vari9 said:
I did a nandroid backup bit it said fatal error while backing up bpws...or something like that...(one more thing...will nandroid backup...backup my apps if I lost them??)
Click to expand...
Click to collapse
For some reason we can't back up all the partitions in nandroid. It should be enough to backup system and data. Optional: boot, logo (if you modified M boot logo), cache (usually not necessary), sd data (if you use ext partition on SD card).
With nandroid of system and data (and the others, but only if you use them) you should expect to be able to go back to exactly how your phone was at the time you made the backup. But you will lose changes you made after you made the backups.
When I'm about to start testing ROMs, I backup system and data. To go back to my pre-testing ROM I restore system and data and then wipe cache partition.
Mioze7Ae said:
When I'm about to start testing ROMs, I backup system and data. To go back to my pre-testing ROM I restore system and data and then wipe cache partition.
Click to expand...
Click to collapse
You want to say system and boot ?
Because changing a room modify system.img and boot.img
The boot.img is the same on all the ROMs thanks to the locked bootloader.
Yeah, I never even bother changing boot.img from the sbf version. If I did I'd probably use the Russian one because I think it was the most recently compiled.
Ok, I wasn't knowing that I always flash boot.img that come with ROM.

TWRP Backups. Is "data" necessary?

Do I need to backup data in order to be able to revert back to my stock Rom? My understanding is that if I did a backup of the System, Boot, EFS, and Cache then I should be fine. Only gripe is that my Apps and app data will be lost. Is that correct?
You are right

Backup and Restore

What do you guys typically do when you try out new ROMs and want to do a clean flash and get back up and running quickly?
1. Restore via Google
(Very slow to redownload everything, doesnt restore everything)
2. Sony Backup/Restore
(Sometimes Restore doesnt work)
3. Titanium Backup
(This is what I currently do, but can also be extremely slow)
4. Titanum Backup (creating update.zip for use in TWRP)
(Backup only seems to allow backup to internal storage so I run out of space)
5. Something Else
I use twrp recovery menu to backup my data, system and kernel
I usually backup to my internal storage since its faster than my mSD
From there i wipe and flash
Or to restore wipe and restore (since cache/art cache wasnt included in the backup)
Sent from my E6653 using XDA-Developers mobile app
Envious_Data said:
I use twrp recovery menu to backup my data, system and kernel
I usually backup to my internal storage since its faster than my mSD
From there i wipe and flash
Or to restore wipe and restore (since cache/art cache wasnt included in the backup)
Sent from my E6653 using XDA-Developers mobile app
Click to expand...
Click to collapse
If you wipe/restore from TWRP, then haven't you've just wiped your brand new ROM and returned back where you started?
My question is specifically for people who try custom ROMs do a backup and restore.
eng3 said:
If you wipe/restore from TWRP, then haven't you've just wiped your brand new ROM and returned back where you started?
My question is specifically for people who try custom ROMs do a backup and restore.
Click to expand...
Click to collapse
I think i made a bit of a typo there
when going to flash
- backup
- wipe
- flash rom
- flash gapps if needed
when going to restore
- wipe (cache, art cache)
- restore
I'm sorry, I still don't understand.
1. You backup (system, data, etc)
2. wipe
3. Flash rom (which writes new rom to system and data)
4. Then you restore your backup, which now overwrites system and data, thus erasing the new rom you just flashed
I need a way to restore apps and app data while keeping the new rom, otherwise it defeats the purpose

Getting from custom ROM to stock with TWRP backup

Hi , as the title says, I want to go back from NexusOS 9.0 to the Nougat Stock ROM on my SM-G920F.
Fortunately, I made a /system + /data backup with TWRP before flashing NexusOS.
I was thinking of (correct me if i'm wrong) :
wiping system, data and cache
Restore backup from within TWRP
Will this procedure allow me to get my stock ROM back with all my apps, sms, contacts,calls, etc... ?
Wait for anyone who has done the exact change, but I'll add:
/data/media/ (.../sdcard, internal storage) might not be backed up and could be lost once the /data is formatted.
Any loss of cellular is probably related to /data/data/..., and the firmware in use, backup the EFS anyway but don't wipe the EFS or restore the EFS (unless 100% sure)
Thanks for your answer !
Internal storage isn't wiped when wiping data (I kept all my files when installing NexusOS) and I didn't experience any problems related to cellular, so I guess EFS hasn't been modified/wiped.
But you're right, I'll wait a bit too have more advices
Nobody ever did this procedure ?

Categories

Resources