How to Fix TWRP Unable to Mount Storage, Internal Storage 0MB

For someone stepping into the Android modding scene, using a custom recovery can be a fairly common occurrence. If TWRP can’t mount storage, it means that the internal directory is inaccessible to the recovery. In this case, flashing any package or update from within the device’s memory may not be possible.

Unable to Mount Storage | TWRP

Why Can’t TWRP Access My Internal Storage?

What usually happens is that your data is automatically encrypted by default. This isn’t a a one-off case for a particular set of devices, since encrypting internal memory was mandated for devices launching with Android 6.0, or later.

Here’s what may be happening:

  1. The recovery is unable to either access or decrypt the device’s storage partition.
  2. Your device may use a legacy screen-lock method, such as a pattern lock. This may not be supported by the recovery, which then fails to decrypt the data.
  3. TWRP may not prompt you to enter your device’s screen lock.

NOTE: Even if TWRP shows the internal storage as 0MB, it doesn’t necessarily mean the storage is full. This may be an indicator of the recovery not being able to properly decrypt internal storage.

How to Fix TWRP Unable to Mount Storage?

There are three separate ways of allowing your recovery (in this case, TWRP) to allow for decryption of your device’s internal storage. Note that with each of the more advanced steps, there is a risk of losing your data, so make sure that you have a backup ready in case things go south.

1) Remove Your Device’s Screen Lock

For a temporary period of time, for when you may need to use TWRP, remove your device’s screen lock. Even though TWRP supports string-based passwords and PIN codes, it’s better to get rid of any authentication methods that you may use to unlock your phone.

Why Does TWRP Require a Screen Lock to Decrypt Data?

TWRP requires the screen lock before decrypting internal storage because of how Android handles device encryption. Android uses either full-disk encryption (FDE) or file-based encryption (FBE), and the decryption key for both of these systems is tied to your password, PIN, or pattern.

For the recovery to access that encrypted data, it needs your screen lock. Without this lock, the decryption key isn't locked behind the authentication methods. This is why removing the screen lock may help in accessing your device's internal storage.

Here’s how you can remove your device’s screen lock:

  1. Go to your phone’s Settings > Security & privacy > Device unlock.
  2. Tap on Screen lock.
  3. Input your device’s PIN or Password.
  4. Under “Choose a new screen lock,” select “None.”

NOTE: These steps were replicated on a Google Pixel. The procedure for changing the screen lock on your device may vary.

2) Factory Reset Your Device (Wipe Internal Partition)

If you need a quick, temporary solution and turning off the screen lock didn’t work, you might need to factory reset your device. This will erase all data on your phone, so proceed with caution. Also, remember that after restarting in recovery mode, your data might get encrypted again.

Here’s how you can wipe your storage partition:

  1. Boot your device into TWRP.
  2. Navigate to Wipe > Advance Wipe > Data, and choose Repair or Change File System.
  3. Tap “Repair File System” to see if this fixes the issue. If not, continue.
  4. Tap on “Change File System,” choose Ext2, and swipe to confirm.
  5. Now switch back to Ext4 and swipe to confirm.

3) Switch to the Proprietary ROM Recovery (Manual Updates)

If you need to manually flash an update to your ROM via recovery, it’s best to use the ROM’s own proprietary recovery.

PixelOS ROM Recovery

Many ROMs like PixelOS, ArrowOS, and the now-deprecated Pixel Experience come with their own recovery files. While these recoveries usually don’t allow for a lot of flexibility in interacting with your device, they’re recommended for manual updates, especially if the ROM doesn’t support OTA updates.

ABOUT THE AUTHOR

Kamil Anwar


Kamil is a certified MCITP, CCNA (W), CCNA (S) and a former British Computer Society Member with over 9 years of experience Configuring, Deploying and Managing Switches, Firewalls and Domain Controllers also an old-school still active on FreeNode.

Comments

