TWRP Backup Restore Error

Did this thread help you?

  • Yes. ( Well Kind of.......my problem is resolved)

    Votes: 2 100.0%
  • No. ( Its still not working out)

    Votes: 0 0.0%

  • Total voters
    2

SuperSaket

Senior Member
Mar 16, 2014
73
10
0
Batala
I am trying to restore my twrp backup(around 7 gb) but it is always failing around 55% giving error
I:extractTarFork() process ended with ERROR=255


When trying to restore another twrp backup(around 1.5 gb) it do just fine.

I have googled a lot but had no luck.
I have attached recovery log in the post.

Any help will be appreciated.:good:
 

Attachments

SuperSaket

Senior Member
Mar 16, 2014
73
10
0
Batala
I'm pretty certain that error is due to lack of space.
If wiping doesn't resolve you may be out of luck.
Lack of space in data partition?
But how this is possible? I have taken a twrp backup of a running version of my phone, so how space can be insufficient?


P.S.
I was able to restore this twrp backup only once after that it started giving me this error.
What is this error 255 actually about ?
 
Last edited:

acejavelin

Recognized Contributor
Sep 3, 2009
6,835
3,318
253
Lincoln, ND
Lack of space in data partition?
But how this is possible? I have taken a twrp backup of a running version of my phone, so how space can be insufficient?


P.S.
I was able to restore this twrp backup only once after that it started giving me this error.
What is this error 255 actually about ?
Error 255 is insufficient storage space...

Is your TWRP backup in internal storage or an SD card? If it is on internal space, move it to the SD card and try again.
 
  • Like
Reactions: Murrfk

SuperSaket

Senior Member
Mar 16, 2014
73
10
0
Batala
Error 255 is insufficient storage space...

Is your TWRP backup in internal storage or an SD card? If it is on internal space, move it to the SD card and try again.
Tried putting TWRP on External SD card but still gives same error.
Tried using Nandroid Backup and Restore, Apps force closes.
Tried Using Titanium Backup but I don't it working or not can't say much about it.

P.S. The backup I want to restore was orignally a compressed backup which I decompressed using Nandroid Backup and Restore
Compressed Size: 4.52GB
Uncompressed Size: 7.45GB
Pic is attached.
 

Attachments

acejavelin

Recognized Contributor
Sep 3, 2009
6,835
3,318
253
Lincoln, ND
Tried putting TWRP on External SD card but still gives same error.
Tried using Nandroid Backup and Restore, Apps force closes.
Tried Using Titanium Backup but I don't it working or not can't say much about it.

P.S. The backup I want to restore was orignally a compressed backup which I decompressed using Nandroid Backup and Restore
Compressed Size: 4.52GB
Uncompressed Size: 7.45GB
Pic is attached.
Yeah... I am not sure why the error 255, I was always under the impression that is a space error, but the your backup is corrupt:

tar_extract_file(): failed to extract //data/app/org.videolan.vlc-1/base.apk !!!
I:Unable to extract tar archive '/external_sd/TWRP/BACKUPS/ZY2224PF42/2017-02-23--17-54-51/data.f2fs.win001'
Error during restore process.
I:Error extracting '/external_sd/TWRP/BACKUPS/ZY2224PF42/2017-02-23--17-54-51/data.f2fs.win001' in thread ID 0
I:Error extracting split archive.
Error during restore process.
The recovery.log pretty clearly shows a tar extraction error...
 

SuperSaket

Senior Member
Mar 16, 2014
73
10
0
Batala
Problem Solved (well kind of..)

For me , the problem was kinda solved. As per the suggestion by @acejavelin , I reset my phone and was only able to restore apk from my 7 GB TWRP Backup.
Titanium Backup doesn't restore my backup as it force closes whenever I tried to restore.
Nandroid Backup restore appdata but it eventually leads to force closes.


For anyone who wants to extract TWRP backup can use Cygwin

(By @carl1961)
"____________________________
CYGWIN Unpacking TWRP Backup Files
Thanks @Optikmike for CYGWIN tip

here's what I did..

CYGWIN Unpacking TWRP Backup Files

rename:
data.ext4.win to data.ext4.win.tar
system.ext4.win000 system.ext4.win000.tar
system.ext4.win001 to system.ext4.win001.tar

Make a directory in your CYGWIN Home [Username]folder
Example: untar

Use Windows File Explorer go to your CYGWING Home
C:\cygwin\home\carl (your user name will be here)
make any folder you choose
Example:
C:\cygwin\home\carl\untar
and C:\cygwin\home\carl\untar\data ( for data files)

put your renamed data files in a folder named data
C:\cygwin\home\carl\untar\data (this is to keep files separate when unpacked)

While in Explorer put your renamed system files in untar folder

start CYGWIN ( Use the Cygwin Terminal and then you can copy and paste these commands)
cd to untar folder
example:
cd\untar
do these commands one at a time, it will extract to a folder named system

tar -xvf system.ext4.win000.tar
tar -xvf system.ext4.win001.tar

cd to data

do this command
tar -xvf data.ext4.win.tar

___________________"

SOURCE : https://forum.xda-developers.com/showthread.php?p=53913623#post53913623

For me problem is solved :D. Anyone interested can continue this thread.
 
Last edited: