TWRP unable to mount memory even after wipe - Android Q&A, Help & Troubleshooting

Hi,
I have a Xiaomi Redmi Note 5A, and I installed TWRP and Magisk on it 6 months ago, and all was working fine until the last update of MIUI that was installed just yesterday. After that, Magisk had no more root access and TWRP was no more here. At this point I flashed again TWRP with ADB, and after rebooting on recovery, TWRP launched but it was unable to mount any memory, so I could not flash any file. After several tries and researchs on forum I ended up to wipe memory (also changing format file from EXT4 to EXT2 then back to EXT4). After that TWRP sees effectively the memory but I can't still flash any file as I just wiped memory. So I have to reboot on system to put files on the memory: doing that I have first all the different screens steps to setup MIUI from scratch. When all the phone is configured, I reboot in fastboot to flash again TWRP, then I reboot on recovery, and again TWRP is unable to mount memory. I tried this several times and tried many other things (removing the patern lock, setting just a PIN...) but nothing worked so far after several hours searching...
If anyone could help, I would really appreciate it. Thanks in advance!

Ok, I finally solved it. Here is what I have done:
First I strictly followed instructions from this tutorial:
Fix Unable To Mount Storage TWRP: If you are trying to factory reset your device using twrp recovery and it’s displaying unable to must data then follow the below instructions.
First off all remove pattern lock from device and add PIN lock/password as a security lock as shown in above method.
Still getting “unable to mount storage twrp error” then go to main menu of twrp recovery.
Click on “WIPE” option >> “Advance Wipe” >> select “Cache” >>click on “Repair or Change File System” >> “Change File System” >> click “F2Fs” and “swipe to Change”
Again Go back and select >> “EXT4” option >> “Swipe To Change”
Now repeat the same process with “System” option and “Data” option one by one.
After doing that you are free to wipe or factory reset your device without any TWRP error. This time it will not show the unable to mount storage in TWRP recovery.
Click to expand...
Click to collapse
Note that it wiped everything even OS.
So I downloaded the latest official ROM from MIUI website, and I copied the file to the phone with USB mass storage mode (still being in TWRP). I also put the LazyFlasher zip and Magisk zip. Then I installed the 3 zips at the same time, ROM first, LazyFlasher second, Magisk third.
After rebooting, and reconfiguring the phone, all works fine.

Related

[Q] Issue upgrading from CM9-stable to CM10-nightly + encrypted /data

