TWRP fail to mount internal storage - OnePlus 5 Questions & Answers

Recently I installed nitrogen os, everything work fine. the problem is when i boot into twrp, it only can mount system and cache. I cannot format data in twrp. I tried to install different version of twrp but the result is the same. Anyone know how to fix it?

This is known, it's some bug in the Oreo builds of some ROM. This method will wipe all your data, including your internal storage: Go to fastboot mode, and type in: fastboot format userdata, then wait for it after that you can flash any ROM again. Good luck :good:

Thx a lot

Internal storage Mount in twrp
Same issue I'm having RR Rom i use

Related

TWRP won't remove encryption

Hello everyone,
I am running 3.0.2-2 on the SM-G935FD and for whatever reason TWRP won't wipe the encryption, thus I cant read the internal SD card. I am getting the " /data mount" error.
I have done the advanced wipe and cleared everything except the external SD, am I using the wrong TWRP? any ideas?
You must wipe data! Wipe it all internal storage!
Sent from my Blackberry Bold
I had same issue on G935F. Try advanced and format data in twrp. The option where you have to type yes. If not then flash stock recovery, factory reset and boot into download and flash twrp before booting into system to flash dm-verity zip.
dude9946 said:
Hello everyone,
I am running 3.0.2-2 on the SM-G935FD and for whatever reason TWRP won't wipe the encryption, thus I cant read the internal SD card. I am getting the " /data mount" error.
I have done the advanced wipe and cleared everything except the external SD, am I using the wrong TWRP? any ideas?
Click to expand...
Click to collapse
...have you tried cursing/threatening/random acts of violence on inanimate objects? no? well BEFORE you do, advance wipe, wipe system/data/etc, reboot, or there are ways to reformat as ExFat with a PC too.

Reduced internal storage to about 450 mb after installing twrp.

I installed twrp using adb in my lenovo k4 note (A7010a48) after which the internal memory of my device reduced to 450 mb from 16 GB and I installed official resurrection remix in it. Though the storage option from settings shows 16 GB memory out of which 14 GB is used by system while in twrp it shows only 450 mb. Now due to this I would like to reinstall my stock ROM and stock recovery and get my storage and volte back. Please tell me if there are any ways. Also when I try to open my recovery there is a black screen only. Thanks in advance.
Actually that happened for me too.. I found that it happens when I unlock the bootloader, boot to recovery , deleting "boot_from_recovery.p" and WITHOUT flashing super su nor booting to system, directly flashing any other twrp recovery or wiping the Dalvik cache, system, data, the recovery finds our sdcard (internal storage) partition as 774 MB or in your case 450 MB. So to get rid of these things, flash s232 firmware again unlock bootloader, boot to recovery, delete the file "boot from recovery.p", flash SuperSU, clear Dalvik cache and cache, let the phone boot to system ( normal startup) and then reboot to recovery and voila! You will find internal storage as usual .:good:
Vijay Jadaun said:
I installed twrp using adb in my lenovo k4 note (A7010a48) after which the internal memory of my device reduced to 450 mb from 16 GB and I installed official resurrection remix in it. Though the storage option from settings shows 16 GB memory out of which 14 GB is used by system while in twrp it shows only 450 mb. Now due to this I would like to reinstall my stock ROM and stock recovery and get my storage and volte back. Please tell me if there are any ways. Also when I try to open my recovery there is a black screen only. Thanks in advance.
Click to expand...
Click to collapse
perform factory reset in twrp recovery, to fix that issue
akurativinod said:
Actually that happened for me too.. I found that it happens when I unlock the bootloader, boot to recovery , deleting "boot_from_recovery.p" and WITHOUT flashing super su nor booting to system, directly flashing any other twrp recovery or wiping the Dalvik cache, system, data, the recovery finds our sdcard (internal storage) partition as 774 MB or in your case 450 MB. So to get rid of these things, flash s232 firmware again unlock bootloader, boot to recovery, delete the file "boot from recovery.p", flash SuperSU, clear Dalvik cache and cache, let the phone boot to system ( normal startup) and then reboot to recovery and voila! You will find internal storage as usual .:good:
Click to expand...
Click to collapse
Is there any way I can skip flashing the firmware and do this with the custom rom installed? Also, where is the "boot_from_recovery.p" file located? xda says /system but I can't find it there.
dubdex420 said:
Is there any way I can skip flashing the firmware and do this with the custom rom installed? Also, where is the "boot_from_recovery.p" file located? xda says /system but I can't find it there.
Click to expand...
Click to collapse
Try factory resetting from twrp as mohan mentioned above.. if it did not worked, probably that's the only way.
Figured out how to get rid of this issue: After installing stock rom, unlocking bootloader and flashing TWRP through ADB: you have to reboot into system (stock ROM), go through the setup and only then are you able to go back into TWRP to wipe and flash the custom ROM of your choice (in this case RR, without having full internal storage).
regarding internal storage issue
Is your solution will fix my internal storage problem
Fixed it for me so yes
While flashing RR, I also ended up in the same position. Here's how I fixed it:
1) Post flashing RR, goto bootloader and flash recovery-mohan-n.img
2) reboot to recovery
3) click on wipe and then select format data (option next to advance wipe).
4) Once format is complete, go back to main screen and Reboot to system.
Hence the problem shall be resolved.
PLS HELP!!!
pkimtani said:
While flashing RR, I also ended up in the same position. Here's how I fixed it:
1) Post flashing RR, goto bootloader and flash recovery-mohan-n.img
2) reboot to recovery
3) click on wipe and then select format data (option next to advance wipe).
4) Once format is complete, go back to main screen and Reboot to system.
Hence the problem shall be resolved.
Click to expand...
Click to collapse
I formatted it now i have more space free.....But internal storage is not detected.....I cannot take screenshots and all ....i cannot open camera ....and when i open file manager its failing to detect internal storage.........

