Help restoring TWRP data backup - Xiaomi Poco X3 NFC Questions & Answers

I created a TWRP compressed data backup of my MIUI 12.5.2.0 install before updating to MIUI 12.5.4.0 (RJGEUXM), so I have files data.f2f2.win000 through to win019, totalling 16.7GB.
When I try to restore from the backup, it gets to about 256MB before failing with an error "extractTarFork() process ended with ERROR: 255"
I made another compressed data backup after updating to MIUI 12.5.4.0 which is 1.42GB (2.7GB uncompressed) and I get the same error when I try and restore from that.
If I adb shell in and try "tar -tvf data.f2f2.win000" on either backup, it lists the files but says "tar: invalid data format" at the end and if I try -xvf it gives the same error and doesn't extract anything.
I just tried creating an uncompressed backup, which still creates data.f2f2.win000 files (larger than the compressed version of course) and that backup restores OK. Even so tar -tvf still returns "tar: invalid tar format" after listing the files.
I note that the two backups (compressed and uncompressed) that I've made after updating to 12.5.4.0 include a data.info file, whereas the 12.5.2.0 backup doesn't, but that's obviously not why it is failing to restore, as the same error happens with the compressed 12.5.4.0 backup and I should be able to extract the files manually anyway.

Using Cygwin and manually extracting each winXXX file with "tar -xvf data.f2f2.winXXX /data/" I was able to extract the files.
There were a lot of "tar: Ignoring unknown extended header keyword 'TWRP.security.fscrypt'" messages but I don't think they're critical.
The only files I had trouble with were win006 which did extract a bunch of files but at the end it said:
"gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now"
and win017-win019 all returned:
"tar: /data: Not found in archive
tar: Exiting with failure status due to previous errors"
I can't open those three files with 7zip either, which opens all the others to show a single file, data.f2fs, inside.
This is the folder structure I have after extracting all the files.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In the app folder, there's a few "normal" named folders like "com.ebay.carrier-72Ce4Q1jyCAZ9I8KRjGzyA==" but most of them are like this:
and then under those folders there are "normal" named ones like "com.google.android.apps.youtube.music-ZodmP_UIgBUs8QSLxYe2sw==". Presumably this is something to do with the encryption but I guess I'll install some of the apps and see what folders it creates and maybe I can just copy the ordinary named subfolder into the app folder.
I guess I'll still need to do what it says here to find the userid for each app and then chown and restorecon each one, so it's still going to take much longer than if I could just restore the TWRP data backup normally. https://www.semipol.de/posts/2016/07/android-manually-restoring-apps-from-a-twrp-backup/

Try to restore with orange fox recovery instead/use orange fox instead moving forward, I don't get the tar fork error.
[RECOVERY][UNOFFICIAL] OrangeFox for Xiaomi Mi11X / Redmi K40 / POCO F3 [R11.1][alioth]
OrangeFox Recovery * I am not responsible for bricked devices, dead SD cards, thermonuclear war, or you getting fired because the alarm app failed. Please do some research if you have any concerns about features included in this Recovery...
forum.xda-developers.com

