PRO TIP if you can't get cache to mount on twrp - Xperia Z3 General

So, after about an hour of bootloops, command lines and downloading ftf files, I figured out that the thing you need to do is just select Cache from the advanced wipe menu and click repair then click format then click on ext4. After that, my phone booted up again and it is all fine and dandy.
If this did not help, just use flashtool. I have learnt that with the resources that Sony and other developers give you, your phone can never be truly bricked.

Related

Can't wipe Dalvik-cache from Recovery?

It gives me an error "Run 'wipe dalvik' via ADB.
Should I be able to run it from the recovery? I suspect my recovery ROM copied incorrectly. Is there any way I can reflash the ROM without doing a factory reset and re-rooting.
If not, then will doing a factory reset via Recovery work? And will the phone need to be reprogrammed to work on Sprint with my number, etc?
Thanks!
fatkitty420 said:
It gives me an error "Run 'wipe dalvik' via ADB.
Should I be able to run it from the recovery? I suspect my recovery ROM copied incorrectly. Is there any way I can reflash the ROM without doing a factory reset and re-rooting.
If not, then will doing a factory reset via Recovery work? And will the phone need to be reprogrammed to work on Sprint with my number, etc?
Thanks!
Click to expand...
Click to collapse
Go download the 1.5.2 recovery ROM, flash it the same way you did the original instructions are there. If you still have the issue, post back.
I have had simaler problems in the past and sometimes I was able to just reboot the system and use the fresh kitchen go to create nandroid backup in the kitchen it used adb to reboot into recovery and then everything worked fine after that.
on the other hand there have been a couple times where I just had to bite the bullet RUU and reroot then flash a backup.
hope this helps a little
dam KCarpenter you lurk here as much as I do. lol
wtphoto said:
dam KCarpenter you lurk here as much as I do. lol
Click to expand...
Click to collapse
HAHA Refresh every hour or so lol.
But I was reposting to say that you should try to wipe from the pre kitchen and see what happens there.
I re-pushed and flashed 1.5.2 recovery. I still get the "run wipe davilk from ADB" error when trying to wipe it from within the recovery rom.
What do you mean wipe it from pre-kitchen? Could someone please post some instructions.
Is there a command to run it via CMD?
I have never had it work.. even on multiple Heros. and MANY Recover re-loads
tyrnight said:
I have never had it work.. even on multiple Heros. and MANY Recover re-loads
Click to expand...
Click to collapse
I get force closes on any update I do. I thought clearing the cache fixes this problem?
If not can someone point me to instructions on starting from scratch? I would like to factory reset it but I need to know if I'll have to re-activate the phone to work on Sprint, or if it just works?
They are talking about on the Fresh Pre Kitchen 0.2 . Also if you do a wipe you will not have to activate the phone it will just reinstall the OS. I actually clearfed rteh cache using the pre-kitchen and it works fine now
athlet1c said:
They are talking about on the Fresh Pre Kitchen 0.2 . Also if you do a wipe you will not have to activate the phone it will just reinstall the OS. I actually clearfed rteh cache using the pre-kitchen and it works fine now
Click to expand...
Click to collapse
I see. I just factory reset my phone.
Now the question is; since I still I have my recovery ROM do I still need to root the phone again?
fatkitty420 said:
I see. I just factory reset my phone.
Now the question is; since I still I have my recovery ROM do I still need to root the phone again?
Click to expand...
Click to collapse
Oh, so I did a factory reset, re-rooted the phone, and installed Modaco's newest custom ROM.
I'm still getting force closes.
If I clear the cache will it fix the errors?
it depends if you just used the wipe data/factory reset in the recovery menue or if you actually used the RUU to reflash back to stock. if you used the RUU then yes you will have to reroot if you just used the recovery menue then no you will not have to.
wtphoto said:
it depends if you just used the wipe data/factory reset in the recovery menue or if you actually used the RUU to reflash back to stock. if you used the RUU then yes you will have to reroot if you just used the recovery menue then no you will not have to.
Click to expand...
Click to collapse
Great, I think I have this figured out now.
I went ahead and used Fresh's pre-Kicthen. It seems to be working great now.
Thanks guys!
Np good luck
and remember if you like any of flipzmode's stuff visit his site www.geekfor.me and help him out by either donating or at least click the adds
wtphoto said:
Np good luck
and remember if you like any of flipzmode's stuff visit his site www.geekfor.me and help him out by either donating or at least click the adds
Click to expand...
Click to collapse
I read "at least click the adds" wrong in my head and it turned out someting really dirty...
I have some problems.
I can not wipe cache and after install ROM I've got 'Force Close' apps.
How can I resolve that issues? I install again ROM and still ocurs errors.
Pls give me instructions what I must do.
Thanks
Why was I referred to this as a fix? For one, the command isn't even posted. Is their a command to wipe the dalvik-cache? If yes, what is the command that I would run?
I notice two options:
-w
Wipe the data partition
-d
Flash the data partition
Well if you don't use a2sd, this is the fix
That's a known "issue", the wipe script gives an error because it tries to wipe the dalvik-cache from the ext partition after it erased the dalvik-cache from /data. Since you don't have an ext partition it will exit and throw the error.
Don't worry about it, your dalvik-cache IS WIPED, even when you see the error.
Thanks regaw_leinad,
I kept attempting it with the latest fresh-toast rom but it would continue rebooting. It's the only rom that wouldn't have a successful dalvik wipe. I gave up and went back to damageless's SprintUpdate2.zip.
Thanks,
Zac