How to really clean my phone before a new flash?

Hello everyone.
Usually I just format things through TWRP and flash a new ROM, but I found the following in a Nexus 6 thread:
As to what I usually do for a really clean install (likely overkill):
Reboot to Bootloader
Wipe everything (fastboot erase all)
Do flash-base.sh from latest factory image (this reflashes modem partitions; this is required after erase all)
Boot to Recovery
Wipe everything from TWRP
Reboot to Recovery
Wipe everything again from TWRP (old habit from when the first wipe didn't actually get rid of everything on older devices)
fstrim Data, Cache, System, and Firmware partitions
Reboot to Recovery
ROM
GApps (I don't use GApps, but if I did, this is when they are to be flashed)
Reboot to Recovery
Wipe everything except System from TWRP
Format Data and Cache to F2FS
fstrim Data and Cache partitions
Reboot to Recovery
Kernel
Magisk
Reboot to System
Do set-up and copy files over to device
Reboot to Recovery
Wipe Dalvik Cache (I guess the button in TWRP would work; I do rm -Rf /data/dalvik-cache)
Use filesystem tools to check and repair partitions (e2fsck for ext4 being System and Firmware partitions, and fsck.f2fs for F2FS being Data and Cache partitions)
fstrim Data, Cache, System, and Firmware partitions
Reboot to System
Click to expand...
Click to collapse
Is there anything similar for Moto G5 Plus? I would really like to make a deep cleanup in my phone before flashing a new ROM.
Thanks in advance.
vitorsubs said:
Hello everyone.
Usually I just format things through TWRP and flash a new ROM, but I found the following in a Nexus 6 thread:
Is there anything similar for Moto G5 Plus? I would really like to make a deep cleanup in my phone before flashing a new ROM.
Thanks in advance.
Click to expand...
Click to collapse
Except part 1: flash-base.sh from latest factory image (we have no factory image) you can do everything on the Moto G5+ too.
The question is if that is really needed.
Wiping twice with TWRP isn't necessary anymore but you can do it if you want.
fstrim isn't really needed imo, but you can do it from terminal if you want.
And checking the partitions for errors may be a good thing but if the partitions are faulty you would recognise it when you try to flash anything. But this is a thing you can do too if you want to.
You can find the exact usage of the commands for fstrim and e2fsck and fsck.f2fs by googling for it.
If I want to be sure that everything is cleaned up I wipe all partitions except external SD with TWRP, reformat data (you'll have to do that as the F2FS formatted data partition is encrypted) and flash my usual stuff like ROM, gapps, kernel, magisk etc.
Sent from my Moto G5 Plus using XDA Labs

Formatting data in twrp and flashing magisk(H870)

Hey,I have a few questions about formatting data in twrp. Every custom recovery I've tried has issues with decrypting storage and mounting it. So my questions are:
1. If I format data in twrp(in order to enable it to mount storage) and than flash Magisk will I loose encryption permanently or will it re-enable itself after booting to system?
2. Can I flash Magisk from sdcard without mounting internal storage or will it mess up the device/not work at all?
I don't want to flash Magisk or custom roms unless I can keep encryption. Thanks for help.

Unable to flash TWRP Backup from OTG and adb sideload too. please help

Hi, i am a novice. I am using potter with the latest PE+ ANDROID 10. I was not getting VoLTE and someone suggested revert to stock ROM and flash PE again. I took a backup and wiped everything (system, data, dalvik, cache). it was successful and when i tried to restore the stock backup i have based on android 8.1 (last update by Motorola) I ran into errors like unable to mount system and i wiped the internal storage in the process by mistake and i tried to RESTORE the same 8.1 file through OTG but the same error came. I tried changing storage type in wipe --advanced wipe and it didn't help. I am unable to use ADB sideload too. I am just stuck at TWRP with no data in internal storage. when i try to put the backup into the internal storage thpurh PC it throws a error saying the file is larger than the device limit (specifically while copying system file that is 1.5 GB). what should i do now, what happened to my potter? please help me come out of this.:crying::crying:
Solved
Please close the thread as closed.

Categories

Resources