Sorry, I just realised I posted this in the wrong sub. I'm using a Poco X3 NFC, not a Poco F3. Perhaps a mod can move it for me?
I was using Orangefox before and then I lost root by allowing the phone to update to 12.5.3 and after that Ofox couldn't decrypt the data partition, so I couldn't back it up and without root I couldn't backup my data with Titanium either.
I couldn't find a way to restore root or get Ofox to decrypt data (at least not without risking the data being deleted), but after being stuck for a while, I saw there was a new vversion of TWRP which was able to decrypt data, so I used that to make a backup of it, after which I updated to 12.5.4 and installed Magisk to root it. So it's usable again, I just can't restore the backup that TWRP made using TWRP.
I've had mixed success restoring some apps by extracting the TWRP backup with tar on my PC and then FTPing the files across to data/data/ (after installing the app normally from Play Store) and then using the commands here to chown and restorecon but that doesn't work with all apps.
Android: manually restoring apps from a TWRP backup :: semipol.de
Since an issue with the keyboard freezing for Android disk encryption was fixed in the Omnirom code base, I was able to upgrade my system again. Unfortunately, the system didn’t boot anymore without a factory reset. Therefore, I finally found out to manually restore individual apps from a system...
www.semipol.de
What seems to work more often is taking an existing Titanium backup tar.gz for an app and deleting the files and replacing them with the ones from my TWRP backup and then restoring the data with that in Titanium. That doesn't work with everything though ((e.g. Revolut and Barclays), even if I do the chown and restorecon commands after.
I've taken this as an opportunity to reduce the number of apps I have installed, as I didn't really use a lot of them anyway, so I'm just restoring the apps I really use. The only one I haven't been able to restore the data for is FTX. It does actually work initially and shows my profile but then it says there's an error and wipes it and tells me to create a new profile, so I'm just going to dump it and use something else, like Coingecko.
It's extremely slow copying the extracted files from the PC to the phone, whether I use SMB or FTP, so using an app like this to extract them on the phone if possible might be a better option,, although the extracted files and the Titanium tar.gz really need to be on the PC to use that approach, as it would be much harder/slower to try doing that with the files on the phone.
[APP][4.2+][NOROOT] TWRP Backup Extractor - Decompress your TWRP Backups with a Touch
TWRP BACKUP EXTRACTOR Before i Create this APP , i want an App that it exist in my TWRP backup but i didn't find Any android application to extract my TWRP Backup in order to restore the wanted app . So i decide to create an Android app that...
forum.xda-developers.com

the problem got solved with latest twrp 3.6.0.
it perfectly decrypts android 11 and above and all backups are possible.

Related

[GUIDE] Alternative (.IMG) Backup Method (For Kitchen, Etc.)

