Device: OnePlus 5T (dumpling)
OS: crDroid v6.5
Firmware: firmware_H056_oneplus5T
TWRP Version: 3.3.1-20190908-0-codeworkx-signed-forcedecrypt
Add-ons: Magisk-v20.4 and MinMicroG-NoGoolag-2.7-beta2.
Hello XDA Fourm,
Every time I go to do a backup; I get an error upon backing up the "Data" partition. Here is a snippet of the "recovery.log" TWRP produced:
Code:
I:addFile '/data/per_boot' including root: 0
==> set selinux context: u:object_r:system_data_file:s0
failed to lookup tar policy for '/data/per_boot' - '3ceb982b622fe097'
I:Error adding file '/data/per_boot' to '/data/media/0/TWRP/BACKUPS/[REDACTED]/2020-04-22--23-01-37_QQ2A200405005_release-keys/data.ext4.win'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/[REDACTED]/2020-04-22--23-01-37_QQ2A200405005_release-keys/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Copying file /tmp/recovery.log to /data/media/0/TWRP/BACKUPS/[REDACTED]/2020-04-22--23-01-37_QQ2A200405005_release-keys/recovery.log
Things I have tried:
Backing up everything except the "Data" partition. Back up completes successfully.
Reflashing TWRP.
Any help is appreciated.
Hi,
I'm facing the same issue.
Did you find any solution for this issue?
THX
Use TWRP file manager and go to "/data/per_boot" and delete the folder "per_boot" and try backup again it will work
Thank me later
Related
i have a fully rooted and unlocked nexus 5x,
To Start of i rooted my phone and installed twrp custom recovery after this i proceded to try and install cm13 and gapps when my install came to a conclusion (of it bieng BROKE as Hell) i decided to boot back into recovery and restore a backup i did before installing cm13 (a full backup Boot, System, System Image, Data, EFS, Cache Ect).This worked fine
Then a new Rom came out that i like the look of and decided to see if my phone would accept it, haveing previously deleted the backup i had before i tryed to make a new one, i got this from the recovery log
I:Backup Name is: '2016-10-13--20-39-38_NRD90R'
I:Full_Backup_Path is: '/data/media/0/TWRP/BACKUPS/006b8a96ed69b064/2016-10-13--20-39-38_NRD90R/'
I:Calculating backup details...
* Total number of partitions to back up: 10
* Total size of all data: 10899MB
* Available space: 16400MB
[BACKUP STARTED]
* Backup Folder: /data/media/0/TWRP/BACKUPS/006b8a96ed69b064/2016-10-13--20-39-38_NRD90R/
Backing up Boot...
I:Reading '/dev/block/mmcblk0p37', writing '/data/media/0/TWRP/BACKUPS/006b8a96ed69b064/2016-10-13--20-39-38_NRD90R/boot.emmc.win'
Iartition Backup time: 0
* Generating md5...
I:MD5 for /data/media/0/TWRP/BACKUPS/006b8a96ed69b064/2016-10-13--20-39-38_NRD90R/boot.emmc.win: 11d56bb372a47552eb72ca57de7ac225 boot.emmc.win
* MD5 Created.
Backing up System...
Error opening: '/system/app/BasicDreams' (Not a directory)
I:Error in Generate_TarList!
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/006b8a96ed69b064/2016-10-13--20-39-38_NRD90R/system.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Copying file /tmp/recovery.log to /data/media/0/TWRP/BACKUPS/006b8a96ed69b064/recovery.log
I:Set page: 'action_complete'
I: operation_end - status=1
I:Set page: 'clear_vars'
I:Set page: 'backup'
I:TWFunc::Set_Brightness: Setting brightness control to 5
I:TWFunc::Set_Brightness: Setting brightness control to 0
Click to expand...
Click to collapse
After this i researched the BasicDreams file and the error 225, as for the basicdreams file i tryed to delete it (in root browser) but instantly came back again, and i could only find post on error 225 when restoring a backup not making one.
Please if anyone as any idea what is happening help me out.
Ben
TLDR; I have a twrp backup of my zenfone2 at a working state, but sim cards are not detected or unable to unlock after restore
Hi all,
I was trying to restore a TWRP backup (twrp-3.1.1-0-Z00A.img) of my lineageos install (lineage-14.1-20170721-nightly-Z00A-signed.zip) and /config was not restoring (error: "Unable to wipe config."),
so I ended up doing "fastboot erase config" to force the restore, which didn't help and might have been a mistake ...
(the real error after looking at the twrp logs is: "error: build_default_directory_structure: cannot lookup security context for /config/lost+found" / "Unable to wipe config.")
At first I restored /config by hand extracting the backup file (config.ext4.win) on my computer and using cp in twrp terminal, but android was crashing as soon as I inserted a sim card (permissions / selinux problems I guess)
I tried some chown / chmod / restorecon but no luck
I then reflashed stock rom (tried multiple recent versions, Android L and M, using adb sideload) but no luck
I used the "Unlock Device App" but my bootlooder was not locked while reflashing stock rom.
I'm now running lineageos again, I was able to restore /config using "rm -rf" option in twrp, but I either don't see the sim cards, or the phone is unable to unlock them
looking at logcat, the phone is looping trying to flash the modem (https://pastebin.com/zBnjtW1v)
I haven't try Asus Flash Tool and "raw" firmware, would it help ? (I don't have a windows machine handy, only linux / mac)
Any recommended stock version I should try?
To sum up I have a TWRP backup at a know good state (but don't know if the backup is good as it's the first time I try a restore ...),
a zenfone with non working sim cards (working in an other phone), and I would like to make it work again
Thanks
Etienne
Now flashed WW_ZE551ML_4.21.40.223_20161216.raw using Asus Flash Tool (https://forum.xda-developers.com/zenfone2/general/z008-z00a-z00d-z00x-raw-fw-collection-t3448966)
but still no sim cards
Can someone share a dd dump of /config partition of a Z00AD?
Thanks
Etienne
Found some errors in the logcat:
08-06 21:02:21.683 263 1603 D : (NVM_1) OpenNvmBinFiles - NOTICE: Error in opening /config/telephony/1//calib.nvm
08-06 21:02:21.683 263 1603 D : (NVM_1) InitNvmModule - Error opening the NVM file
If someone can share /config permissions on their zenfone2 (permissions / owner / group / selinux)
Thanks
Etienne
champtar said:
Found some errors in the logcat:
08-06 21:02:21.683 263 1603 D : (NVM_1) OpenNvmBinFiles - NOTICE: Error in opening /config/telephony/1//calib.nvm
08-06 21:02:21.683 263 1603 D : (NVM_1) InitNvmModule - Error opening the NVM file
If someone can share /config permissions on their zenfone2 (permissions / owner / group / selinux)
Thanks
Etienne
Click to expand...
Click to collapse
kindly PM me your serial number i will send you config files
Same problem hefe !!!!
Hi,
it took me a lot of flashing and tries, but what fixed it was (I think):
0) make a full backup of your phone with TWRP (all partitions)
1) flash latest stock version (UL-Z00A-WW-4.21.40.352-user.zip)
at this point sim card where not working, I was seeing selinux error (avc: denied ...) for process mmgr (looking with adb logcat)
2) reunlock the phone if needed and install latest TWRP
3) in TWRP, mount all partitions, then go to the terminal
4) list selinux permissions for everything in /config
ls -RZ /config
take notes on a paper, we need to restore them later
5) change selinux permissions using
chcon -R -t config_file /config
(found this looking at /file_contexts file, line "/config(/.*)? ubject_r:config_file:s0")
6) reboot in the stock rom and wait (looking at logcat it seemed to recalibrate itself),
at some point (maybe 5min) it asked me for sim pin \o/
7) reinstall lineageos (in my case restore backup except /config)
8) change the selinux permissions of /config back to what they were (step 4)
9) reboot in lineage os and wait again (it took maybe 5 min for the phone to ask the sim card pin)
Hope this work for you
Fastboot erase config....
After that I stucked at boot logo
Used xfstk then aft but stucked at boot used fastboot commands for flashing system all gonna smooth but stucked at boot...
Used recovery to sideload marshmallow ... succeed. But also stucked at boot ..unlock boot loader flash TWRP flashing custom rom also stucked at boot logo... PLZZ help me guyzzz
And it shows error in TWRP
Unable:to mount Config(invalid argument)
I just bought a Nova 2, unlocked the bootloader, and installed TWRP custom recovery. Haven't used the phone otherwise. Before rooting, I just wanted to take a complete nandroid backup of the entire phone. When I do so, it fails while backing up data.
The final error I get is: createTarFork() process ended with ERROR: 255
recovery.log shows the following toward the end. Please advice. Somewhere I read that it could be due to encryption, but not sure how to overcome this issue.
Invalid encryption mode file /data/unencrypted/mode
Backing up Data (excl. storage)...
Backups of Data do not include any files in internal storage such as pictures or downloads.
Invalid encryption mode file /data/unencrypted/mode
I:Creating backup...
I:Creating tar file '/external_sd/TWRP/BACKUPS/RJCDU17907003548/2018-01-05--23-21-48/data.f2fs.win'
I:addFile '/data/encrypted_flag' including root: 0
==> set selinux context: ubject_r:system_data_file:s0
I:addFile '/data/bootchart' including root: 0
==> set selinux context: ubject_r:bootchart_data_file:s0
I:addFile '/data/local' including root: 0
==> set selinux context: ubject_r:system_data_file:s0
I:addFile '/data/local/yx8W3bT4y1rt+jDAk291rB' including root: 0
==> set selinux context: ubject_r:shell_data_file:s0
I:addFile '/data/update' including root: 0
==> set selinux context: ubject_r:cache_recovery_file:s0
I:addFile '/data/data' including root: 0
==> set selinux context: ubject_r:system_data_file:s0
I:addFile '/data/data/ToOvP+8Gnd7ynGhqdp9AfkwNnj8yYtESAx2Y7D' including root: 0
==> set selinux context: ubject_r:app_data_file:s0:c512,c768
I:addFile '/data/data/GVZV,8DUcOwIFtFJXcMPGkhUh5P499fcLlHhDD' including root: 0
==> set selinux context: ubject_r:app_data_file:s0:c512,c768
I:addFile '/data/data/GVZV,8DUcOwIFtFJXcMPGkhUh5P499fcLlHhDD/z7wMMtIY6U5cqu63JtYX5D' including root: 0
==> set selinux context: ubject_r:app_data_file:s0:c512,c768
I:addFile '/data/data/GVZV,8DUcOwIFtFJXcMPGkhUh5P499fcLlHhDD/z7wMMtIY6U5cqu63JtYX5D/CSyHTkrSrWBpz3y81z7,5FDtohM' including root: 0
==> set selinux context: ubject_r:app_data_file:s0:c512,c768
I:Error adding file '/data/data/GVZV,8DUcOwIFtFJXcMPGkhUh5P499fcLlHhDD/z7wMMtIY6U5cqu63JtYX5D/CSyHTkrSrWBpz3y81z7,5FDtohM' to '/external_sd/TWRP/BACKUPS/RJCDU17907003548/2018-01-05--23-21-48/data.f2fs.win'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/external_sd/TWRP/BACKUPS/RJCDU17907003548/2018-01-05--23-21-48/data.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Set overlay: ''
I:Copying file /tmp/recovery.log to /external_sd/TWRP/BACKUPS/RJCDU17907003548/2018-01-05--23-21-48/recovery.log
Click to expand...
Click to collapse
The filename of the image looks wired. "/data/data/GVZV,8DUcOwIFtFJXcMPGkhUh5P499fcLlHhDD/z7wMMtIY6U5cqu63JtYX5D/CSyHTkrSrWBpz3y81z7,5FDtohM' to '/external_sd/TWRP/BACKUPS/RJCDU17907003548"
Is the partition encrypted?
Which Version of TRWP are you using and how exactly did you installed TWRP?
I am using TWRP for Nova 2 (my phone) by Cofface. I believe it was version 3.2, and I installed it using the Fastboot method.
Seems it is due to TWRP not being able to decrypt the data partition
I am having a devil of a time getting TWRP backup to work, I keep getting error 255. The log has the following information, and I can't figure out how to get it to work. I'd love to be able to do a full backup and not just titanium backup, any help would be greatly appreciated!
failed to lookup tar policy for '/data/data' - '2eae5e73c79fd6eb'
I:Error adding file '/data/data' to '/usb-otg/TWRP/BACKUPS/SERIALNUMBER/2019-06-10--20-12-33 nandroid/data.ext4.win000'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
Hello,
My tablet had a battery drain problem so I changed the motherboard and tried to install lineageos 14.1 again.
After replacing the motherboard, I turned on the tablet to activate usb debugging. The rom installed wasn't "complete", it looked like an interface for professionals to copy data from the old motherboard to the new... Maybe one of you knows what I'm talking about.
I flashed twrp and booted in recovery mode. Then I tried to wipe data but got errors (for instance "cache partition not found" or "hidden partition not found" or something like this. I'm sorry I didn't copy the error message :/
I tried to reboot anyway but I'm now unable to boot on the rom nor on recovery mode. I have a message : "POWER RESET or UNKNOWN UPLOAD MODE" and "ATconsole=ram loglevel=4 sec_debug. Level=1 cluster_power=1 androidboot. debug_level=0x494d sec_"
Only download mode is working.
So I'm trying to install the stock rom, downloaded from sammobile. On linux via Heimdall I got this error when flashing system.img and hidden.img :
Code:
Uploading SYSTEM
0%
1%
ERROR: Failed to unpack received packet.
ERROR: Failed to confirm end of file transfer sequence!
ERROR: SYSTEM upload failed!
Ending session...
ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer. Retrying...
ERROR: libusb error -7 whilst sending bulk transfer.
ERROR: Failed to send end session packet!
Releasing device interface...
On windows via Odin, I cannot flash the tar.md5 file either, it fails.
Someone could help ?
Or at least explain why I got these errors in twrp?
Thank you very much !!!!!!
Update :
I found a way to boot in recovery mode (twrp 3.3.1-klimtwifi) : unplug the battery, replug it and home + vol up + power.
So here is the error when I try to wipe data : "Failed to mound '/hidden' (Invalid argument)"
I installed the old motherboard and I'm doing a full backup on my sd card on TWRP, including EFS partition.
On the new motherboard I can't restore the backup because in twrp > restore > sd card : "No partitions selected to restore".
So here's where I am now :
I can boot into twrp but have an error message when trying to wipe data.
I have a full backup of the old motherboard with lineageos installed and working but i'm not able to restore it
Any help appreciated
And also, when I try to sideload the lineageos zip file I get this :
Code:
Starting ADB sideload feature ...
Installing zip file '/sideload/package.zip'
Target: samsung/klimtwifixx/klimtwifi:6.0.1/MMB29K/T700XXU1CRF1:user/release-keys
detected filesystem ext4 for /dev/block/platform/dw_mmc.0/by-name/SYSTEM
Patching system image unconditionally...
E1001: Failed to update system image.
Updater process ended with ERROR: 7
Ok, I fixed the restore issue by moving the backup files to : sd_external/twrp/BACKUP/[myserialnumber]
So now I can restore all partition except System, System Image and Hidden.
Error : extractTarFork() process ended with ERROR: 255
I still can't sideload the custom rom. But the error message "Failed to mound '/hidden' (Invalid argument)" disapeared
I fixed/unbricked the tablet by using SamFirm to download a 3 files stock firmware.
I installed it with Odin and it worked like a charm.
Then I could install a custom rom