Did full wipe/reset to install new ROM and got frozen on Formatting /cache

Trying install this rom:
http://forum.xda-developers.com/showthread.php?t=2494756
Went to CWM and started full wipe/reset and it got stuck on:
Formatting /cache
had to hard reboot with long press on power button then my stock room booted up, so means nothing formatted...
What to do next guys?
Thanks!
Install twrp, and in preferences check format method -r, fs. Somthing like this. Or wait longer, with standart formating it takes up to 20-30min!
Melodycd said:
Install twrp, and in preferences check format method -r, fs. Somthing like this. Or wait longer, with standart formating it takes up to 20-30min!
Click to expand...
Click to collapse
Why does the cache take forever to format on the G2?
ditto
same thing happened to me during a rom install
as i have only had the phone a week i was a bit flustered
i did what they recommended
went into twrp settings and checked <<use rm - rt>>
and then reinstalled the rom, reboot was ok this time
so far so good
yeah i have the same question about wiping cache - on my samsung note 2 using twrp it was so fast
This is a problem in twrp i think, i was using twrp on many devices before, but didn't have any problems with wipe.

Tried doing Lollipop update, broken filesystem.

Hello. I tried doing the 5.0 update to my tablet using the factory images. It failed on sending /system and now the whole tablet isn't working. I loaded Philz, to wipe the whole tablet, and it errors mounting /data and /system when attempting to wipe. I have tried wiping everything in every way, and nothing. I cannot get anything to flash on the tablet. Any help?
Yoyodude1124 said:
Hello. I tried doing the 5.0 update to my tablet using the factory images. It failed on sending /system and now the whole tablet isn't working. I loaded Philz, to wipe the whole tablet, and it errors mounting /data and /system when attempting to wipe. I have tried wiping everything in every way, and nothing. I cannot get anything to flash on the tablet. Any help?
Click to expand...
Click to collapse
Ya man, its the same with me . Hope someone, reply's with a solution for it.
Maybe try with latrst version of twrp instead of Philz.
Flash TWRP
Wipe
Advanced wipe
Select system
Repair or change file system
Repair
Let it do its thing, then flash your ROM.
Send your thanks to @Paramesh96. He gave me this advice on my thread. Still haven't been able to flash factory images. But I can get my tablet up & running again with this guide
I could do this, but I have no way of moving a zip file to the tablet.
Yoyodude1124 said:
I could do this, but I have no way of moving a zip file to the tablet.
Click to expand...
Click to collapse
I flashed TWRP, went through the process, rebooted to bootloader, reflashed TWRP, reboot to recovery & mtp was enabled to access the sdcard

Encryption unlocked & rooted?