NOTE: IF YOU HAVE NO CLUE WHAT THIS IS, THEN LEAVE IT BE
CAUTION: PLEASE READ THE FOLLOWING POSTS ABOUT BACKING UP "USERDATA".
CONFIRMED WORKING!!!
Thanks to then following for their feedback and testing:
open1your1eyes0
con247
scrosler
While playing around with my extra SCH-I535, I came across something very interesting.
I was having a lot of problems getting "full" backups of my larger .img's (ie. data, cache, etc.) I was told to try and mount my system as r/w and adb through my computer instead.
When i would try backing them up in a terminal emulator, I would always get an error about the file being too large...[\B]
I got too confused trying and got way too frustrated.
I found out that I could obtain these .img's just as easily as copy and pasting.
I was able to get the full backup sizes this way also.
Now this method does not have EVERYTHING worked out. If I could get some input and help on this, that would be greatly appreciated.
DIRECTIONS:
1. Take any rooted sgs3 and install ES File Explorer.
2. Setup ES with root (go into settings and click on the "root options" and allow ES to take advantage of root and go up to the "/" directory).
3. Also make sure to change your default home folder to "/" in settings.
4. Now exit out of ES and open it up again. You should be in the root directory (/).
5. Open up the folder marked "dev" (or the "/dev" folder) and locate the "block" folder (or the "/dev/block" folder).
6. Copy the folder named "block" (long-press and select "Copy").
7. Now move to your extSdCard (or you can stay in your internal card if you insist and have a lot of room to spare).
8. Create a folder and name it something you will remember.
9. Paste in that folder and go make yourself a bowl of oatmeal or whatever (you can see the process ongoing in your notification bar).
10. After they are done copying, you will be left with a lot of files (there will be a folder in the folder you created and then a few more folders you will have to open to get to the folder with all the goodies in it)(you'll understand when you see it). Most of them you will find familiar if you ever opened up a stock ODIN tar.md5 before.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
---
11. Now you have all these files, but none of them have extensions. Transfer this folder to your Linux environment and go ahead and add the proper extensions to these files by renaming them.
Some of them should be .sbn, some should be .img or .ext4. The best thing to do is to download a stock ODIN img and add the file extensions that correspond with them to your copied files.
12. Now you can use the kitchen or any other method that would require these files.
I have only had time to test these files out in the kitchen and create a working folder for them (so I could remove unwanted things and bloat ware, etc.).
I used the system.img.ext4 and another boot.img to create a flashable ROM.
I didnt use the boot.img from the copy I made cause I didn't have time to play around at the moment. But I will be trying later tonight.
It would be cool if anyone else could help me out by testing this and letting me know what was up.
NOTE: I AM NOT RESPONSIBLE FOR ANYTHING YOU DO. PERIOD. BOOM.
IF I MADE YOUR LIFE ANY EASIER, HIT THE THANKS BUTTON
Sent from my SCH-I535 using Tapatalk 2
Interesting...
I will give it a shot tomorrow
Good method but essentially this is the same as this without creating an actual ODIN image: Link to thread
Minor word of caution, the "userdata" partition include all the contents of your /sdcard partition (meaning your internal storage). Basically if you're backing that up you have to have enough space to duplicate the contents of your internal storage your external SD card or the same internal SD card (whichever location you are copying to).
open1your1eyes0 said:
Good method but essentially this is the same as this without creating an actual ODIN image: Link to thread
Minor word of caution, the "userdata" partition include all the contents of your /sdcard partition (meaning your internal storage). Basically if you're backing that up you have to have enough space to duplicate the contents of your internal storage your external SD card or the same internal SD card (whichever location you are copying to).
Click to expand...
Click to collapse
This!
And, backing up userdata while it is being "used" can result in corruption. I wouldn't recommend this backup method for backing up userdata.
Thanks for the feedback brothers.
For the system partition and what not, its a much easier way for me. And it takes some confusion out of getting the errors (too large errors).
Its a bit faster too.
Just wanted to share it with y'all.
Sent from my SCH-I535 using Tapatalk 2
Have you noticed anything odd with the files you get using this method? I was just wondering about backing up partitions while the system is booted normally. To be honest I haven't noticed anything wrong with images that I pull from my device while its booted normally, but I was looking at this thread and the thought popped into my mind that maybe some files might be in use by the system? Probably not except for log files.
Anyway, I could write a script that would do this on your device without having to fiddle around with ES. The only difference would be that I use tar and excludes to get /data without pulling /data/media. I'd really like to get a /data img without having to resort to tar, but I haven't gotten around trying to dd mmcblk0p15 without getting the whole internal sdcard along with it. I have the 32gig SGS3 so its a big issue for me. I had an idea to unmount /mnt/sdcard, but I'd imagine its not as trivial as unmounting the internal sdcard while in recovery and I really don't want to destroy my phone.
Anyway, nice find mate.
Ta,
ALQI
I personally haven't had any problems when backing up my system.img. I always make sure to do a fast reboot and kill any tasks running with ES right before I do it.
I have taken the system.img and used it in the kitchen a few times andnnot had any problems.
This method works for the most part but shouldnt be something to mess around with unless you know what your doing. I am trying to work out a way so that I can get it to match 100% with a regular dump (MD5).
This is really just a kind if a shortcut for people already using ES on a rooted system.
If your already rooted and already have ES File Explorer installed, all you literally have to do is go into the /dev folder and copy the /block folder (or whatever you need from it) to your extSdCard. And then add ".img" or whatever the extension should be to the end of the file.
Just copy, paste and add extension.
I was having issues with the terminal kicking back at me with "file too large" errors when trying to get some of my backups.
I was fiddling around with ES and discovered this.
I was hoping someone might be able to use this. Or that maybe it was a missing piece to someone's puzzle or that someone could do something more with it.
When I discovered I could get a result from just copy and pasting, I thought I might be able to figure out another easy way that backup. In known there is a couple really good ones out there already, but having different options can sometimes benefit different situations, scenarios and whatnot.
If you wanna play around with this, feel free to brother.
:thumbup:
Sent from my SCH-I535 using Tapatalk 2

[GUIDE]How to extract nandroid backup and restore apps from it without pc.

Well you had downloaded a lot of apps via play store and you had no backup of these apps...
Then you came across a ROM or you decided to wipe out your data....
And the result...
You lost your apps!
Now you don't need to worry as I bring you the ultimate solution to extract and restore apps & other files from your backup!
So let's get started....
Things you will need:
A Good Advanced File Manager..
I suggest and strongly recommend you to use ROOT EXPLORER app.
I know you have it!
Now extracting of files depends upon which recovery you are using....
For TWRP users::
Go to the TWRP folder in your sdcard where the backup ie present..
Now if you want to extract downloaded apps n other files then Copy " data.ext4.emmc.win " don't take the md5 file! and paste it somewhere else...
Now rename the file by just adding " tar.gz " at the last ...
It should now look like this:
data.ext4.emmc.win.tar.gz
Now long press it and click "Extract All"
or simply extract it...
Now after the completion of extraction you will get all tha files from that backup...
Now to restore apps simply go to the " app " folder..
You will see all the apps in that...
Now to install them all at once just copy all the files and paste them here at the root
/data/app
Now reboot ...
It will show a message android is upgrading ..
Optimizing app 1 of 3X
Wait till it completes...
And guess what you got all your apps back....
To restore the settings of these apps copy their respective folder from tge extract to
/data/data
Similarly you can extract system partition too!
For CWM/philz touch users::
YOU TOO CAN USE THE ABOVE METHOD BUT IF IT FAILS THEN TRY THIS ONE..
Go to SD card/clockworkmod and copy your file according to your need what you want to extract..
To extract and restore apps copy:
"data.ext4.tar.a" to somewhere else
DO NOT COPY data.ext4.tar!!!!
Now rename the file by just adding " tar " at the last ...
It should now look like this:
data.ext4.tar.a.tar
Now long press it and click "Extract All"
or simply extract it...
Now after the completion of extraction you will get all tha files from that backup...
Now to restore apps simply go to the " app " folder..
You will see all the apps in that...
Now to install them all at once just copy all the files and paste them here at the root
/data/app
Now reboot ...
It will show a message android is upgrading ..
Optimizing app 1 of 3X
Wait till it completes...
And guess what you got all your apps back....
To restore the settings of these apps copy their respective folder from tge extract to
/data/data
Similarly you can extract system partition too!
Huh!*******
Hope it helps you....
Not asking for any donation or something just LIKE MY FACEBOOK PAGE for your own interest so as to not lose any update from me n my blog! And hit a thanks please!.
Credits:
Allah SWT for inspiring this idea in my mind..... (Alhamdulillah)
Thanks
Sent from my SM-G900F using Tapatalk
Welcome.....
If anyone experiences any problem then don't hesitate to ask me!
Thanks for your work !
Krystyna said:
Thanks for your work !
Click to expand...
Click to collapse
THANKS
Hi AlphaSoft, I'm trying to use your method on a TWRP data only backup. But apparently the backup was made in 5 parts each of close to 1.5GB. None of them are named data.ext4.emmc.win . Instead they are named data.ext4.win000 .... data.ext4.win004.
Must I extract them all?
Not working
AlphaSoft said:
If anyone experiences any problem then don't hesitate to ask me!
Click to expand...
Click to collapse
Doesn't seem to work for me. My backups have upto 6 files ...data.ext4.win000, data.ext4.win001, data.ext4.win002, ......data.ext4.win005 each around 1.5gb
I have question, can this work when there are data.ext4.a, data.ext4.tar.b, data.ext4.tar.c, data.ext4.tar.d, data.ext4.tar.e, data.ext4.tar.f, data.ext4.tar.g, data.ext4.tar.h, data.ext4.tar.i, data.ext4.tar.j, data.ext4.tar.k ?
thank you.
AlphaSoft said:
Well you had downloaded a lot of apps via play store and you had no backup of these apps...
Then you came across a ROM or you decided to wipe out your data....
And the result...
You lost your apps!
Now you don't need to worry as I bring you the ultimate solution to extract and restore apps & other files from your backup!
So let's get started....
Things you will need:
A Good Advanced File Manager..
I suggest and strongly recommend you to use ROOT EXPLORER app.
I know you have it!
Now extracting of files depends upon which recovery you are using....
For TWRP users::
Go to the TWRP folder in your sdcard where the backup ie present..
Now if you want to extract downloaded apps n other files then Copy " data.ext4.emmc.win " don't take the md5 file! and paste it somewhere else...
Now rename the file by just adding " tar.gz " at the last ...
It should now look like this:
data.ext4.emmc.win.tar.gz
Now long press it and click "Extract All"
or simply extract it...
Now after the completion of extraction you will get all tha files from that backup...
Now to restore apps simply go to the " app " folder..
You will see all the apps in that...
Now to install them all at once just copy all the files and paste them here at the root
/data/app
Now reboot ...
It will show a message android is upgrading ..
Optimizing app 1 of 3X
Wait till it completes...
And guess what you got all your apps back....
To restore the settings of these apps copy their respective folder from tge extract to
/data/data
Similarly you can extract system partition too!
For CWM/philz touch users::
YOU TOO CAN USE THE ABOVE METHOD BUT IF IT FAILS THEN TRY THIS ONE..
Go to SD card/clockworkmod and copy your file according to your need what you want to extract..
To extract and restore apps copy:
"data.ext4.tar.a" to somewhere else
DO NOT COPY data.ext4.tar!!!!
Now rename the file by just adding " tar " at the last ...
It should now look like this:
data.ext4.tar.a.tar
Now long press it and click "Extract All"
or simply extract it...
Now after the completion of extraction you will get all tha files from that backup...
Now to restore apps simply go to the " app " folder..
You will see all the apps in that...
Now to install them all at once just copy all the files and paste them here at the root
/data/app
Now reboot ...
It will show a message android is upgrading ..
Optimizing app 1 of 3X
Wait till it completes...
And guess what you got all your apps back....
To restore the settings of these apps copy their respective folder from tge extract to
/data/data
Similarly you can extract system partition too!
Huh!*******
Hope it helps you....
Not asking for any donation or something just LIKE MY FACEBOOK PAGE for your own interest so as to not lose any update from me n my blog! And hit a thanks please!.
Credits:
Allah SWT for inspiring this idea in my mind..... (Alhamdulillah)
Click to expand...
Click to collapse
xlamour said:
Doesn't seem to work for me. My backups have upto 6 files ...data.ext4.win000, data.ext4.win001, data.ext4.win002, ......data.ext4.win005 each around 1.5gb
Click to expand...
Click to collapse
I extracted the multi volumes data backup from a TWRP backup, after I extracted all of the files, I copied the data/app and the data/data contents into the respective folders of the new rom installation
But the booting process didnt show any upgrading message nor any of the apps detected by the new installation ?
Hi guys, I would like to know how I can extract these files and make the flash in sp flash tool, can someone help me please?
I have a backup of my Redmi 6 (Cereus) which has a briqued system, but before I did a full nandroid backup with twrp.
I can restore the stock rom and the phone goes back to normal but without imei, baseband, nvram or nvdata.
I would like to know how can I extract at least the nvram and nvdata file and flash it in sp flash tool.
That's my only difficulty.
I have an authorized Xiaomi account
Unlocked bootloader
Mediatek Drivers OK
EDL Mode Ok
USB Filters OK
Updated Win7 Operating System and no dependencies.
Stock Rom MIUI (Multiple Versions)
Flash MTK Tools
I thank you all!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

question about backup true twrp

Stupid question,
I normally use root essentials to make a system backup but I think with op6 it will not backup al the required files anymore I think.
So I want to make the backup true twrp but can someone list the files to backup. As there are also vendor partition listed. So please let me know what to backup exactly to make the correct backup.
Thanks in advance.
Regards ysco..
Bump,
Anyone?
I think you need to backup all partitions.
https://forum.xda-developers.com/oneplus-6/how-to/how-to-restore-backup-twrp-t3807546
Bradden1 said:
I think you need to backup all partitions.
https://forum.xda-developers.com/oneplus-6/how-to/how-to-restore-backup-twrp-t3807546
Click to expand...
Click to collapse
For a successful nandroid you need following partitions:
boot
system image
vendor image (not sure, if image is really needed, haven´t tested) yet
data
Separately an efs-backup is highly recommended which should be copied to an external storage.
Flying Fox said:
For a successful nandroid you need following partitions:
boot
system image
vendor image (not sure, if image is really needed, haven´t tested) yet
data
Separately an efs-backup is highly recommended which should be copied to an external storage.
Click to expand...
Click to collapse
ysco said:
Stupid question,
I normally use root essentials to make a system backup but I think with op6 it will not backup al the required files anymore I think.
So I want to make the backup true twrp but can someone list the files to backup. As there are also vendor partition listed. So please let me know what to backup exactly to make the correct backup.
Thanks in advance.
Regards ysco..
Click to expand...
Click to collapse
the reply is not correct you explicitly don't need exactly those two image partitions to backup because they remain stock intact at all times, they only make your backup huge, up to 14GB instead of only 7-9GB once unchecking them.
of course as always you HAVE TO backup system and vendor, just not the system and vendor images, they serve to keep a clean stock
system available to recover from a soft brick, you can test that by re-locking and re-unlocking the bootloader and/or by formating all partitions
including user data on both slots. it will boot directly into a clean system (setup wizzard) like on first unboxing and this what you boot into then is exactly vendor and system image which remains untouched no matter what you do (except intentionally killing everything with brute force which is not even so easy)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
i shall attach a screenshot to illustrate and much more important ist that if you ever opened parallel apps settings you'd have to delete all
999 folders in root > data > (all 3 misc + all 3 system + both user) folders else you get a 255 error.
Thank you.. i did wonder whether backing up image files was the right way.
magnamentis said:
the reply is not correct you explicitly don't need exactly those two image partitions to backup because they remain stock intact at all times, they only make your backup huge, up to 14GB instead of only 7-9GB once unchecking them.
of course as always you HAVE TO backup system and vendor, just not the system and vendor images, they serve to keep a clean stock
system available to recover from a soft brick, you can test that by re-locking and re-unlocking the bootloader and/or by formating all partitions
including user data on both slots. it will boot directly into a clean system (setup wizzard) like on first unboxing and this what you boot into then is exactly vendor and system image which remains untouched no matter what you do (except intentionally killing everything with brute force which is not even so easy)
i shall attach a screenshot to illustrate and much more important ist that if you ever opened parallel apps settings you'd have to delete all
999 folders in root > data > (all 3 misc + all 3 system + both user) folders else you get a 255 error.
Click to expand...
Click to collapse
That's absolutely correct. I was not precise enough in my post. I recommend a backup of the system image, at least I do it so, because I can not know in advance, whether later a factory set or a clean install will be necessary. So it does not bother me that the backup is a bit bigger then. It does not hurt and costs nothing.
As I said, the thing is, if I wipe system, then I need to flash it again if I did not back up system image - that's my experience.
Or am I wrong; I like to be corrected, especially your knowledge interests me.
magnamentis said:
the reply is not correct you explicitly don't need exactly those two image partitions to backup because they remain stock intact at all times, they only make your backup huge, up to 14GB instead of only 7-9GB once unchecking them.
of course as always you HAVE TO backup system and vendor, just not the system and vendor images, they serve to keep a clean stock
system available to recover from a soft brick, you can test that by re-locking and re-unlocking the bootloader and/or by formating all partitions
including user data on both slots. it will boot directly into a clean system (setup wizzard) like on first unboxing and this what you boot into then is exactly vendor and system image which remains untouched no matter what you do (except intentionally killing everything with brute force which is not even so easy)
i shall attach a screenshot to illustrate and much more important ist that if you ever opened parallel apps settings you'd have to delete all
999 folders in root > data > (all 3 misc + all 3 system + both user) folders else you get a 255 error.
Click to expand...
Click to collapse
why i can not find 999 folders from root ? even i have opened parallel apps

TWRP extractTarFork() process ended with ERROR: 255

Hello people
Today I flashed the Xiaomi EU android 11 to check it out and saw some bugs and wanted to downgrade to android 10.
I flashed the stock rom as I was downgrading and installed TWRP, Fully wiped the phone and wanted to restore my backup, but it says " extractTarFork() process ended with ERROR: 255 " when restoring the data. Needless to say, I had to type my password when I booted to recovery and I had Fingerprint and Pincode enabled when I was backing up. now I checked the recovery log and the error is
Code:
==> extracting: //data/misc/recovery/ (mode 40770, directory)
tar_extract_file(): failed to extract //data/misc/recovery/ !!!
When I browse that Directory there is some files named Fingerprint so looks like this is making some issues.
Could someone please help me out how I am able to delete this directory and try restoring my Data ?
I have tried any way of wiping and installing stock rom but still I get this error.
Looks a recovery error. Is the back up made with different recovery? Looks like it cannot find or extract it from the back up. Can you get back to where you were when you made the back up and restore from there?
If not, looks like a format and start again.
Sathelp said:
Looks a recovery error. Is the back up made with different recovery? Looks like it cannot find or extract it from the back up. Can you get back to where you were when you made the back up and restore from there?
If not, looks like a format and start again.
Click to expand...
Click to collapse
Yeah it is from the same recovery.
It is a common error when you google it. but the fix they have mentioned does not work for me. It is like I should somehow delete that folder or files causing the issue from the backup and restore it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You'll need to mount it on a pc, extract the folder and compress it again or delete it from the archive and save. I would make a copy first though.
Sathelp said:
You'll need to mount it on a pc, extract the folder and compress it again or delete it from the archive and save. I would make a copy first though.
Click to expand...
Click to collapse
ok I am able to extract it with WinRar. but how should I compress so the TWRP will not face issues? on Winrar I have RAR,RAR4 and ZIP that I think will not work.
Use 7 zip.
To create a tar file, you can highlight the files you'd like to archive, right-click, and go to 7-Zip > Add to archive. In the 'Add to Archive' menu, just select 'tar' as your archive format and click OK.
Did you get it fixed?
Sathelp said:
Did you get it fixed?
Click to expand...
Click to collapse
No, it didnt work. When i extracted the file using 7zip I got errors for everyfile. I think the issue is with the pincode and the data being encrypted. So next time I should remove the lockscreen and backup my data.
Goos thing I had backed up on Google Account.
Thanks for letting us know but good luck my friend
im having the same error in my realme xt... I have a twrp backup of system image vendor image data boot recovery persist but im unable to recover because it shows an error extract tar fork process ended up with error 255{i too have locked the phone with pincode during backup} ....i also have a backup of my internal storage in twrp but im not able to restore because of this error.... kindly help me
Some of the TWRP we use on Mi 10 ultra, dont able to decrypt data using Fingerprint or pin, you need to use pattern, this is a TWRP bug.
What a bull**** bug. There should be warnings about this at least when people go to create a backup.

help: make twrp complete backup

hi,
Iam wondering how to make complete backup of xa2 ultra?
In twrp when i try to make it it interrupts on like 50% and gives error 255 (???)
how can i make my complete rom backup? possibly flashable later please?
maxis123 said:
hi,
Iam wondering how to make complete backup of xa2 ultra?
In twrp when i try to make it it interrupts on like 50% and gives error 255 (???)
how can i make my complete rom backup? possibly flashable later please?
Click to expand...
Click to collapse
Probably not enough storage.
Try backing up to an sd card.
hank you for response, but, I actually tryed to backup to SD card wich was empty and had enough space..
maybe some other ideas or suggestions please?
bought new sandisk 64gb card today,
stil getting error 255 and it wont make complete backup
btw, twrp says at beginning that it wants password to decrypt users, i never encrypted anytging on phone and dont know password.. can this be a problem maybe?? hmh
maxis123 said:
bought new sandisk 64gb card today,
stil getting error 255 and it wont make complete backup
btw, twrp says at beginning that it wants password to decrypt users, i never encrypted anytging on phone and dont know password.. can this be a problem maybe?? hmh
Click to expand...
Click to collapse
Do a quick check by go into your Root browser and look in these locations.
/storage/emulated
/data/system/
data/system_ce/
data/system_de/
data/misc/
data/misc_ce/
data/misc_de/
data/user/
data/user_ce/
data/user_de/
If you see any folder named 999 then you have parallel apps enabled on your device. TWRP in it's current form will not allow you to create a backup or restore a backup with parallel apps enabled.
Currently there is only one solution that I have found to be able to delete all of the 999 folders and that is to open a terminal emulator to each of these locations and remove the 999 folders individually. I have found a solution where you can delete the user ID and by doing so it removes all of the 999 folders and not only does it remove the folders they do not return once you reboot your device.
hi, thank You for answer and suggestion, unfortunately i just searched manually and with search in yotalcmd, and cant find any 999 folder.. huh?
how do i delete user id?
i have this lines from /twrp/backup/recovery.log
maybe it helps to figure a problem?
=> set selinux context: ubject_r:system_data_file:s0
failed to lookup tar policy for '/data/data' - 'f41841afcc75d652'
I:Error adding file '/data/data' to '/sdcard1/TWRP/BACKUPS/CQ3001CCRS/2021-07-12--02-26-16_lineage_discovery-userdebug_9_PQ3A190801002/data.ext4.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/sdcard1/TWRP/BACKUPS/CQ3001CCRS/2021-07-12--02-26-16_lineage_discovery-userdebug_9_PQ3A190801002/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
Do you have multiple account apps?
I am sorry but I'm not sure what does that exactly mean, multiple account apps?
U know one app 2 accounts in that.
Dual apps etc
What are you backing up?
For a complete backup i dont think all partitions need to be selected lol
Only maybe
/system
/storage
Idk etc
just managed to make only /system backup. not sure what exactly is only system, its not a full rom backup? huh
is there any way to make flashable full rom backup at all?
also twrp gave me mesage cannot decrypt users.. heh??
It is your rom backup LMAO
Dont backup everything.
Nothing has space for your full phone.
You should disable.force encryption for that error to stop.
wow I didn't realise that that this is actually my full backup. So that means if I wipe phone now and flash this from twrp I will have all apps and everything again?
Also, please where and how can I force encryption stop?
Thank You so much for all help!
Backup /system /data /storage
Then u will have all apps and stuff.
just tryed it, on /data it interrupts and gives again error 255.. huh.
also please how to disable encryption?
also, is there any other way to make full rom backup except from twrp since this isnt working for me??
Delete your duplicate post.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
In TWRP, go in "Advanced" menu => "Terminal" => Type: rm /data/extm -Rf
Then try to create a backup again now.

Categories

Resources