[Q] TWRP backup fails on data partition "E: Unable to stat /data/data/../cache/ .. "
Whenever I try a full nandroid backup in TWRP it always fails once it gets a few hundred files into the data partition. However, it does complete the backup when the data partition isn't selected.
When I first start the backup a bunch of different red error messages come up for various cache files in the data partition.
"E: Unable to stat '/data/data/[variousapp]/cache/[stuff]/[hashvalue?]' "
I've got a rooted T-Mobile Note 3 with Jedi Elite ROM and TWRP 2.8.1.0, however I'm not completely sure that my phone is legitimately rooted. If I try to open the SuperSU app it says "There is no SuperSU binary installed,...", and applications constantly achieve root access then get denied it moments later. Or sometimes the applications achieve root access with no further issues, it's quite random.
Does anyone have any idea what could be going on?
EDIT: It also should be noted that the files in the error messages can be found when using the TWRP file manager, but when using any file manager application with the OS booted the "/data" folder appears empty.
Anyone have any idea?
Thanks
Well.... from the top of my head I would try to do these things:
1) install one of those "check to see if I am rooted" apps and run it.
2) flash a kernel that has been prerooted, i.e.:that it installs the SU binary to the appropriate location.
3) flash one of those .zip packages in twrp that root your phone.
4) check to see if you can make twrp install root for you ( i think when it doesn't detect root binary it offers to do that).
5) reinstall rom only part as a last resort?
Once you restore proper root access you might need to restore proper SELinux labels to /cache /system /data.
Let me know if you get to this part and need specific instructions.
Best of luck
CekMTL said:
Well.... from the top of my head I would try to do these things:
1) install one of those "check to see if I am rooted" apps and run it.
2) flash a kernel that has been prerooted, i.e.:that it installs the SU binary to the appropriate location.
3) flash one of those .zip packages in twrp that root your phone.
4) check to see if you can make twrp install root for you ( i think when it doesn't detect root binary it offers to do that).
5) reinstall rom only part as a last resort?
Once you restore proper root access you might need to restore proper SELinux labels to /cache /system /data.
Let me know if you get to this part and need specific instructions.
Best of luck
Click to expand...
Click to collapse
I flashed the latest SuperSU.zip and that ended up fixing root access. The Root Checker app verifies it as well as other applications being granted root access.
I tried flashing CF-Auto-Root in TWRP and it fails.
How do I restore the SELinux labels for those directories?
You caught me on my way to bed but here are the instructions:
From terminal or adb shell
su
ll -Z
(check for any "unlabeled" text for /data /cache /system)
restorecon -Rv /cache
restorecon -Rv /data
mount -o remount,rw /system
restorecon -Rv /system
mount -o remount,ro /system
ll -Z (you should not find any "unlabeled" /cache /data /system)
Let me know how it goes
I tried all those commands from the terminal and it still shows all of the same "Unable to stat" error messages when backing up
The "ll -Z" command, is that supposed to be double pipe or double L? I'd never seen a double L command before so I couldn't get it to work if that's what it is.
Sorry to budge in but I have the same problem too on my oneplus one. Everytime I do something in twrp it saids unable to stat /data/data/com.android.chrome/something I wiped /data and it still does that. I tried to install custom rom and when it starts it saids something is wrong with my system udi and com.android.phone keeps on crashing. So I don't know how I am suppose to fix this. If I format /data I will lose all my pictures,music,apps,etc. since it will wipe /data/media? Any help?
Edit: Upon reading the first post again, I also can't perform nandroid backup because it fails at /data. Which was why I wanted to try different rom and wipe /data to see if it would be fixed.
patstar5 said:
Sorry to budge in but I have the same problem too on my oneplus one. Everytime I do something in twrp it saids unable to stat /data/data/com.android.chrome/something I wiped /data and it still does that. I tried to install custom rom and when it starts it saids something is wrong with my system udi and com.android.phone keeps on crashing. So I don't know how I am suppose to fix this. If I format /data I will lose all my pictures,music,apps,etc. since it will wipe /data/media? Any help?
Edit: Upon reading the first post again, I also can't perform nandroid backup because it fails at /data. Which was why I wanted to try different rom and wipe /data to see if it would be fixed.
Click to expand...
Click to collapse
pat, did you have any luck fixing this? i'm having the exact same issue with my oneplus
---------- Post added at 03:13 PM ---------- Previous post was at 03:05 PM ----------
utjock12 said:
pat, did you have any luck fixing this? i'm having the exact same issue with my oneplus
Click to expand...
Click to collapse
alright i said screw it and wiped internal storage and it fixed the issue. i had to push ROM onto the new storage through ADB but it seemed to fix the issue.
For anyone who is wondering you need to do a FULL wipe (ie in recovery wipe EVERYTHING including internal storage), then push or mount devices through recovery and put ROM back onto SD card.
bu_plus said:
Hi friend,
I have tried my best to locate the download link for the new ver. 5.00 ROM but with no success.
Kindly could you please provide me with the link. BTW, I'm using firefox browser.
Best regards,
bu_plus
Click to expand...
Click to collapse
Well you fixed it the easy way, I went to the thread on how to turn oneplus one back to stock.
http://forum.xda-developers.com/oneplus-one/general/guide-return-opo-to-100-stock-t2826541
I unzipped the 44s Stock ROM and manually flashed each file via adb to it, that cleared up all my problems. I did lose some data, at least at had my apps, messages, and pictures backed up.
Sent from my Oneplus One using XDA Free mobile app.
utjock12 said:
pat, did you have any luck fixing this? i'm having the exact same issue with my oneplus
---------- Post added at 03:13 PM ---------- Previous post was at 03:05 PM ----------
alright i said screw it and wiped internal storage and it fixed the issue. i had to push ROM onto the new storage through ADB but it seemed to fix the issue.
For anyone who is wondering you need to do a FULL wipe (ie in recovery wipe EVERYTHING including internal storage), then push or mount devices through recovery and put ROM back onto SD card.
Click to expand...
Click to collapse
I have this same problem with my OPO and I tried a full wipe including internal storage, but the "unable to stat..." problem still persists. Should I try using the "Format Data" option on TWRP instead of just the "Advanced Wipe"? I tried searching online for the difference but I can't really find any information.
monkey29992 said:
I have this same problem with my OPO and I tried a full wipe including internal storage, but the "unable to stat..." problem still persists. Should I try using the "Format Data" option on TWRP instead of just the "Advanced Wipe"? I tried searching online for the difference but I can't really find any information.
Click to expand...
Click to collapse
So I had my issue on my OPO also, still never confirmed what the actual issue was but after some googling I saw this thread and maybe one more with the same error description.
From TWRP I went Wipe->Advanced Wipe->Clicked ALL boxes.
From what I could tell the issue is actually on the "internal storage" partition which is your emulated SD Card.
I'm not actually sure what the "Format Data" option does tbh I never had to go that far.
Word of warning, make sure you have ADB working and you know how to push files to your phone. You can in theory use the "mount" option from TWRP and connect to a PC as an extendable drive but this functionality is super flaky and is known to not work on occasion.
you don't have to!!!!!!!!!!!
actually i formated it and i was looking for a way to transfer my zip file to internal storage ........... but when i clicked on backup/restore it started to install and booted normally !!!!!!!!!!!!! (by temp boot file)
Sad I am also facing this problem too. At last I have to format everything to get my phone working again, wiping /data does not work, must wipe /data including media.
Internal Storage failure?
This happens to me all the time all of a sudden. I did not change anything at all, except for flashing a new CM version.
I also get a strange stat error, something with google.photo cache.
Yesterday, I have then flashed the new 2.8.6(7) and that gave my phone the rest. It might be because I flashed through TWRP itself into the recovery partition, but now additional to the backup error above when I want to erase dalvik cache, the recovery just hangs. I also can't restore a backup atm.
Now I have reflashed the real 2.8.6.0 recovery and it still hangs when I want to wipe dalvik... wtf is going on here?
And oh yea, my phone does not boot anymore either, it just loops at the flash screen...
UPDATE:
After I found some info on this thread about similar issues, I factory reset my phone with stock recovery (TWRP was not reliable anymore, even the 2.8.6.0 version that was running perfectly before) and then reflashed the latest CM on a wiped internal storage. Now I am up and running again with minimal loss of data due to my TB backups that are scheduled and save to the SD.
But this leaves a very weird feeling back, basically my phone was rendered useless out of nowhere (I was running the previous CM for 2 weeks already), making TWRP backups impossible and forcing me to wipe the internal storage with all media on it without giving me the chance to back it up (MTP in TWPR was also very flaky and died several times half in copy operations). Something is going very wrong with this phone, never ever had that on any of my 5 previous htc devices and the fact that the OnePlusOne users are among the main ones that reported similar issues, I have a feeling it is linked to cheap storage quality. Motorola is a Chinese company now after all... :-/
Hello,
I had the same issue with my Galaxy s4 GT-I9500, it said "E: Unable to stat /data/...", wiping didn't fix, but after I run "format data", it fixed the issue for me.
I have been going through the same issue. I can fix it for 'a while' (by wiping and formatting data) before it comes back again. Anyone knows how to get rid of this once and for all?
This started happening with a working RR android 7.1 ROM I have used for several days. Today, I wanted to try out LineageOS 14.1 so I made a nandroid backup of data and internal storage. When I rebooted into RR the screen was flickering and a message constantly popped up stating that com.android.phone stopped and Calendar stopped and com.android.media stopped etc etc.
So I went on and did a full clean flash
I tried t remove my sim and the clean flash but to no avail. I do advanced wipe --> Dalvik/ART cache, System, Data, Internal Storage, and Cache before every flash today. Then i flash ROM and latest gapps, wipe cache/dalvik and reboot.
Even without flashing gapps, the problem is still there.
Running on TWRP 3.0.0 (worked for several days on RR android 7.1 ROM), but tried on 3.0.2-2, 3.0.2, and 3.0.1 with the same results.
How did this happen? Is my EFS and IMEI f'ed because of the nandroid backup of data and internal storage?
How do I fix this?
Kind regards and a happy new year!
Same here. Twrp is the culprit, I'm afraid. It isn't taking good backups. Just fresh install RR and download all your apps, it'll work. Can't wait for twrp update...
i needed to format system to ext 4 and now everything works!
I am currently on Rr5.8 Official. But i have a lot of problems with my folders....
In Es Filexplorer, i can access /storage/emulated/0 for a minute or so. But then they folder goes empty.
I cannot Save pictures, recordings or download throgh Chrome/ADM/Play store.
I probably screwed something up when trying to pass safetynet. Installed magisk. Isu. Suhide and fooled around with a lot of stuff...
What i'we tried:
Reflashed/updated the rom. (Dirty from TWRP, with factory reset/wipe)
Tried to chmod 777 on "/" "/sdcard" "/system/storage" etc...
Fixed all filesystems in TWRP
Tried to Mount the folder/s from the terminal.
I'we asked in the official thread for the ROM. But it seems like i'm the only one with this problem.
I just reflashed RR5.8 official. Since the nightly didnt work well. No root installed exept for the one included in dev options.
Edit: Back on Nightly, Same problem... To install apps i need to start the DL, Restart the phone and cross my fingers that i get the apk before my access disappears.
Dallebull85 said:
I am currently on Rr5.8 Official. But i have a lot of problems with my folders....
In Es Filexplorer, i can access /storage/emulated/0 for a minute or so. But then they folder goes empty.
I cannot Save pictures, recordings or download throgh Chrome/ADM/Play store.
I probably screwed something up when trying to pass safetynet. Installed magisk. Isu. Suhide and fooled around with a lot of stuff...
What i'we tried:
Reflashed/updated the rom. (Dirty from TWRP, with factory reset/wipe)
Tried to chmod 777 on "/" "/sdcard" "/system/storage" etc...
Fixed all filesystems in TWRP
Tried to Mount the folder/s from the terminal.
I'we asked in the official thread for the ROM. But it seems like i'm the only one with this problem.
I just reflashed RR5.8 official. Since the nightly didnt work well. No root installed exept for the one included in dev options.
Edit: Back on Nightly, Same problem... To install apps i need to start the DL, Restart the phone and cross my fingers that i get the apk before my access disappears.
Click to expand...
Click to collapse
What BL&CP have you got? Which 910 variant? Do you have Last TWRP 3.0.2.0?
Did you clean wipe including internal storage?
You didnt flash supersu after flashing Rom + Gapps (7.1 ARM Nano) right?
using 910G / RamRom N7_V1
Chimbat said:
What BL&CP have you got? Which 910 variant? Do you have Last TWRP 3.0.2.0?
Did you clean wipe including internal storage?
You didnt flash supersu after flashing Rom + Gapps (7.1 ARM Nano) right?
using 910G / RamRom N7_V1
Click to expand...
Click to collapse
I don't understand the question. Baseband and kernel? N910FXXU1DPE2 // 3.10.40-LineageOS.
No, havent cleaned the internal Storage. Since all apps and stuff still works i assume it's another problem, and don't wanna do a complete wipe unless i know it helps.
No, no SuperSu or anything like it, i kept the old Gapps, which are still working :S
Dallebull85 said:
I don't understand the question. Baseband and kernel? N910FXXU1DPE2 // 3.10.40-LineageOS.
No, havent cleaned the internal Storage. Since all apps and stuff still works i assume it's another problem, and don't wanna do a complete wipe unless i know it helps.
No, no SuperSu or anything like it, i kept the old Gapps, which are still working :S
Click to expand...
Click to collapse
If i understood you well despite you didn't clean the Internal storage, you wiped System/Data/Cache/Dalvik or did you just dirty flashed the ROM?
You can try to repair files system in TWRP -> WIPE -> ADVANCED WIPE
Looking at your CP version, your Bootloader might be old. You can try to upgrade it to the last N910FXXU1DPL2. I don't know if it will help.
Chimbat said:
If i understood you well despite you didn't clean the Internal storage, you wiped System/Data/Cache/Dalvik or did you just dirty flashed the ROM?
You can try to repair files system in TWRP -> WIPE -> ADVANCED WIPE
Looking at your CP version, your Bootloader might be old. You can try to upgrade it to the last N910FXXU1DPL2. I don't know if it will help.
Click to expand...
Click to collapse
Yes, since all apps worked worked when i just updated the ROM. I Didnt wipe this time.
I had to do a facroty reset/wipe when upgrading once before but that didn't help either. So i suppose that isnt the problem.
Dunno about the bootloader, i had to unlock it to be able to flash twrp/RR5.8.
I'll try to update it tomorrow.
And i tried to repair the filesystem, no go :/
Might as well do a backup and Reflash the phone from ODIN with RR5.8. And wipe everything.
I can reach the internal storage from a PC tho. Thats even stranger.
Edit: Well. I figured something out. I got access of /data/media/0, but /storage/emulated/0 doesn't seem to be they same folder :S it should point to /data/media/0 If i'm not completly wrong?
This is some strange bullcrap... :E
If i remount /data/media/0 to /storage/emulated/0, it looks OK in they terminal, until i reeboot. Bit Es still ser the folder as empty, and i can't dl or save data -.- not enough free space for screenshots etc... Still need to restart my phone to download or upgrade apps
Hello everyone, I'm running on a resurrection remix ROM based on marshmallow. Previously I had cm13, when flashing the ressuruction ROM I wiped everything except internal and SD. After the first boot completed I had EVERY single piece of data the same , I had my wallpaper, my apps, Bluetooth pairings and everything else located in /data and I got a LOT of fc's from Google play services framework. I went to my file manager and looked for /storage/emulated/0 but there was actually no symlink of my internal. I found my internal storage in /data/media/0 but what's the use, I can't even capture a picture as all apps don't have access to /data without root. So I decided to go to my recovery and wipe my data. This time my data successfully got wiped like usual but the symlinking problem was still present. I went to my recovery and wiped my internal thinking my problem would be fixed but it didn't. Even when I flashed the cm 13 ROM I had the data wiping problem but I never had symlinking problems. How can I fix it, please help!
I have noticed recently that when I restore my stock ROM from twrp that some apps don't update and some can't be downloaded, they get stuck at the download pending or downloading screen and never download. Had anyone ever encountered this problem? The stock ROM is not rooted or modified in any way.
So I am encountering this issue as well. Very odd behavior after restoring the stock build after coming from Lineage. What I getting is an Error Code 0 when trying to update some apps. While uninstalling the error coded app does not allow a re-installation. Again with an Error Code 0 (which turns up nothing when trying to search Google for the error). I've tried all the basic stuff, like clearing the Playstore's data, clearing the trouble apps data, rebooting, etc. They just simply fail to update/install. It's not happening with every app, just some. Dropbox being a notable one. I simply cannot install it. Infact I side loaded it and it immediately force closes upon trying to open. This has to be some odd permission issue.
Wipe cache and dalvik cache?
I seemed to have the found the solution. Before I restore I had to wipe everything except my microSD card where my backups are saved. That includes wiping internal storage. So wipe system, dalvik, cache and internal storage, then restore from SD card and everything worked fine after that