I've been reading something that interested me.
https://www.reddit.com/r/MotoX/comments/2kx2lv/how_do_you_encrypt_a_rooted_moto_x/
Specifically.
I had the same issue today. Booted into safe mode, then I was able to encrypt.
Press power button to get power off popup menu. Press and hold power off. You will get another popup offering to reboot in safe mode.
Safe mode worked. This uncomplicates my process of rooting, unrooting, encrypting, and having issues rerooting after encryption. This is also a crazy easy single step process for an issue that has given me months of headaches.
You shall be the first person ever that I have given gold to.
Thank you so much!
Click to expand...
Click to collapse
I enter my password in the encryption settings menu and hit the Encrypt button
Click to expand...
Click to collapse
How would encryption effect flashing a new rom?
What are your guys thoughts on encryptimg a unlocked and rooted phone?
I do not want to enable it yet till it is comfirmed its ok.
Thanks.
Um I haven't had a problem and I've encrypted the software many times as I have installed many rooms and I always encrypt after setting everything up post root so it should just work without issue. Maybe they just weren't being patient and it can take a bit of time
timde9 said:
Um I haven't had a problem and I've encrypted the software many times as I have installed many rooms and I always encrypt after setting everything up post root so it should just work without issue. Maybe they just weren't being patient and it can take a bit of time
Click to expand...
Click to collapse
What about unencrypting? To say to flash a new kernel or rom?
Well that's an interesting question. I am testing twrp builds from hashbang to try and get encryption fully supported for this device in twrp. Until that time you can actually still flash zips via adb sideload no problem
timde9 said:
Well that's an interesting question. I am testing twrp builds from hashbang to try and get encryption fully supported for this device in twrp. Until that time you can actually still flash zips via adb sideload no problem
Click to expand...
Click to collapse
Ohh. Cool. I'll have to learn adb.
@timde9
I've got twrp installed.
To get to recovrry mode, do I go into recovery mode in twrp and then the recovery button in twrp to install packages m zips from adb?
to install packages via adb is pretty simple really you just open twrp go to advanced menu and open "adb sideload" from there. Then connect your device to your computer install adb and sideload an app with this syntax
"adb sideload ***.zip"
That is radical. Ty for this.
Encryption went like a breeze.
took no more than 20 min. I feel safe now.
timde9 said:
Well that's an interesting question. I am testing twrp builds from hashbang to try and get encryption fully supported for this device in twrp. Until that time you can actually still flash zips via adb sideload no problem
Click to expand...
Click to collapse
Just found out after encrypting twrp fails to mount data to backup. I might restore without encryption. That way I have access to backups on my phone too.
So I am having a problem restoring a backup. Since I cannot decrypt, to get rid of data from being locked down, do I flash with a rom? I am stuck.
Ok I have to do a factory reset. But not sure if this exists and works through twrp. Or if I have to do a factory reset some otherway.
Ok I skipped trying to reinstall rom and did a little searching.
This guy but with a 6P had exact issue.
For me to wipe data I need to
Code:
fastboot format userdata
https://www.reddit.com/r/Nexus6P/comments/3qnzz0/twrp_unable_to_mount_data/
Hitti2 said:
Ok I skipped trying to reinstall rom and did a little searching.
This guy but with a 6P had exact issue.
For me to wipe data I need to
Code:
fastboot format userdata
https://www.reddit.com/r/Nexus6P/comments/3qnzz0/twrp_unable_to_mount_data/
Click to expand...
Click to collapse
Is this ok to do? I don't want mess anything up.
Hitti2 said:
Is this ok to do? I don't want mess anything up.
Click to expand...
Click to collapse
That will erase all your data including files, apps, etc. Anything installed to /system should be untouched.
asuhoops8628 said:
That will erase all your data including files, apps, etc. Anything installed to /system should be untouched.
Click to expand...
Click to collapse
Thanks for confirming this. Exactly what I need when time comes to decrypt "wipe" I will use this.
I wasn't sure if it would delete the partition or wipe, this is why I asked.
Ty.
Hitti2 said:
Thanks for confirming this. Exactly what I need when time comes to decrypt "wipe" I will use this.
I wasn't sure if it would delete the partition or wipe, this is why I asked.
Ty.
Click to expand...
Click to collapse
Upon reading this again, just to be safe, you might want to start with just a fastboot erase. I think format does the same thing, but I have never used it.
Since you would be specifying the partition with both commands, I do not think you are in risk of completely blowing up your user partition if you choose to use fastboot format, but once again, I have always just used fastboot erase.
Hitti2 said:
Ok I skipped trying to reinstall rom and did a little searching.
This guy but with a 6P had exact issue.
For me to wipe data I need to
Code:
fastboot format userdata
https://www.reddit.com/r/Nexus6P/comments/3qnzz0/twrp_unable_to_mount_data/
Click to expand...
Click to collapse
So I went to use this. I got an error.
Code:
Formatting is not supported for filesystem with type 'raw'
So now, that I am guessing, since twrp can now decrypt, I should just be able to go into twrp and do a full wipe and reinstall of the trupurexmm 2.5 And encryption should be gone?
Hitti2 said:
So I went to use this. I got an error.
Code:
Formatting is not supported for filesystem with type 'raw'
So now, that I am guessing, since twrp can now decrypt, I should just be able to go into twrp and do a full wipe and reinstall of the trupurexmm 2.5 And encryption should be gone?
Click to expand...
Click to collapse
Nope. Encryption is still enabled. I flashed trupurexmm 2.5 following
5. How To Install A ROM with TWRP Recovery
Prerequisites: unlocked bootloader, TWRP recovery.
Installing a ROM is a pretty straight forward and easy process. Before you install anything you should make a nandroid backup (instructions above).
Download a ROM and appropriate Gapps package and place on your device.
Boot into your custom recovery.
Perform a full wipe.
Select the wipe option from the TWRP home screen.
Select advanced wipe.
Check the system, data, cache, and dalvik cache options.
Swipe to wipe.
Install the ROM.
Select the install option from the TWRP home screen.
Navigate to where you have the ROM zip stored on your sd card and select it.
Swipe to install.
Most ROMs will run an installer script at this point but some ROMs have what is called an Aroma Installer which allow you to choose some install options before the script runs.
You will also need to install the appropriate gapps package directly after installing the ROM.
Once you've installed all necessary zips you'll have an option to wipe cache/dalvik and an option to reboot system. Wipe the cache/dalvik, hit the back button, and hit the reboot system button.
Click to expand...
Click to collapse
I'm having an issue encrypting. Encryption will not start on my rooted moto x. I factory reset and encrypted, but could not get root working. Flashed everything via adb sideload in twrp but root refueses to work. Any ideas
Sent from my XT1575 using Tapatalk

