[Solved] Accidentally Deleted Cache Partition

Feb 19, 2016
37
7
0
Hi Everyone,

I wanted to post this to help others that may encounter the same issue I just did.

I was running OOS 4.5.14 with Magisk 16.0 (so rooted and unlocked bootloader) and was trying to flash twrp-3.2.1-0-universal-codeworkx-cheeseburger.img using fastboot and these directions (https://www.techrrival.com/flash-recovery-adb-fastboot/) so I could then upgrade to the latest OOS (https://forum.xda-developers.com/oneplus-5/how-to/guide-upgrade-nougat-rooted-encrypted-t3734779) without a boot loop, as I have previously experienced with other directions.

Everything seemed fine and dandy, but when I pulled up TWRP Codeworkx, which was successfully installed, then rebooted to the system, I was stuck in a bootloop. I went back to TWRP, and when I put in my pin it said it cannot mount the cache partition because it does not exist. However, when I am in TWRP and go all the way back to "/" I do see a "cache" folder.

So, what I did was I tried wiping cache and Dalvick it said it was successful. Here was the output:
Failed to mount '/cache' (Invalid argument)
Updating partition details...
Failed to mount '/cache' (Invalid argument)
...done
Full SELinux support is present.
Data successfully decrypted
Updating partition details...

Failed to mount '/cache' (Invalid argument)
...done
Wiping Dalvick Cache Directories
Cleaned: /data/dalvick-cache...
-- Dalvick Cache Directories Wipe Complete!
Formatting Cache using make_ext4fs...
Updating partition details...
...done


I think when the last few lines somehow fixed it, but I am not sure to be honest. Things seem to be working fine now. :victory: