TWRP Backup : Error 255 in createTarFork() process.


GWp5HYjuug

Members
May 8, 2020
8
13
Hello !

* TWRP version : 3.5.0_9_0
* MIUI.eu version : 21.1.28 beta, Android 11
* Magisk : Not installed

I wanted to do a TWRP backup prior to dirty flashing the latest beta version of MIUI.eu, but bump into this error in TWRP. Basically the backup process exits with an error 255. Is there a way to repair this without wiping my device and flashing a previous backup (those are a bit old ... ). Here is the end of my recovery.log file written in the TWRP file - containing the relevant info:

Code:
I:addFile '/data/drm' including root: 1
  ==> set selinux context: u:object_r:drm_data_file:s0
found policy '/data/drm' - '1DK' - '950fc22999e6a9ad'
I:addFile '/data/drm/fwdlock' including root: 1
  ==> set selinux context: u:object_r:drm_data_file:s0
found policy '/data/drm/fwdlock' - '1DK' - '950fc22999e6a9ad'
I:addFile '/data/drm/fwdlock/kek.dat' including root: 1
  ==> set selinux context: u:object_r:drm_data_file:s0
I:addFile '/data/extm' including root: 1
  ==> set selinux context: u:object_r:extm_data_file:s0
failed to lookup tar policy for '/data/extm' - '61c1031e7e245788'
I:Error adding file '/data/extm' to '/data/media/0/TWRP/BACKUPS/30ff47ee/2021-02-14--16-14-58/data.ext4.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/30ff47ee/2021-02-14--16-14-58/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.

Edit : Would this be safe to still flash the latest MIUI version ?
Edit 2 : Another funny piece of information is that the data/extm folder that's causing the error is seemingly empty - Is it possible to just delete it then ?
 
Last edited:
Dec 21, 2014
5
13
Did you activate the second space? Usually this error is related to this situation.

Inviato dal mio Redmi K20 Pro Premium Edition utilizzando Tapatalk
 

vasil_d

Members
Aug 28, 2018
67
20
I did face the same problem when I have used SECOND SPACE or DUAL APPS.
Try to remove/uninstall the DUAL APPS , reboot, reboot again in TWRP and try the backup again.
 

akdmkz

Members
Aug 25, 2017
39
20
Hello,

Yes, you can safety delete '/data/extm' folder and create your backup.

:)


thanks for your comment. I was looking for this comment if it is really safe to delete that folder. I tried to delete the folder and now I am able to backup in twrp :)
 

LazzzyBoy

Members
Jan 13, 2021
9
15
Check the full "recovery.log" to know which path TWRP can't decrypt. ;)

37238
 

thanfun

Members
Sep 30, 2019
95
30
Hello i have the same problem on Redmi Note 9S with OrangeFox 11.0 (i try other twrp but same problem) and MIUI V12.0.2.0.RJWEUXM, but i can't see the content of the data/misc folder via twrp (I see inconsistencies, it is encrypted i think)
what is the problem? please any help
......
I:Error adding file '/data/misc/DbHfvCx8sfeFjQeZEadC9C/REBbGucJ91VOn,7,WOn4ExA95DM' to '/external_sd/TWRP/BACKUPS/a5e4367a/2021-06-18--14-46-30/data.f2fs.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/external_sd/TWRP/BACKUPS/hjtt4367a/2021-06-18--14-46-30/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
......
 
Last edited:

thanfun

Members
Sep 30, 2019
95
30
Hello i have the same problem on Redmi Note 9S with OrangeFox 11.0 (i try other twrp but same problem) and MIUI V12.0.2.0.RJWEUXM, but i can't see the content of the data/misc folder via twrp (I see inconsistencies, it is encrypted i think)
what is the problem? please any help
......
I:Error adding file '/data/misc/DbHfvCx8sfeFjQeZEadC9C/REBbGucJ91VOn,7,WOn4ExA95DM' to '/external_sd/TWRP/BACKUPS/a5e4367a/2021-06-18--14-46-30/data.f2fs.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/external_sd/TWRP/BACKUPS/hjtt4367a/2021-06-18--14-46-30/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
......
my problem was solved with the latest version OrangeFox-curtana-stable
R11.1 here
(change log: Add support for MIUI 12.x Android 11 decryption)
(redmi note 9s, stock miui V12.0.2.0.RJWEUXM)
 

Ninohs

Members
Sep 23, 2019
30
20
I have the same problem and logs every time show me a different patch, always on /data/

How can i solve?
 

iostrym

Members
Feb 20, 2015
1
13
Hello same problem for me with Redmi note 9 pro (joyeuse) :
createTarFork() process ended with ERROR: 255"
I don't know if this is related but I have also a message in red on startup of backup process : "E:Unable to decrypt FBE device"

Envoyé de mon Redmi Note 9 Pro en utilisant Tapatalk