Can't create a backup through TWRP.

I tried creating a system backup through TWRP just now for the first time ever. Throughout the process, it gave me multiple messages saying "unable to mount data" and the same for some other folders, and when the backup supposedly finished, it just said failed.
Is there anything I can try without actually wiping either of the partitions? This obviously because I'm trying to create a backup so I can wipe afterwards.
cyborgium said:
I tried creating a system backup through TWRP just now for the first time ever. Throughout the process, it gave me multiple messages saying "unable to mount data" and the same for some other folders, and when the backup supposedly finished, it just said failed.
Is there anything I can try without actually wiping either of the partitions? This obviously because I'm trying to create a backup so I can wipe afterwards.
Click to expand...
Click to collapse
In twrp main menu screen select ' Mount ' menu and make sure mount data is ticked then go back and try backing up again.
spawnlives said:
In twrp main menu screen select ' Mount ' menu and make sure mount data is ticked then go back and try backing up again.
Click to expand...
Click to collapse
Thanks for your reply, it doesn't actually let me tick that box. Nothing happens when I tick it. It also says that the data partition is 0mb. Any idea what that might mean?
cyborgium said:
Thanks for your reply, it doesn't actually let me tick that box. Nothing happens when I tick it. It also says that the data partition is 0mb. Any idea what that might mean?
Click to expand...
Click to collapse
Which version of twrp are you using
Latest is 3.2.3.0 which should fix the data issue ( it"s a known issue).
spawnlives said:
Which version of twrp are you using
Latest is 3.2.3.0 which should fix the data issue ( it"s a known issue).
Click to expand...
Click to collapse
That's the TWRP version that I've got installed.
I just reinstalled both stock firmware and reflashed TWRP but the exact same issue persists. At first I was able to mount data though, I could flash zips such as Magisk etc. But after having set everything up again on my phone, I couldn't mount data anymore.
cyborgium said:
That's the TWRP version that I've got installed.
I just reinstalled both stock firmware and reflashed TWRP but the exact same issue persists. At first I was able to mount data though, I could flash zips such as Magisk etc. But after having set everything up again on my phone, I couldn't mount data anymore.
Click to expand...
Click to collapse
Not sure on your steps to install twrp
Have you tried going into twrp in wipe menu and format data
spawnlives said:
Not sure on your steps to install twrp
Have you tried going into twrp in wipe menu and format data
Click to expand...
Click to collapse
Maybe I wasn't very clear.
I flash the stock firmware, set that up to enable OEM unlock. Then flash TWRP, wipe /data, flash magisk and other required zips (at this point, data is mounted). I then set that all up however I want, install apps etc.
If I want to create a backup after all that, it doesn't work cause of the unable to mount /data and /storage.
cyborgium said:
Maybe I wasn't very clear.
I flash the stock firmware, set that up to enable OEM unlock. Then flash TWRP, wipe /data, flash magisk and other required zips (at this point, data is mounted). I then set that all up however I want, install apps etc.
If I want to create a backup after all that, it doesn't work cause of the unable to mount /data and /storage.
Click to expand...
Click to collapse
Sounds like your device is still encrypted
Did you flash the no Verity encrypt zip file
Also I said to format data not wipe.
In the mount menu these are the options I have enabled.
spawnlives said:
Sounds like your device is still encrypted
Did you flash the no Verity encrypt zip file
Also I said to format data not wipe.
In the mount menu these are the options I have enabled.
Click to expand...
Click to collapse
You're right, I formatted data, not wipe.
I did flash the no verity zip, does the order in which I flash Magisk, no-verity and RMM state unlock matter?
cyborgium said:
You're right, I formatted data, not wipe.
I did flash the no verity zip, does the order in which I flash Magisk, no-verity and RMM state unlock matter?
Click to expand...
Click to collapse
The instructions I followed to install twrp
Flash twrp (which you have done)
Format data
When finished reboot back into twrp(use twrp reboot menu option)
Flash no-verity zip via twrp ( have to make sure you have it on internal storage or SD card)
Then flash everything else
Not sure if you need RMM state unlock if your bootloader(OEM) is already unlocked in developer options though.
spawnlives said:
The instructions I followed to install twrp
Flash twrp (which you have done)
Format data
When finished reboot back into twrp(use twrp reboot menu option)
Flash no-verity zip via twrp ( have to make sure you have it on internal storage or SD card)
Then flash everything else
Not sure if you need RMM state unlock if your bootloader(OEM) is already unlocked in developer options though.
Click to expand...
Click to collapse
I've just done everything you stated above, still the same issue, can't mount /data.
Really don't understand what it is that im doing wrong or if I'm even doing anything wrong..
Thanks for your help anyway though, appreciate it.
cyborgium said:
I've just done everything you stated above, still the same issue, can't mount /data.
Really don't understand what it is that im doing wrong or if I'm even doing anything wrong..
Thanks for your help anyway though, appreciate it.
Click to expand...
Click to collapse
Just as matter of curiosity I use FX file explorer (root) in the menu filesystem it should tell you what format your data partition is mine or ext4. I have read that some people through twrp have changed it to something like ext3 and then back to ext4
Also this is the thread I used to install my twrp
https://forum.xda-developers.com/ga...pment/recovery-twrp-galaxy-s8-exynos-t3595102
This thread may also help you out
https://forum.xda-developers.com/ga...ment/fix-data-mount-fix-s8-twrp-oreo-t3769254
spawnlives said:
Just as matter of curiosity I use FX file explorer (root) in the menu filesystem it should tell you what format your data partition is mine or ext4. I have read that some people through twrp have changed it to something like ext3 and then back to ext4
Also this is the thread I used to install my twrp
https://forum.xda-developers.com/ga...pment/recovery-twrp-galaxy-s8-exynos-t3595102
This thread may also help you out
https://forum.xda-developers.com/ga...ment/fix-data-mount-fix-s8-twrp-oreo-t3769254
Click to expand...
Click to collapse
I think that second thread you linked may have done the trick.
At first it didn't seem to help, but when I tried it again after reflashing everything, I am now able to mount /data.
I'm still in the dark as to why this happened and hasn't happened to anyone else other than the person who created that file, but either way, thank you very much for your help.
cyborgium said:
Maybe I wasn't very clear.
I flash the stock firmware, set that up to enable OEM unlock. Then flash TWRP, wipe /data, flash magisk and other required zips (at this point, data is mounted). I then set that all up however I want, install apps etc.
If I want to create a backup after all that, it doesn't work cause of the unable to mount /data and /storage.
Click to expand...
Click to collapse
Try the modded twrp from nx thread

Categories

Resources