Remove left over TWRP folder on N5

Home Forums Nexus Root Toolkit Rooting Support Remove left over TWRP folder on N5

This topic contains 6 replies, has 2 voices, and was last updated by  WugFresh 4 years, 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #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.



    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.



    Here, I just made one that takes care of all three scenarios:


    Download this:

    Then flash it in recovery, it should completely remove your unreadable TWRP folder.



    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/TWRP was transformed to a normal (readable) folder after that.

    Sorry you had to go through the trouble of creating the zip.

    Thanks again.



    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 🙂



    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 directory


    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:

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.