Something recently broke Twrp so now I cant touch my /data partition, ive read that I need to format my phone to fix this issue, the problem is that a recent update from Lineage OS is what broke it I believe, and I updated from within LOS (check for new updates download and install) which auto restarted, so when I went to go back into TWRP to reflash Magisk I started getting the issue
So now I have no root, and no twrp abilities that I know off, which means I cant use a decent backup program
can anyone help?
EDIT: I don't know if they has any relevance but ADB does have root permissions,
EDIT 2: I found out that I can reinstall magisk VIA ADB Sideload from within TWRP, as such I now have root again
@foxtrotdragon: If you can get into TWRP then reflashing Magisk shouldn't be a problem. However, if /data is encrypted then Magisk may not flash, it needs to be able to place some files there. You'll lose everything on internal storage, but formatting /data is the only way forward.
If you can't boot into TWRP then the obvious solution is to reflash recovery from a PC.
AnonVendetta said:
@foxtrotdragon: If you can get into TWRP then reflashing Magisk shouldn't be a problem. However, if /data is encrypted then Magisk may not flash, it needs to be able to place some files there. You'll lose everything on internal storage, but formatting /data is the only way forward.
If you can't boot into TWRP then the obvious solution is to reflash recovery from a PC.
Click to expand...
Click to collapse
Getting into twrp is no issue, the issue is that TWRP cannot read the internal storage, it can read external fine, but fails to read internal storage, which means i cant flash anything, an reflashing twrp does nothing
im fine with reformatting the phone, but i need to backup my stuff first, which i can not do since no root
@foxtrotdragon: Unfortunately for you, backing up the contents of your internal storage is no longer possible, unless you can think of some ingenius method to decrypt without formatting. Formatting /data is your only option. In the future, you should make backups *BEFORE* disaster strikes.
Related
Hey guys,
I recently encrypted my phone for my work e-mails (the Exchange server required it). I made a complete Nandroid backup and also entire Titanium backup before encrypting, just in case something went wrong. But the encryption went beautifully.
However, I've noticed that I cannot mount /sdcard or flash anything from recovery. I can't update my Franco kernel or CM nightlies... It's a bit annoying because I want to keep flashing! lol.
My phone asks for my password everytime I reboot (in order to decrypt sdmount and mount the ROM), so I'm assuming this is the reason I can't mount it in CWM recovery.
Anyone know of a bypass or fix for this?
I don't really feel like restoring nandroid backup or doing a factory reset everytime I want to flash a new nightly, it just doesn't make any sense (besides I haven't even tried to see if I can restore from nandroid or factory resetting, they might not even work because it can't mount /sdcard?...)
I've searched around the forums for some complex solutions such as using ADB or Odin but I'm not interested in that.
Thank you!
UPDATED:
Ok guys so basically restoring from nandroid did not work because of the sdcard mount error.
I did a factory reset, erased all data and format system. But I couldn't format sdcard or even user data as it didn't have access... Basically the phone got bricked from then on and I had to completely restore back to stock bootloader/recovery/stock rom with adb/fastboot. Instructions are found here:
http://forums.androidcentral.com/nex...e-restore.html
Hopefully this will come to use to someone else. I've heard that TWRP does not have this sdcard mount problem with encryption as does CWM, so that's what I installed this second time around.
Why don't you just transfer the files regularly without entering recovery mode?
The recovery doesn't allow mounting to the PC. It just doesn't work.
Sent from my Nexus 4 using Tapatalk 2
scream4cheese said:
Why don't you just transfer the files regularly without entering recovery mode?
The recovery doesn't allow mounting to the PC. It just doesn't work.
Sent from my Nexus 4 using Tapatalk 2
Click to expand...
Click to collapse
I've never mounted to PC in recovery. My files are backed up on my computer and nandroid as well.
My issue here is that I can't regularly flash new nightlies (and thus mount internal /sdcard to do so) following the phone encryption.
Since my internal /sdcard path is encrypted with a password, CWM recovery can't bypass this and it gives me the error "cannot mount /sdcard".
bump?
Any help would be highly appreciated!
Is this a lacking feature in CWM Recovery? Have the developers looked in it? Or is there already a fix for this without doing an entire factory reset?
Daily bump.
Anyone there? (echo...)
Ok guys so basically restoring from nandroid did not work because of the sdcard mount error.
I did a factory reset, erased all data and format system. But I couldn't format sdcard or even user data as it didn't have access... Basically the phone got bricked from then on and I had to restore back to stock using this:
http://forums.androidcentral.com/ne...3923-guide-nexus-4-factory-image-restore.html
Hopefully this will come to use to someone else. I've heard that TWRP does not have this sdcard mount problem with encryption as does CWM, so that's what I installed this second time around.
If you want to recover the data from SD card, you do not use the SD card.
You can try to recover the data from the card with some specific software.
I will try to fin one I used before.
It will take few minutes... do not use the card.
cyrus_e said:
Basically the phone got bricked from then on and I had to completely restore back to stock bootloader/recovery/stock rom with adb/fastboot. Instructions are found here: ...
Click to expand...
Click to collapse
Many thanks, this link helped me restoring my Nexus 4. I enabled "encrypted storage" and wanted to root the phone and almost bricked it.
It's also possible to flash the stock recovery with odin, then do a real factory data reset and be able to install a custom rom, after (or before) which you can reinstall a custom recovery.
Hi everyone,
Just got my new G6, after much pain I managed to unlock the bootloader, install TWRP (v3.2.1.0) and to root it with SuperSU (stable release 2.82).
For now I'll keep the stock rom but I wanted to make a backup in case something went wrong with other tweaking I might do and I couldn't because TWRP couldn't "mount /system (device or resource busy)".
So I went into the mount menu and tried checking system but it just won't. I can mount it as read only but I can't mount it as writable.
If it's of any importance, I couldn't get magisk to install to root the phone and had to use SuperSU instead.
I could do the backup while mounting system as read only but I feel like it might be an issue in the future (for custom roms or even restoring the backup maybe ?) if I can't fix this issue.
So does anyone how to get TWRP to mount system as writable ? Thank you
Elvenstar said:
Hi everyone,
Just got my new G6, after much pain I managed to unlock the bootloader, install TWRP (v3.2.1.0) and to root it with SuperSU (stable release 2.82).
For now I'll keep the stock rom but I wanted to make a backup in case something went wrong with other tweaking I might do and I couldn't because TWRP couldn't "mount /system (device or resource busy)".
So I went into the mount menu and tried checking system but it just won't. I can mount it as read only but I can't mount it as writable.
If it's of any importance, I couldn't get magisk to install to root the phone and had to use SuperSU instead.
I could do the backup while mounting system as read only but I feel like it might be an issue in the future (for custom roms or even restoring the backup maybe ?) if I can't fix this issue.
So does anyone how to get TWRP to mount system as writable ? Thank you
Click to expand...
Click to collapse
Have you formatted data trough the dedicated option in TWRP? Format, not wipe, where you have to put "yes".
Anyway you can try with Melina's TWRP which solves many problems of the official one: https://forum.xda-developers.com/lg-g6/development/recovery-twrp-3-2-1-unofficial-fixes-t3722199
Killua96 said:
Have you formatted data trough the dedicated option in TWRP? Format, not wipe, where you have to put "yes".
Anyway you can try with Melina's TWRP which solves many problems of the official one: https://forum.xda-developers.com/lg-g6/development/recovery-twrp-3-2-1-unofficial-fixes-t3722199
Click to expand...
Click to collapse
I did try it once after the magisk install failed and I assumed it was because of that issue but I haven't tried yet with superSU correctly installed. Should I immediately try the backup after formatting or boot the phone once before ?
The issue I have with Melina's TWRP is that it's not compatible with fulmics and if I were to install any custom rom I think it would be that one (to keep stock camera mostly)
Elvenstar said:
I did try it once after the magisk install failed and I assumed it was because of that issue but I haven't tried yet with superSU correctly installed. Should I immediately try the backup after formatting or boot the phone once before ?
The issue I have with Melina's TWRP is that it's not compatible with fulmics and if I were to install any custom rom I think it would be that one (to keep stock camera mostly)
Click to expand...
Click to collapse
Format data, reboot recovery, and try to install magisk or mount system.
For Melina's TWRP it has NO problems with Fulmics, Zefie said that "officially" is not compatible because two users said that they have problems with that TWRP only with fulmics, i can assure you that with last version of both Melina's TWRP and Fulmics i never had problems like those two users, anyway you can try to use Melina's TWRP and if you have any problems just flash back the official twrp.
Killua96 said:
Format data, reboot recovery, and try to install magisk or mount system.
For Melina's TWRP it has NO problems with Fulmics, Zefie said that "officially" is not compatible because two users said that they have problems with that TWRP only with fulmics, i can assure you that with last version of both Melina's TWRP and Fulmics i never had problems like those two users, anyway you can try to use Melina's TWRP and if you have any problems just flash back the official twrp.
Click to expand...
Click to collapse
Alright so it's been a rough ride.
I formatted data, reboot TWRP and then indeed I was able to mount system as writable.
I then did my backup, which said it was successful and the only error it showed then was "unable to unmount /system"
I flashed magisk and rebooted into the normal system and the phone of course was back to factory settings and asked me my google account. Except that when I tried logging in it always showed me an error along the lines of "google play services keeps crashing". (making it impossible to get through the installation part of the system)
I'm not sure why that happened. I had frozen some apps but that shouldn't have been saved since I formatted data right ? and the phone was working perfectly fine before that.
But anyway I didn't really know what to do at that point so I just jumped the gun and downloaded and flashed fulmics.
It worked fine but only with supersu. For some reason magisk just doesn't want to get installed at all.
The rom itself worked fine but I had no root access by choosing magisk in the aroma installer so I wiped again and installed it again with supersu which works.
I also flashed xposed which is also working as intended.
So I'm all set for now I think.
Maybe when I need to wipe again I'll figure out why magisk doesn't work but for now I'm satisfied.
In any case, thank you for your help
Hi there, I have an Axon 7 with LineageOS that was working like a charm until I rebooted it today. It was in the normal lineage OS boot animation with the blue circle moving from right to left, except it never stopped. Now after trying a few more times, it just keeps playing the animation except the phone will vibrate slightly every several seconds. The phone is encrypted but that hasn't been a problem. When I reboot to TWRP, it says Unable to mount storage.
I tried wiping Cache and Dalvik / ART Cache, but this didn't help. Finally, I do have a backup from 7-20-2017 but I'd rather not have to go back to that...
Any recommendations?
Chrono7x said:
Hi there, I have an Axon 7 with LineageOS that was working like a charm until I rebooted it today. It was in the normal lineage OS boot animation with the blue circle moving from right to left, except it never stopped. Now after trying a few more times, it just keeps playing the animation except the phone will vibrate slightly every several seconds. The phone is encrypted but that hasn't been a problem. When I reboot to TWRP, it says Unable to mount storage.
I tried wiping Cache and Dalvik / ART Cache, but this didn't help. Finally, I do have a backup from 7-20-2017 but I'd rather not have to go back to that...
Any recommendations?
Click to expand...
Click to collapse
So you can't see the internal storage from TWRP? I'm guessing encryption actually plays a part here. Formatting data is probably the best course of action, though you should flash magisk or superSu if you do, to get rid of encryption. But you obviously lose everything that's on the internal storage.
Maybe make a system and boot backup and clean flash Lineage. Like, wipe system and caches, then flash the bootloader, modem, LOS and whatever else you flash
Choose an username... said:
So you can't see the internal storage from TWRP? I'm guessing encryption actually plays a part here. Formatting data is probably the best course of action, though you should flash magisk or superSu if you do, to get rid of encryption. But you obviously lose everything that's on the internal storage.
Maybe make a system and boot backup and clean flash Lineage. Like, wipe system and caches, then flash the bootloader, modem, LOS and whatever else you flash
Click to expand...
Click to collapse
Is it easier to just use the backup I have currently? If so, what are the steps necessary for that (sorry for newb questions, haven't messed with it in a while)
EDIT: Also, TWRP claims decryption is successful when it is loading up.
Chrono7x said:
Is it easier to just use the backup I have currently? If so, what are the steps necessary for that (sorry for newb questions, haven't messed with it in a while)
EDIT: Also, TWRP claims decryption is successful when it is loading up.
Click to expand...
Click to collapse
Again. Can you see the internal storage?
Don't restore the backup. Your problem is basically either on /system (clean flash of the ROM will do) or on /data (complete format of data is needed). So try the non destructive one first
Choose an username... said:
Again. Can you see the internal storage?
Don't restore the backup. Your problem is basically either on /system (clean flash of the ROM will do) or on /data (complete format of data is needed). So try the non destructive one first
Click to expand...
Click to collapse
I don't see any storage folder. So if I want to install the latest LOS and frankly just start from scratch, can I follow the guide here https://wiki.lineageos.org/devices/axon7/install#installing-lineageos-from-recovery starting from "Installing LineageOS from recovery"? Will I still need to install something to wipe the encryption?
Chrono7x said:
I don't see any storage folder. So if I want to install the latest LOS and frankly just start from scratch, can I follow the guide here https://wiki.lineageos.org/devices/axon7/install#installing-lineageos-from-recovery starting from "Installing LineageOS from recovery"? Will I still need to install something to wipe the encryption?
Click to expand...
Click to collapse
What? No... That's for normal phones. How did you manage to install LOS without knowing that you need the univ. bootloader and modem?
So, you can't access the internal storage via the file manager on TWRP i'm guessing.
Wipe - Format data, after that flash the Universal bootloader, modem, LOS, Magisk, GApps. Magisk takes care of dm-verity and disables encryption. Don't try to uninstall it though or your internal storage will get encrypted as soon as you do. But if you want to change ROMs you can just fpash it before booting and it won't ger encrypted.
So, after a few months on Oreo I clean flashed DotOS Pie last night, got the whole thing set up and tried to encrypt phone. It now bootloops, but I can get to TWRP, which shows me a pattern to decrypt data, even though my phone had PIN lock. I did the trick to "translate" between PIN and pattern grid. TWRP shows me "data successfully decrypted, new block device: '/dev/block/dm-0'", but I can't mount /data (consequently can't mount /sdcard), though I can mount /system. TWRP's console shows "Failed to mount /data (Invalid argument)".
I know I can just format /data on the wipe menu to get rid of encryption, but since I don't have a backup of /sdcard, I would like to know if there is any way to get /data mounted again so I can backup my internal storage before formatting /data.
If it makes any difference, my TWRP version is 3.2.1-0, latest one available at twrp.me. I heard that 3.2.1-1 handles encryption better (even better than more recent versions on some devices), but it's not available on the official site.
--Other details that might be relevant, but I'm not sure:
1. I do have TiBu's backup on my computer, so if I must restore my apps I'm fine with it (though I don't have a backup of the whole internal storage);
2. I also have a Nandroid backup of /system, /data and /boot, but it's on the phone storage only;
3. Last, but not least, I have flashed latest Magisk just before encrypting the device.
I saw some stuff related to a no-verity encryption zip file to be flashed via TWRP in some discussions regarding other devices, would it be of any help in my case?
@anupritaisno1 sorry to bother you, but you're the one person to ask for help with TWRP on OP2. Could you lend me a hand here? Would your enhanced TWRP help in my case? I know one shouldn't restore backups made with one version of TWRP within another version, and also that the tempcache stuff needs to be set up to flash ROMs. My plan here, if this could help, was to see if your enhanced TWRP can successfully decrypt my /data and internal storage, then I would back up my internal storage to my computer and either set up tempcache or reflash official 3.2.1-0 to format data and flash the ROM again.
Thanks in advance.
Hi guys,
I'm not newbie with flashing but this one I don't understand.
Probably I've done some mistakes with flashing/install/uninstall of roms/magisk/twrp.
Now I'm stuck with TWRP and can't boot into system because of something.
Every time I run TWRP and try to install all my files are encrypted, no matter I install TWRP by .img or .zip. Only working TWRP with decryption is temporary one, by "fastboot boot twrp-3.3.1-6-fajita.img" command. But when I flash it by regular .img file by this tut (https://forum.xda-developers.com/on...overy-unofficial-twrp-touch-recovery-t3861482), after reboot it's back like 3.3.1-6-fajita version, BUT without decryption skills.
I thing I done some mistakes with uninstalling magisk ect. but I think it doesn't matter.
I tried to uninstall magisk by Magisk-uninstaller-20190204.zip on both slots, I tried install all again in regular way (install temp TWRP through fastboot command, install TWRP through this temp TWRP, install full newest OTA .zip, install TWRP again (I know I shouldn't but I tried both combinations - .zip and .img) and install Magisk and at least system reboot. But when I rebooted between OTA and Magisk (like guide tells) TWRP can't decrypt files. No matter what I've done nothing helped.
What can I do that I have not done yet? Of course, all is about I don't want format my data and re-install all from the scratch...
So... tell me, is possible to make TWRP great again?
Is everything only showing as encrypted when you try to restore a backup? I've been booting the img via fastboot then flashing the zip as it seems you have and it's been working fine as far as it staying installed and not showing all my files as scrambled, I also made the mistake of using Magisk uninstaller at one point, that didn't end well. Seems these A/B phones are temperamental as hell. I read somewhere else that doing backups to USB storage my be more reliable for a backup restoration, not sure if that would effect the encryption issues or not but I may have some time to test that tonight.
I've done that too - not helped. I restored my full nandroid backup by fastboot temp recovery (as I wrote, only this one can decrypt my files) but I've got "You device is corrupt"... and of course TWRP can't decrypt my files.