Fix error 255 on TWRP backup/restore

Ho annoyed are you with Oneplus Oreo Update

  • Very annoyed

    Votes: 6 31.6%
  • SUPER annoyed

    Votes: 13 68.4%

  • Total voters
    19

fanaticgamer

Senior Member
Nov 6, 2009
77
16
0
I've just had the same issue

I had to factory reset the phone, wipe internal memoy, let it boot once, don't add any pin or screen lock, or remove the previous one
Then the restore went just ok, I've managed to restore my previous data without receiving the error:

Error during restore process. extractTarFork() process ended with ERROR: 255
 

lexobys01

Member
Mar 1, 2018
30
5
0
Ok...so I manage to get the data backup/restore working by doing this :

1.check other user in data/system : no other user exist but user 0, not working
2.chek 999 in data/system : no 999 folder/file exist, still not working
3. In terminal by typing ls */10 or /5 etc : coudn't find any file/folder
4. Removing screenlock/password in setting : victory!! Both backing up & restoring data is workimg fine without any 255 error
 
Last edited:

FedeTrifo06

Member
Oct 28, 2019
18
9
0
Torino, Italy
I found the solution:
-change the filesystem of data from ext4 to ext2
-change the filesystem of data from ext2 to ext4 again
It worked for me while all the other methods described above didn't.



If I have been of help, leave me a thanks ;)
 
Last edited:

73xTer

Member
Jun 19, 2016
13
0
0
Im using the newest blu_spark TWRP with my OP5 OEM unlocked rooted with magisk running the 5.01 OOS.
BACKUP
Before running a backup do the following in TWRP/Advanced/Terminal

(enter exactly into terminal, if 999 'doesn't exist' move on to the next)
cd /data/system/
rm -r 999
cd data/system_ce/
rm -r 999
cd data/system_de/
rm -r 999
cd data/misc/
rm -r 999
cd data/misc_ce/
rm -r 999
cd data/misc_de/
rm -r 999
cd data/user/
rm -r 999
cd data/user_ce/
rm -r 999
cd data/user_de/
rm -r 999

You will successfully be able to backup!!

RESTORE:
@simo6 Gave me the solution. You need to go into the TWRP terminal before doing a restore and delete:

(enter exactly into terminal, if 999 'doesn't exist' move on to the next)
cd /data/system/
rm -r 999
cd data/system_ce/
rm -r 999
cd data/system_de/
rm -r 999
cd data/misc/
rm -r 999
cd data/misc_ce/
rm -r 999
cd data/misc_de/
rm -r 999
cd data/user/
rm -r 999
cd data/user_ce/
rm -r 999
cd data/user_de/
rm -r 999

then restore your backup!

This solve my problem for backup by doing every steps 1 by 1
Note: should also do rm -r 999 in the ff folders
cd data/media/
cd data/vendor/
cd data/vendor_ce/
cd data/vendor_de/