59
    IS
    Istvan Jan 2, 2019

    Many thanks.. This did the trick.

    MT
    Manan Thakkar Feb 7, 2019

    Thanks. Change file system worked. 🙂

    CF
    Chris Fischer Mar 23, 2019

    Thanks you saved my life

    AS
    Andro Stone Apr 4, 2019

    Thnx worked

    AS
    Andro Stone Apr 4, 2019

    Thnx worked

    KA
    Kalico May 20, 2019

    Thank you. This got me past a weird glitch with decryption failure. Still had to reset the device, but at least I was able to do it after reading this. Before it was just failing.

    MG
    M.MOHAMMED ABUDHAR GHIFARI May 30, 2019

    worked but shows the empty on internal storage

      RF
      Râma Fanai Jun 10, 2019

      same here le 2 x526

        SW
        Shane Warren Author Sep 10, 2019

        Can you please elaborate the problem?

    [B
    [BLANK] Aug 16, 2019

    Thanks for the save man!!
    Appreciate it..

    BA
    Bob Adleman Sep 2, 2019

    Thanks so much, your tips paid off , working on this most of the weekend and then i lost my storage

    ST
    STEETS Oct 22, 2019

    THANK YOU!!!

    ST
    STEETS Oct 22, 2019

    somehow my data was mounted on usb storage… you’re a lifesaver

    Reply
    HP
    Harish Pal Oct 28, 2019

    my device stuck at the boot animation screen what to do??

      SW
      Shane Warren Author Oct 29, 2019

      Can you get it into download mode? if yes, then try to flash the stock firmware again and check if it helps.

      GS
      Gerson Sanchez Jun 24, 2020

      im having the same issue too

        SW
        Shane Warren Author Jun 24, 2020

        Flash Stock Android on it using ODIN

    DB
    Drone Burrito Nov 4, 2019

    YES.

    HS
    Hasan Sadikin Jan 11, 2020

    why do i get error even if i insert my PIN correctly ?

      SW
      Shane Warren Author Jan 18, 2020

      Are u sure that you entered the PIN correctly?

    AG
    Ahmed Gharieb Apr 28, 2020

    it’s work …
    but after wibe all data and ROM on my Redmi not 4 “mido”

    OM
    omar May 4, 2020

    Thanks, it works. But after reboot the phone returns as it was Internal Storage 0MB

      SW
      Shane Warren Author May 5, 2020

      Can you redo the steps and confirm that it works? maybe it got glitched back.

    AR
    Abhishek Ramola May 13, 2020

    Bro I did the same steps as return but it won’t worked for me.Actually my twrp is showing strange folder like abs687…,gusbsjsns677,etc in internal storage.I did the same steps but it again shows these folders.Pls help I m stuked in one room neither I m able to update that rom nor able to install a new one.

      SW
      Shane Warren Author May 17, 2020

      That is due to forced encryption on your device. For this, i recommend you to go for a data format and check if that gets things working.

    AY
    Ayush May 28, 2020

    bro , can you please help , after following the steps , I am unable to boot up my phone as its stuck on startup logo

      SW
      Shane Warren Author Jun 1, 2020

      Perform a new Android flash using Stock firmware from the device’s site and ODIN on a computer.

    GB
    gd blaster Jun 5, 2020

    it worked… kinda but my phone got whiped

    BM
    big mess Jun 14, 2020

    changing to ext2 and back to ext4 wipes the datas. the screenlock trick does also not work.
    idk how you got these ideas but its devastation. good i had 3 different ways backed up all datas and just testing around without losing anything, except some time….

    Reply
      MA
      Max Apr 9, 2021

      The same thing happened with mine. First attempt, it was stuck in the recovery as if the OS got corrupted. Wiped the entire thing and started from scratch. Not sure if it has something to do with the TWRP version i have or something.

      Device: Xiaomi Mi 10 5G
      TWRP Ver: 3.4.2b-1206 by wzsx150

        JA
        Jan Aug 11, 2021

        Hi,
        How did you solve this problem? I have got the same problem and same phone model but i don’t know what to do because the above steps don’t work either for me…
        Kind regards

    US
    Upadesh Shrestha Jun 26, 2020

    Thanks and it worked.

    RP
    Rt Playz Jul 1, 2020

    Bro it shows the amount of space but it doesnt show any files or folders except TWRP please help

      SW
      Shane Warren Author Jul 3, 2020

      Can you check a guide to reflash your Android. It seems that somehow the process might’ve gotten derailed for you.

    Hoàng Đào Jul 13, 2020

    thank you so much.

    SP
    Shivam Patsariya Sep 18, 2020

    Thanks Buddy, It worked perfectly

    GG
    ganesh gane Sep 23, 2020

    I tried above but it didnt work tells still unable to mount storage, system etc. , i have no os installed only twrp
    how can I mount to internal storage so I can flash custom os…
    I have checked backup in twrp it shows some folder like boot, system image etc data is present upto 2gb but nothing in /system folder. please HELP https://uploads.disquscdn.c

      TC
      Tony Celentano Sep 24, 2020

      Depending on your phone model you may be able to download and flash the original firmware, what is brand of your phone?

        GG
        ganesh gane Sep 26, 2020

        Its lenovo A6000 plus , I tried downloading stock firmware from xda https://forum.xda-developer… and flash via sd card and adb sideload but here are the errors . I tried wiping data and internal storage doesnt select . It didnt resolve .https://uploads.disquscdn.com/image

          PX
          POCO x3 Apr 16, 2021

          Did you get it to work?

        KA
        Kani Oct 1, 2020

        I’m having the same problem…. mine is asus zenfone laser 2. i tried to install stock rom from sd card…. side load it and everything…. i just can’t mount the different partitions

        VJ
        Vysakh R J Jun 2, 2021

        anyone solved this???

    ER
    ERR_0_R Oct 15, 2020

    thank you, I searched so long for a solution and your tutorial helped me to fix the error: required key not available

    CH
    Chilavert Oct 28, 2020

    It worked man… Thanks so so so much, am grateful.

    BO
    Bogdan Nov 14, 2020

    ‘If you are still unable to mount your partitions, you need to repair Internal partition, which will most likely wipe your internal storage.’
    -WORKED FOR ME!!!

    Reply
    BO
    Bogdan Nov 14, 2020

    Thank you

    AK
    Anas Kattan Nov 16, 2020

    I dont get a prompt for a password

      MZ
      Muhammad Zubyan Author Nov 18, 2020

      It indicates that you haven’t downloaded the latest version of TWRP I suggest you download from the official website to avoid such issues.

      Reply
        AK
        Anas Kattan Nov 19, 2020

        This did not work because im using latest version

    MA
    Mark Nov 26, 2020

    Thanks! This worked for me. That is… formatting to ext2 then back to ext4.

    Reply
    ÖF
    Ömer Faruk Dec 12, 2020

    work work work work

    SM
    Saurabh Mahajan Jan 19, 2021

    thank you so much!!!

    JK
    Jay KING Jul 21, 2021

    Mine is saying that the partitions are not present

      MZ
      Muhammad Zubyan Author Aug 8, 2021

      Can you please provide a photo of your phone’s screen?

    Y
    Yew M. Jul 24, 2021

    Thank you so much. It works with HTC One M9 TWRP 3.1.1.0

    KH
    Khairen Jul 29, 2021

    nice ty..

    YS
    Youssef Shaalan Nov 22, 2021

    Works 100%

    IA
    Islam Abohadia Jul 8, 2022

    This was very helpful.. thanks

    AL
    AleX Mar 5, 2023

    Thanks, I was able to fix the issue following steps 8-9.

    Reply