Hi,
Well, I guess I did a nice one...
My TF201 is unlocked, with TWRP v 5.8.3.4 as recovery. I was running so far CM9-stable RC. Please note my /data folder is encrypted using Asus inbuilt tool and I already experienced issue with it previously.
Unfortunately I faced a lot of crashes using CM9 (even following cache cleaning, removing Apps, and so on). Therefore I decided to give CM10-nightly build (v. 20130310) a try.
I first made a nanodroid backup of the whole system using TWRP ; on my internal SDCard. And I did not get this specific backup on any other support.
Downloaded all the stuff (CM10-nightly + GoogleApps) on my internal SDCard and... let's go :
1 – Using TWRP : first decrypt /data at startup → OK
2 – Using TWRP : factory reset + wipe dalvik cache → OK
3 – Using TWRP : install CM10.zip + GoogleApps.zip from the (decrypted) SDCard → OK
4 – Reboot : get stuck on CM10 splash screen (I tried to reboot several time without any success)
5 – Reboot, and great idea, reboot to bootloaded mode (vol. Down key pressed) and... “wipe data” →... OK (Step 5 was done without giving my password to decrypt /data just 'cause it has just never been asked !! And I guess I was tired...)
6 – Finally, CM 10... well... “running”
From now on, I am able to access CM10, but :
- CM10 does not ask me for my PIN during startup in order to decrypt /data (CM9 used to do it)
- (of course) CM10 can not access /data or internal SDCard
- At least but not last... I can not anymore access my SDCard from TWRP (my pass is not recognized anymore). Meaning I can not access my Nandroid backup
My guess is
I- I formated /data in step 5
II- ...but I therefore destroyed all data
III- ...including the passkey...
Any help would be (more) than welcome! I still have an ADB access to the Prime, but I do not want to make anymore (stupid) mistake
(And I confessed, I am more used to Linux system than Android.)
Regards
Stupid thing, stupid solution...
Used TWRP to format /data (this app deals pretty well with encryption by the way!) > OK
Reboot to CM 10 just to be sure > much better!
Put Gapps on the SD card, now readable > reboot to recovery
Using TWRP, format cache and Install Gapps from the internal SD (couldn't be install at the first attempt as /data was encrypted andtherfore unmounted)
Reboot, and now CM10 rolls!
What I have learned:
Always backup data before to start (my TF201 is sync on Google servers)
Backup your ROM before to start (Ok, I did it... but)
Better, back it up on AN EXTERNAL media (or backup the backup...)
Read, read, and read AND backup, backup, backup...

[Q] Removed my OS from HTC One S Can't Mount SD Card to Computer from Recovery

Hey everyone last night I rooted my phone and this morning I attempted flashing a ROM called ViperOneS that you can look at here -->http://forum.xda-developers.com/show....php?t=2105863. So in order to install it the OP wrote in the instructions to factory restore the phone which I did. When I cleared the cache and everything and went to install it TWRP said it failed so I just erased it. Then when I went to reboot it was stuck on the screen with the red writing so I rebooted it in Recovery and it said there was no OS installed. I looked for this problem online and found that if I mounted the phone to my computer I could copy and paste a new ROM for my phone which I eventually tried to do but for some reason it does not allow me to check off either of the boxes next to "Mount SD Card" or "Mount Internal." It does let me mark all the other boxes. Could somebody explain what I should do so the computer recognizes the phone as a "Removable Disk" like it used to so I can just drag and drop a new OS into my phone and put this thing behind me already? If you can't tell already I'm a newby at this stuff so if you can make simple steps that'd be great. Thanks in advance.
try this:
1-flash recovery again (fastboot flash recovery recovery) or change to CWM
2-erase dalvik cache and cache
3-connect as mass storage via recovery
---------------------------------------------------------------------
remember always have a backup of your system specially when is your first rom

[Q] need to bring a file to the phone, no ROM installed

I've attempted to flash a newer version of cyanogenmod on my phone (10.1.3 to 11). I'm using TWRP 2.6.1.0
I can not boot because I've wiped the phone (dalvik, system, data, internal storage, cache), and I suspect the ROM I have is corrupted but I can't connect it to my computer and transfer the file via USB because I have no ROM installed and can not boot. I also can't take the SD card (since there's non) and put the file that way.
My phone is Oppo find 5
My root file flashing was successful, but installation of the ROM cm-11-20140204-NIGHTLY has failed. I assume the file was corrupted, but I have no way to find out what it is.
I now realize my mistakes, like wiping the system unnecessarily.
Is there any way to get another file on the device? any other suggestions?
Also, I'm not sure if this is the correct place to post this, but I was not able to find the right place. I apologize in advance.
Eyal,
http://forum.xda-developers.com/showthread.php?t=2141817
Check that thread, set up adb and push a ROM to the internal sd of your phone via adb. You can use adb in recovery mode (I could in CWM, dont know about your recovry) so if you can boot into recovery, you can push the rom. (There is info on the thread about adb pushing/pulling)
Sent from my GT-S5660
Cwm has an option to mount storage to PC in mounts & storage menu
Check if twrp has the option
You can mount it that way:good:
vneogi199 said:
Cwm has an option to mount storage to PC in mounts & storage menu
Check if twrp has the option
You can mount it that way:good:
Click to expand...
Click to collapse
it doesn't seem to recognize anything.

[GUIDE] Factory Reset Encrypted Device

THIS PROCESS WILL ERASE ALL YOUR DATA
I encrypted my HTC ONE MAX last day and because of TWRP error in decrypting my partitions,Like:
Code:
Mount /SYSTEM.error
Mount /DATA error
I decided to decrypte my phone but as I said, TWRP recovery Didn't found any partion on my internal strong.
The solution is simple :
1.Download stock HTC stock recovery :
Stock Recovery Sense 6 - Latest
Stock recovery 3.23.401.1 (Google Drive Download Link) (it's for international version - Find more in other threads)
2.Boot into bootloader -> Fastboot
Use your ADB :
Code:
fastboot flash recovery recovery_t6ul-3.23.401.1.img
3. Go to your Setting -> Backup & Reset and Reset Your device
your device will reboot and recovery will ERASE ALL YOUR DATA
Now You have Non-encrypted Device
4.in final step you could flash TWRP again Like:
Code:
fastboot flash recovery twrp-2.8.7.0-t6ul.img
Another option is using TWRP...
Go into the Wipe settings,
Select Format Data,
Type Yes when prompt
And when is complete, complete a Factory Reset under the Wipe settings.
Don't forget that it will wipe internal storage so you will need to have a copy of the ROM on the external storage to flash..
tapPeD from my haNdhEld cOmpuTeR
andrewjt19 said:
Another option is using TWRP...
Go into the Wipe settings,
Select Format Data,
Type Yes when prompt
And when is complete, complete a Factory Reset under the Wipe settings.
Don't forget that it will wipe internal storage so you will need to have a copy of the ROM on the external storage to flash..
tapPeD from my haNdhEld cOmpuTeR
Click to expand...
Click to collapse
When your device is encrypted, TWRP Can't mount your internal storage!
It should decrypt with stock recovery first...
e12ror said:
When your device is encrypted, TWRP Can't mount your internal storage!
It should decrypt with stock recovery first...
Click to expand...
Click to collapse
It does when you format the data.. I was encrypted and read this technique in a separate HTC forum.
tapPeD from my haNdhEld cOmpuTeR
andrewjt19 said:
It does when you format the data.. I was encrypted and read this technique in a separate HTC forum.
tapPeD from my haNdhEld cOmpuTeR
Click to expand...
Click to collapse
I tried all that ways, even adbshell, but it was the only way!
But thanks for your notice...
please help
I'm in this problem
my device got encrypted
i cannot flash any rom any recovery
i were using nusensesix rom
with CWM 6.0.4.8
MY HBOOT IS 2.49
S-ON
t6u
803e black one max
tampered unlocked
emmc looks alive
device boot to rom but give me message DECRYPT STORAGE
and when it reset phone it goes to cwm recovery and when i try to wipe
it wipes everything except DATA partition
giving me error:
Code:
[HTML]ERROR MOUNTING /DATA
SKIPPING FORMAT
E: UNKNOWN VOLUME FOR PATH [ /SD-EXT]
ERROR MOUNTING /SDCARD/.ANDROID_SECURE!
SKIPPING FORMAT[/HTML]
when flashing stock recovery or twrp it reboots again to cwm recovery
i got mad with all these errors
please try to help me to figure out this problem and solve it .

Problem installing magisk-cant access internal memory from twrp

Hi all, I need a little help, I've unlocked bootloader and installed twrp recovery (that's wiped data on the phone and I've reinstalled apps and accounts).
The guide i was following ask to reboot and boot twrp recovery (working) and to install magisk zip file copied from PC to internal memory
I copied magisk in internal memory (root and download folders) but in TWRP I can't see the storage i get from PC, only different folders.
I tried also adb sideload D:\Android\Magisk-v21.2.zip directly from PC but i get errors on mounted file systems yrying to install files i think, I tried to check and mount file systems in TWRP advanced options but I can't mount them ...
How can I install Magisk ?
Thanks for help
blackalex1 said:
Hi all, I need a little help, I've unlocked bootloader and installed twrp recovery (that's wiped data on the phone and I've reinstalled apps and accounts).
The guide i was following ask to reboot and boot twrp recovery (working) and to install magisk zip file copied from PC to internal memory
I copied magisk in internal memory (root and download folders) but in TWRP I can't see the storage i get from PC, only different folders.
I tried also adb sideload D:\Android\Magisk-v21.2.zip directly from PC but i get errors on mounted file systems yrying to install files i think, I tried to check and mount file systems in TWRP advanced options but I can't mount them ...
How can I install Magisk ?
Thanks for help
Click to expand...
Click to collapse
You must copy files from PC to /temp folder
FSadino said:
You must copy files from PC to /temp folder
Click to expand...
Click to collapse
I don't have a temp folder, only Alarms, Android, DCIM...., Ringtones and Whatsup folders, should I create it ? Then i can see it in twrp ?
By the way upgraded twrp to 3.4.0.2
Tried to create temp but I can't see It obvously in twrp as the rest of the folders, only mounted filesystem is metadata
go in twrp to advanced wipe --> format data partition to ext2 --> wait --> when done format back to ext4 --> wait --> now see if your OS recognizes the USB android device. try usb replugging if not --> now you should see a new partion where you can write in your file explorer on HOST OS.
n3tk1d said:
go in twrp to advanced wipe --> format data partition to ext2 --> wait --> when done format back to ext4 --> wait --> now see if your OS recognizes the USB android device. try usb replugging if not --> now you should see a new partion where you can write in your file explorer on HOST OS.
Click to expand...
Click to collapse
Ok since It is wiping data partition and I'm under mobile connection I'll do this in the next couple of days back home. Just to confirm, I can see internal memory partition from host OS without problems, I can copy files from OS to mobile. The problem is that rebboting in recovery TWRP I can't see FROM MOBILE that partition and folders, so I can't access magisk file I copied ...
With your suggestion do you mean that the new formatted partition is visible both in TWRP and OS ?
blackalex1 said:
Ok since It is wiping data partition and I'm under mobile connection I'll do this in the next couple of days back home. Just to confirm, I can see internal memory partition from host OS without problems, I can copy files from OS to mobile. The problem is that rebboting in recovery TWRP I can't see FROM MOBILE that partition and folders, so I can't access magisk file I copied ...
With your suggestion do you mean that the new formatted partition is visible both in TWRP and OS ?
Click to expand...
Click to collapse
Which guide are you following?
Hw4ng3r said:
Which guide are you following?
Click to expand...
Click to collapse
I found many and they are all similar...
- Unlock boot loader
- Install recovery TWRP
- Reboot in recovery (sometimes from phone other guides from image on PC)
- install magisk copied from OS from twrp recovery
Everything is clear except for I can't access the data partition from TWRP in the last step so I can't see the copied magisk file and I can't mount the partitions in TWRP (i get an error)
A couple of guides:
Root OnePlus 7T Pro (hotdog) and Install TWRP Recovery 3.4.0 (androidweblog.com)
Download Latest Magisk zip 21.2 and Magisk Manager 8.0.4 and Root your phone (getdroidtips.com)
In the second one they use the sdcard partition but I don't have sdcard on 7T Pro ...
You can point me to a different method if available to get magisk installed ...
Thanks for the help
blackalex1 said:
Ok since It is wiping data partition and I'm under mobile connection I'll do this in the next couple of days back home. Just to confirm, I can see internal memory partition from host OS without problems, I can copy files from OS to mobile. The problem is that rebboting in recovery TWRP I can't see FROM MOBILE that partition and folders, so I can't access magisk file I copied ...
With your suggestion do you mean that the new formatted partition is visible both in TWRP and OS ?
Click to expand...
Click to collapse
so when you do as i said you are in twrp cos you booted to it. twrp will read and be able to access your phones storage. you are not wiping the data partion but are formating it to ext2 and then back to ext4 (still do backup as data will be lost). this enables twrp to circumvent the oxygen decryption / format. NOW and only AFTER THAT dont reboot (dont), but now your HOST can copy the desired magisk to the phone that is still in twrp RECOVERY MODE. Thus you can now install it with twrp since twrp can now access and read the recently copied image. anyways i wont do it. i used a patched magisk image. was the only thing that ultimately worked for a clean rooting and it didnt even unlock the /system_boot and /vendor partions but it works. find in the oneplus 7t pro guideds forum topic your corresponding magisk image and flash it to disk with fastboot flash boot magisk-patched.img. that worked pretty well when you use the right android version 10.0.x.etc.
actually, wtf do i know. i just followed this thread:
[Guide] How to Root OnePlus 7T Pro with TWRP
thanks for this detailed root process, I've been looking for this for around 3days. (my OP7t pro is coming today will try this root method)
forum.xda-developers.com
Clearly stated in the TWRP thread, decrypting OOS is not working. And I wouldn't even bother formating data.
In order to flash zip is TWRP you most execute;
"adb push magisk.zip /cache",
then in TWRP go into that folder and flash the file.
Or you can do patched image method, you can find guides in guides section.
Some basic researching would also help.
Lossyx said:
Clearly stated in the TWRP thread, decrypting OOS is not working. And I wouldn't even bother formating data.
In order to flash zip is TWRP you most execute;
"adb push magisk.zip /cache",
then in TWRP go into that folder and flash the file.
Or you can do patched image method, you can find guides in guides section.
Some basic researching would also help.
Click to expand...
Click to collapse
PERFECT thank you very much, got only a couple of warnings at the end:
failed to mount /system_root (permission denied)
failed to mount /vendor (permission denied)
But It seems correct.
I will check for patched image to better understand what is tha advantage compared to the standard one.
blackalex1 said:
PERFECT thank you very much, got only a couple of warnings at the end:
failed to mount /system_root (permission denied)
failed to mount /vendor (permission denied)
But It seems correct.
I will check for patched image to better understand what is tha advantage compared to the standard one.
Click to expand...
Click to collapse
Those errors are nothing to worry about since it's not possible to modify those partitions on stock.
I tried rooting my lenevo tab M10 hd and flashed a incorrect boot img as I am new to rooting and bricked up my device then from some where I got the correct boot img and recovered my device but now I am unable to use its internal storage , its shows some random letters when I open the file manager can you guys help me out resolving this issue.

Categories

Resources