- February 17, 2015 at 9:24 pm #1989
Posting for (sonofjon):
Just rooted my Nexus 5 with NRT. It all went smooth, except NRT left an “unreadable” folder at /storage/sdcard0/TWRP. It wouldn’t normally be a big deal, but I have some backup software that keeps complaining about this unreadable folder in the user folder. How do I remove it? I tried this from the terminal:
root@hammerhead:/ # ls -l /storage/sdcard0/
drwxrwx–x root sdcard_r 2015-02-07 05:40 Android
drwxrwx— root sdcard_r 2015-02-12 07:48 Download
lstat ‘/storage/sdcard0//TWRP’ failed: Permission denied
root@hammerhead:/ # rmdir /storage/sdcard0/TWRP
rmdir: /storage/sdcard0/TWRP: Permission denied
In comparison, on my Nexus 9 NRT left a proper (empty and readable) folder named TWRP in the user folder.February 17, 2015 at 9:28 pm #1990
Can you please double confirm the path you just said. Is it really:
If you can confirm the path for me, I can make you a flashable zip that should fix it for you.February 17, 2015 at 9:45 pm #1996
Here, I just made one that takes care of all three scenarios:
Then flash it in recovery, it should completely remove your unreadable TWRP folder.February 18, 2015 at 3:14 am #1997
Hi, thanks for the quick response.
Yes, the location is indeed
/storage/sdcard0/TWRP(I simply copied and pasted the entire terminal output). Note this is the exact location also on my Nexus 9 (which I also recently rooted with NRT) but for which the TWRP folder is readable.
Anyway, I don’t need the fix anymore, because last night I used Online Nandroid Backup to produce an image. It uses TWRP internally and somehow
/storage/sdcard0/TWRPwas transformed to a normal (readable) folder after that.
Sorry you had to go through the trouble of creating the zip.
Thanks again.February 18, 2015 at 3:17 am #1998
I just re-read the subject to this ticket, and to be clear the problem with the TWRP folder being unreadable was on N5, not on N9. You might want to remove the TWRP folder on both systems though 🙂February 18, 2015 at 3:22 am #1999
Moreover, there is no folder named
/storage/sdcard/on either system (N5 or N9):
root@flounder:/ # ls /storage/sdcard /storage/sdcard: No such file or directoryFebruary 18, 2015 at 4:43 am #2001
Ok, thank you for the follow-up. I renamed the ticket title to say n5 now.
No worries, it took me like 2 seconds. If you are curious, or ever have problems with stubborn files again, its easy to re-create/mod a custom zip like that. Just edit the ‘updater-script’ inside [META-INF\com\google\android\updater-script] and rezip. When flashing the zip from recovery, it seems to be more effective then your standard rmdir terminal cmd. The syntax is very easy to understand. This is what the zip I had linked you to included:
delete_recursive("/sdcard/TWRP"); delete_recursive("/sdcard/0/TWRP"); delete_recursive("/sdcard0/TWRP"); ui_print("Done!");
You must be logged in to reply to this topic.