Hi,
TWRP gives me an error while trying to back up data from SD Card
Code:
createTarFork() process ended with ERROR: 255
Relevant fact: I have SD card but I am using it in "internal storage" mode. Can it be the reason?
Did someone had similar problem? Can someone confirm that data backup works for him without issues while having SD card in "internal storage" mode? Any ideas what to check?
The excerpt of TWRP log is below. Any advice is appreciated. Thanks!
Code:
Backing up Karta SD - Data (excl. storage)...
Backups of Karta SD - Data do not include any files in internal storage such as pictures or downloads.
Invalid encryption mode 'ice:aes-256-heh'
I:Creating backup...
I:Creating tar file '/data/media/0/TWRP/BACKUPS/Mi_9_Lite/Basic NAND backup crDroid 2020-04-01--07-57-26/external_sd.f2fs.win'
I:addFile '/external_sd/app' including root: 0
==> set selinux context: u:object_r:apk_data_file:s0
I:addFile '/external_sd/user' including root: 0
==> set selinux context: u:object_r:system_data_file:s0
I:addFile '/external_sd/user/0' including root: 0
==> set selinux context: u:object_r:system_data_file:s0
failed to lookup tar policy for '/external_sd/user/0' - '1de759c59fbb3500'
I:Error adding file '/external_sd/user/0' to '/data/media/0/TWRP/BACKUPS/Mi_9_Lite/Basic NAND backup crDroid 2020-04-01--07-57-26/external_sd.f2fs.win'
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving '/data/media/0/TWRP/BACKUPS/Mi_9_Lite/Basic NAND backup crDroid 2020-04-01--07-57-26/external_sd.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
By the way of update, what I found was:
- the most important seems to be in the first error line
Code:
failed to lookup tar policy for '/external_sd/user/0' - '1de759c59fbb3500'
- the error 255 often appears when there are multiple users or profiles on device, which can be recognized from the above line. The only existing solution so far is to delete other users/profiles, it's known TWRP flaw confirmed even by brigudav here. This is not the case here.
- found another user who had similar issue several months ago here but seems I won't be able to get in touch
- I was able to overcome the error by formating SD as external storage - this confirms the error was cause by SD card used as internal storage.
Since I found info (can't find link now) that newer versions of TWRP should support so called adoptable (internal) storage, I am still interested to know whether someone has SD card as internal storage and backs up through TWRP without error. Also any ideas to resolve the issue are still appreciated.
Related
Hello all.
Although I have read a LOT of xda before, while and after my problems, this is my first post here.
I registered because I wanted to share my solution with the community.
Maybe somebody will find it useful at some point of their mobile adventures.
Primary symptoms:
- a lot of freezing for 5-60 seconds (sometimes longer)
What got me into the primary symptoms
- rooted 4.1.2 stock upgraded via odin to 4.3 stock
Primary ideas that failed
- Dummy File Generator - resulted in freezes, hangs and reboots
- LagFix (fstrim) - no palpable effect
- e2fsck -f -c -v -p every partition (data, system, efs, cache) - no erros & no palpable effect
- Flashing CM11 - primary symptoms remained
What got me into the secondary symptoms
1. Gave up (at that point I was convinced that the problem was hardware related and began to worry about the tripped knox warranty )
2. TWRP format data + wipe every partition (important step it seems)
3. Nandroid restore to 4.3 stock
Nandroid restore was successful BUT:
Secondary symptoms:
- apps were unable to write to internal sdcard0 I could however paste files from my pc via USB or sambadroid so all was not that bad
- titaniumbackup said that any location under /sdcard0/ was "not writable"
- swiftkey was not able to download language packs etc.
- despite the fact that apps could not write to the internal storage the phone seemed not to freeze and became snappier so you could say that the primary issue was resolved (probably by the 'TWRP format data + wipe every partition' step)
Now what about that read-only issue?
Secondary ideas that failed
- chmod 777 for data/media, mnt, storage etc.
- remounting
- retried nandroid restore
Solution that worked
- because only apps had problems I thought that I could mount the /Android folder from internal SD to external SD (apps had no problems with writing to external) and so I downloaded FolderMount. Upon launching it informed me that I have a faulty sdcard module and it will try to repair it (hell yeah! please do!). I rebooted and... sd worked + no more freezes!
phew! that is a lot! all in all I believe that the odin upgrade messed up my internal SD and the freezing was a sign of the phone struggling to write to the storage.
Needless to say - from that moment on I am a happy FolderMount premium user
TL;DR
If you have problems with S3 freezes and/or with read-only internal SD - install FolderMount and let it repair your sdcard module.
I wondered what happened in the background so I asked the dev himself:
madmack said:
The repair simply replaces /system/bin/sdcard with a proprietary one that changed the sdcardfs filesystem that samsung uses to the fuse filesystem that Android AOSP uses which supports binding.
Click to expand...
Click to collapse
And lastly - thank you madmack!
See post# 2
Update but need some help
Figured everything out after doing more research. I successfully downgraded to 4.4.2 and unlocked using towelroot.
I have a couple of questions if anyone can answer them:
I don't see Safestrap in Busybox's list
Safestrap installed fine and I an access it etc. but a backup fails if I try it:
Says:
Safestrap 3.75 (TWRP v2.7.1.0)
ROM Slot: stock
Data and System are checked
Enable compression and Skip MD5 are unchecked.
Backup Fails:
Unable to mount internal storage.
Unable to mount /external_sd during GUI startup (I have no external sd card in the phone)
Full SELinux support is present
Unable to mount /external_sd/TWRP/. twrps when trying to read settings file
Updating partition details
Unable to mount internal storage
FAIL
Any advice XDA?
Thanks in advance
Figured it out. Stupid simple mistake. I didn't have internal storage mounted. Backup worked great afterwards.
For others searching the same issue, go into Safestrap and click Mount>click internal storage.
Property on my Galaxy Tab S2 MM TWRP 3.0.0. Installed. Have already made several backups, without problems.
For no apparent reason, backup creation is now aborted.
Have tried to write to the ext.Sd card and a USB stick
Have TWRP reinstalled. Without success. Times an older backup made and tried to save it again. Same error message.
Have determined that if I in the partitions selection "system" clicks error appears. For all other partitions not. Have the system partition reformatted, but nothing. Have deinstall ANTPlusTest.
If I check in the system-img check box instead of system does the backup
Does anyone have an idea what else I could make to fix the error? Also, I would be interested in what is the difference between system and system img. Is not system included in Sytem-Img? Then I would backup the system-img in the future.
last Part from recovery Log:
I:Backup Name is: '2016-10-05--23-00-33_MMB29K.T715XXU2BPE2'
I:Full_Backup_Path is: '/external_sd/TWRP/BACKUPS/330019d2b046b2d1/2016-10-05--23-00-33_MMB29K.T715XXU2BPE2/'
I:Calculating backup details...
* Total number of partitions to back up: 3
* Total size of all data: 9672MB
* Available space: 43734MB
[BACKUP STARTED]
* Backup Folder: /external_sd/TWRP/BACKUPS/330019d2b046b2d1/2016-10-05--23-00-33_MMB29K.T715XXU2BPE2/
Backing up System...
Error opening: '/system/app/ANTPlusTest' (Not a directory)
I:Error in Generate_TarList!
Error creating backup.
I:InfoManager saving '/external_sd/TWRP/BACKUPS/330019d2b046b2d1/2016-10-05--23-00-33_MMB29K.T715XXU2BPE2/system.info'
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
I:Copying file /tmp/recovery.log to /external_sd/TWRP/BACKUPS/330019d2b046b2d1/2016-10-05--23-00-33_MMB29K.T715XXU2BPE2/recovery.log
It seems you may have a corrupted system partition and it fails to backup the ANTPlusTest.
System Image backup succeeds because it makes a raw copy of the entire partition, byte for byte.
Regular backup only backs up the files and folders.
That does not sound good. I had the partition already on ext4 formatted. Apparently unsuccessful. What can I do to repair the partition? I had formatted low level for hard disks. But Android?
Tollkirsche said:
That does not sound good. I had the partition already on ext4 formatted. Apparently unsuccessful. What can I do to repair the partition? I had formatted low level for hard disks. But Android?
Click to expand...
Click to collapse
Have you tried formatting with twrp using the advanced wipe options then flash the stock firmware or simply just delete that file?
Also something else to try. I remember someone else had the same issue, try backing up to different media. If your backing up to sdcard try internal or another sdcard or otg.
I've been here for a week on holiday and will deal with the problem afterwards.
I have formatted with TWRP ext4 and deleted the file. Wipe I had made and as medium int and ext SD card and also a USB stick. All without success.
I did with twrp wipe Dalvik / Art Cache; System; Data; Internal Storage; Cache and repair File System from System, Data and Cache.
Then I played back the last working backup. Now the error is fixed.
Hello everyone!
I have to admit that I didn't root a device for a while but just tried my luck with my new tablet due to the very low internal storage.
What have I done?
- Enable USB Debugging and OEM unlocking
- Booted into Samsung Download mode
- Installed the latest version of TWRP with the correct version of Odin
- Booted into TWRP (no problem at all)
Ran into issues from here
- Tried to install the latest Magisk version and had some error messages: imgur.com/Z6RojHm
- Tried to move Magisk from my External SD Card to my Internal SD Card
- Could not find any data such as "Download" from my internal card in TWRP
- My SDCard used to be encrypted, I decrypted to see if this changes anything
- Did a search online and found suggestions to Wipe Data, tried to install it again, same issue again
- Next suggestions I found was to format "Data" from EXT4 to FAT
- Booting up the tablet was no issue until here
- Was able to mount "Data"
- Still - couldn't find my folders of my Internal SD Card
- Tried to install Magisk from my External SD Card again, worked this time but with errors again: imgur.com/TIVM7gf (1/2) imgur.com/J4Uqer3 (2/2)
- Booted up the tablet and now I am getting the following messages:
Verification failed!
Unable to restart your device. The intergrity verification has failed. You must need to reset your device to factory default settings. This will erase all your data.
Reset (button)
- Click the button, TWRP does some things, boots up again and same message again. Now I am stuck.
Does anyone have any recommendations for me? I am a bit worried that I had to format my Data to FAT as well as all these error messages. Not sure if I should/can try to do it all over again (with Odin) or is there anything I should/can do to avoid any issues now or in the future (e.g. upcoming updates etc.)
If anyone can help - thank you very much! And thanks for taking your time to read through this! Tried to keep it as short as possible
Magisk 20.4, Magisk Manager 8.0.4, TWRP 3.4, LineageOS 17.1 Kuntao/Lenovo P2
[re-wording edit]
My question is why does TWRP Backup show *inc* /data/media when TWRP Helper doesn't appear to be installed? I thought the helper module was what made this happen.
It's working but I'd like to understand why in order to feel confident with it.
[/edit]
Phone shows rooted in Root Checker Basic. Tried to install TWRP Helper module but it failed and doesn't appear in the installed modules list. Reason for installing is to be able to do a full backup with TWRP (before doing LineageOS updates which have a nasty habit of trashing the phone).
However, in TWRP backup the Data partition already says "inc. /data/media" anyway instead of the usual exc. I thought that was what TWRP Helper was for. But if it's not installed what have I misunderstood?
Thanks.
Hello, I have the following problem: my device is Samsung SM-G9006V with root rights, the operation system is LineageOS 16. I want upgrade it to LineageOS 18. But first I made Nandroid Backup with the "TWRP Helper" (repo from Magisk). The upgrade ended in a loop from LineageOS, I means: LineageOS boot up to its logo, then crashes and starts again. I flashed LineageOS 17 but the same thing happens.
I restored Nandroid Backup, but had problems with my data on the external SD card (it is adaptive to the internal storage, not mobile), namely: the data are on the SD card, I can see it in TWRP Recovery Explorer in
/external_sd /media/0, but LineageOS does not bind (does not mount) it. My data on the SD card lay like a stone.
One more thing: when restoring data, TWRP says in the beginning in protocol:
unable to find partition for path “/”.
There is only one error in file /tmp/recovery.log:
I: Failed to load image from indeterminate013, error -1
Can someone tell me:
1. Why does Nandroid not work for my data on an external SD card. Or how can I manually mount or link the data from the external SD card into the system (for example: mount -o rw / dev / device_externe_SD_Card / sdcard or
ln -s / external_sd / media / 0 / data / media / 0 or ???)
2. And why does upgrade end in the system loop
thanks