I haven't formatted my phone in a while, so rather than delete files while my phone was working. I booted into recovery and selected the format data option in TWRP. Now I am getting all kinds of errors in TWRP. I was on a custom rom when I did all of this and somehow I screwed up. I can't even get a zip on my phone as my phone is only recognized as charging and not a storage device under these circumstances. I have tried adb sideloading a rom, but that is to no avail. I am thinking about flash a stock recovery in hopes that I'll be able to flash a stock rom and fix my phone.
this is what it says when trying to wipe anything:
could not mount /data and unable to find crypto footer.
failed to mount '/data (invalid argument)
without typing out everything the rest of it says failed to mount '/data' (invalid argument)
Boot the phone into fastboot, type fastboot format userdata
fastboot format cache
then fastboot flash recovery <name of twrp recovery>.img (don't put < >)
boot into recovery and go to advanced wipe and wipe everything except internal
everything will be fine now
you can flash any rom now.
If it worked, hit the thanks button
Try unbrick tutorial from XDA to back to new alike!
This is the best option
Well actually I took a different route altogether. I don't know why I didn't think about it initially. You would think after almost 10 years of dealing with custom ROMs and recoveries that I would of been a lot quicker in finding a solution, so I googled it. Came to the conclusion that I needed a stock OP3T recovery, so I downloaded it and fastboot flashed the stock recovery. From recovery I was able to wipe data, cache, dalvik-cache. All was good after that. Now I'm running coltOS.
Sent from my ONEPLUS A3000 using Tapatalk
Glad you fixed it. If you face a similar issue in the future you can download MSMTool for the OnePlus 3T which will restore stock OOS through fastboot
Related
I turned on device encryption in order to play with it (bad mistake). Performance is suckish, it prevents me from flashing anything stored on the internal filesystem (have to use USB dongle), battery life has gone down, etc.
I tried wiping the device by doing a factory reset both in recovery and through settings. Neither method touches the encrypted data partition. Re-flashing the ROM makes no difference. The encrypted partition is extremely resilient
Based on some research, the only known way to wipe the encryption is to revert to stock and use stock recovery to do a factory reset. This sounds insanely cumbersome if all I want to do is wipe a partition. Does anyone know of a better way?
If stock recovery can do a factory wipe without mounting the encrypted partition, it sounds like a feature to add to CWM or TWRP.
Device is ATT HTC One, rooted, S-OFF, Super CID, CWM recovery, Sentinel ROM 4.0.
Many thanks
You can try and flash an ruu? See if that helps and if it doesnt try the stock recovery thing. Never heard of it though.
Sent from my HTC One X using xda app-developers app
So, the wipe of TWRP didn't removed the encryption like it say this when you will wipe?
Strange
However, flash the stock recovery and do a factory reset like you said, and see if it work..
you can do it via TWRP just make sure the rm -rf mode is disabled in settings... Or maybe in fastboot... Just type
Code:
fastboot erase userdata
Or another perhaps is ask someone to create a nand dump of their user data partition and use "dd" to write it on your own.
Problem Solved!
Eureka!!!!
I was playing with CWM and figured it out. In the "mounts and storage" tab, if you select "format /data" it fails with an error that it can't mount the volume.
If you select "format /data and /data/media" it works like a charm. For some reason, it performs the format operation on the raw partition while the prior option tried to mount it first.
Back in business
Thanks RootShot ["format /data ¨in advanced wipe first¨ and format/data ¨& write yes in second¨ " ] did the trick and saved my phone back to work ...
so i have been playing around with my phone, it was working fine but i had issues with android revolution hd, so i forget what i did and i am currently on clockwork mod touch v6.0.3.1 (i tried 6.0.3.6). it usually says:
E:Can't mount /cache/recovery/command
E:Can't mount /cache/recovery/log
E:Can't open /cache/recovery/log
E:Can't mount /cache/recovery/last_log
E:Can't open /cache/recovery/last_log
before this happened i tried to flash a couple roms and they all failed and i went into either a recovery loop, in which it kept booting into recovery or a htc logo boot loop. I have flash twrp recovery also to try if that would help and it didn't. i have pushed the roms using adb and used fastboot to clear cache and flash the recoveries. i am pretty much stuck, i don't know what to do. I can't find a bell version of the RUU to install, i found a nandroid backup but it never seems to finish downloading properly from htc1guru.com so what do i do know?
Thanks for any help
manwinder said:
E:Can't mount /cache/recovery/command
E:Can't mount /cache/recovery/log
E:Can't open /cache/recovery/log
E:Can't mount /cache/recovery/last_log
E:Can't open /cache/recovery/last_log
Click to expand...
Click to collapse
the above is normal, it's because of the "fastboot erase cache" -> hence no cache to mount
but I didnt get the second part; you're not able to enter recovery or are you not able to flash ROM?
i erased cache and it still gives me the same issue. I also tried fastboot boot twrp.img, but that popped up the loading screen of twrp and then rebooted. also tried the same command with clockworkmod and it booted into recovery but it still can't mount the cache. Also i flashed twrp but it wont boot, also it has s-on, 1.44, tampered and unlocked
manwinder said:
i erased cache and it still gives me the same issue. I also tried fastboot boot twrp.img, but that popped up the loading screen of twrp and then rebooted. also tried the same command with clockworkmod and it booted into recovery but it still can't mount the cache. Also i flashed twrp but it wont boot, also it has s-on, 1.44, tampered and unlocked
Click to expand...
Click to collapse
It's not an error, when you wipe the cache it won't be mounted in recovery.
Recovery will work fine without a mounted cache.
Sent from my HTC One using xda app-developers app
nkk71 said:
It's not an error, when you wipe the cache it won't be mounted in recovery.
Recovery will work fine without a mounted cache.
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
i erased the cache booted right into clockworkmod and used adb to sideload a rom, right as it mounts the data and gets ready to install the phone restarts. could my memory be corrupted or messed up?
manwinder said:
i erased the cache booted right into clockworkmod and used adb to sideload a rom, right as it mounts the data and gets ready to install the phone restarts. could my memory be corrupted or messed up?
Click to expand...
Click to collapse
1- why don't you try to push the ROM "adb push Rom.zip /sdcard/"
2- make sure your download is not corrupted by checking MD5
3- if you don't mind wiping your internal storage, go ahead and format it in recovery (format /sdcard or format /data/media)
Sent from my HTC One using xda app-developers app
nkk71 said:
1- why don't you try to push the ROM "adb push Rom.zip /sdcard/"
2- make sure your download is not corrupted by checking MD5
3- if you don't mind wiping your internal storage, go ahead and format it in recovery (format /sdcard or format /data/media)
Sent from my HTC One using xda app-developers app
Click to expand...
Click to collapse
i tried that and it gave me error:closed. i did it in recovery in adb sideload in clockworkmod.
I dont care about wiping, since i have everything backed up, i have formatted the sd card and the data twice, i did it before installing android revolution hd and then after when i was trying to install my other rom but after i formatted it again, it stopped working. I try to mount the sd card in clockworkmod and all it does is reboot the phone, that also happens when i hit format sd card. It can't mount it for some reason. then it just goes into a htc boot logo loop. thanks for the help guys...more please more
manwinder said:
i tried that and it gave me error:closed. i did it in recovery in adb sideload in clockworkmod.
I dont care about wiping, since i have everything backed up, i have formatted the sd card and the data twice, i did it before installing android revolution hd and then after when i was trying to install my other rom but after i formatted it again, it stopped working. I try to mount the sd card in clockworkmod and all it does is reboot the phone, that also happens when i hit format sd card. It can't mount it for some reason. then it just goes into a htc boot logo loop. thanks for the help guys...more please more
Click to expand...
Click to collapse
I just had the same issue as you and I tried almost everything! I have just figured out how to solve the problem.
First I installed an earlier version of CWM, in my case recovery-clockwork-touch-6.0.3.4-m7.img
Then I went to install the ROM that was working BEFORE I installed the ROm which totally crashed my cache partition, in my case Android Revolution HD
When I got into AROMA, I unchecked EVERYTHING the only thing I checked was the XPOSED Framework, which I remembered I installed last time
The installation finished and the phone rebooted twice before getting into the boot and finally into the ROM
I don't know what our issue is caused by and after reading two hours on the internet I also figured out that people is solving this problem in different ways and no solution works 100% which makes this issue very weird :/
Hope it helps! Good luck!
Nepoznati said:
I just had the same issue as you and I tried almost everything! I have just figured out how to solve the problem.
First I installed an earlier version of CWM, in my case recovery-clockwork-touch-6.0.3.4-m7.img
Then I went to install the ROM that was working BEFORE I installed the ROm which totally crashed my cache partition, in my case Android Revolution HD
When I got into AROMA, I unchecked EVERYTHING the only thing I checked was the XPOSED Framework, which I remembered I installed last time
The installation finished and the phone rebooted twice before getting into the boot and finally into the ROM
I don't know what our issue is caused by and after reading two hours on the internet I also figured out that people is solving this problem in different ways and no solution works 100% which makes this issue very weird :/
Hope it helps! Good luck!
Click to expand...
Click to collapse
omg it worked, thank you jesus christ of Louisiana, i mean Nepoznati. may god bless you for eternity. Lol im probably gonna try installing the other rom anyways. I installed ARHD using the canadian option and everything else not selected
I was formatting my HTC One to give it to a family member. I was going to sideload or push a rom and flash it, but twrp keeps saying it cant mount /data/ or internal storage. I got to sideload android revolution HD GPE but when it boots its asks for a password to decrypt the storage which i have never done. In twrp it still says it can't mount internal storage or data and I need help getting out of this mess. :/
xXxG0dzRAgexXx said:
I was formatting my HTC One to give it to a family member. I was going to sideload or push a rom and flash it, but twrp keeps saying it cant mount /data/ or internal storage. I got to sideload android revolution HD GPE but when it boots its asks for a password to decrypt the storage which i have never done. In twrp it still says it can't mount internal storage or data and I need help getting out of this mess. :/
Click to expand...
Click to collapse
inside TWRP select wipe and then select format data, this will however completely wipe your phone and you will need to push or sideload a new rom then flash it, try and use TWRP 2.6.3.3, it makes all the difference.
Seanie280672 said:
inside TWRP select wipe and then select format data, this will however completely wipe your phone and you will need to push or sideload a new rom then flash it, try and use TWRP 2.6.3.3, it makes all the difference.
Click to expand...
Click to collapse
I flashed CWM to see if it worked instead but still said cant mount /data and can't mount /sdcard. I formatted /data and now trying to sideload android revolution again to see if that will work. If not I will try to use TWRP 2.6.3.3. I was using 2.7.1.1 beforehand.
Also the whole reason im here is because I wiped my phone completely with TWRP. Just planned on wiping it all then sideloading a rom to give it that "new phone" sort of feel. No empty random folders and all that. No left over files.
xXxG0dzRAgexXx said:
I flashed CWM to see if it worked instead but still said cant mount /data and can't mount /sdcard. I formatted /data and now trying to sideload android revolution again to see if that will work. If not I will try to use TWRP 2.6.3.3. I was using 2.7.1.1 beforehand.
Also the whole reason im here is because I wiped my phone completely with TWRP. Just planned on wiping it all then sideloading a rom to give it that "new phone" sort of feel. No empty random folders and all that. No left over files.
Click to expand...
Click to collapse
The TWRP 2.7.x.x series all seem to have one or another problem going on with them, most users here swear by 2.6.3.3 or 2.6.3.4, however you will also find that most custom rom's require TWRP recovery over CWM.
also, don't forget to erase the cache after flashing each recovery.
Code:
fastboot flash recovery recovery.img
fastboot erase cache
fastboot reboot-bootloader
Seanie280672 said:
The TWRP 2.7.x.x series all seem to have one or another problem going on with them, most users here swear by 2.6.3.3 or 2.6.3.4, however you will also find that most custom rom's require TWRP recovery over CWM.
also, don't forget to erase the cache after flashing each recovery.
Code:
fastboot flash recovery recovery.img
fastboot erase cache
fastboot reboot-bootloader
Click to expand...
Click to collapse
Ended up reflashing twrp with fastboot and then flashed Android revolution HD71.1 on it. The format of data in CWM worked to fix the mounting problem I had. Twrp probably could have fixed it too if I tried wiping data again. Will remember that next time for the other HTC One I'll be doing this to in the next few days.
This problem has been solved by @Didgesteve
Thank you very much, Didgesteve!
For everyone who is a genius(like me), read his post.
Hi Community,
short story: my device seems kind'a bricked, because i am not able to install a rom via twrp; error: unable to mount /data /cache and /system.
What I did:
I unlocked my bootloader via the official sony method > everything worked flawlessly
I bootet my device into fastboot mode and flashed twrp onto it > everything still workes fine
I wiped /data /cache and /system according to the normal cm13.0 installation process > still finr
I installed the cm13.zip from an external sd-card > no errors
I installed the gapps.zip from the sd-card > Nothing unusual
I booted into cm13, configured it and installed some apps > works as usual
I noticed that a new version of the rom was published, so I booted into twrp > worked
I wiped /data /cache and /system > worked
I reallized, that i could flash my external sd-card, too because i wanted to install the new cm13-version via adb-sideload > now the errors came in
So i thougt retrying wiping /data /cache and /system and the same errors occured > holy sh*t
Last I tried simply installing the cm13.zip from the external sd-card > same errors
What the errors are for wiping(those for install are basically the same:
Code:
could not mount /data and unable to find crypto footer
failed to mount /data (no such device)
Unable to recreate /data/media folder
Failed to mount /system (Invalid argument)
Failed to mount /cache (Invalid argument)
Unable to mount storage
Same goes for using the official cyanogen recovery and other cyanogenmod versions.
I am also not able to find/mount it via adb shell.
The images, etc:
CM13: http://forum.xda-developers.com/z3-compact/development/rom-cm13-t3277402/page7 version by @nelvinchi on 25th February 2016, 12:39 PM
TWRP: https://twrp.me/devices/sonyxperiaz3compact.html
Gapps: https://www.androidfilehost.com/?fid=24269982087021755
Additional information:
OS: Mac OSX El Capitan and Linux Mint 17.3
Sd-Card: SanDisk Ultra 64GB micro sdxc
Phone: Sony Xperia Z3 Compact D5803 (colorrange)
My ideas for fixing this:
-manually adding the partitions via adb shell
+required: correct partiton table and adb commands
+don't now, if this would work
Hope i didn't miss anything and there is someone out there, how can help me,
yours sincerely,
Niggl
Well I followed your method up to step 8 and the point of wiping system in recovery mode. Even if you were flashing a completely different rom, you shouldn't have to touch system unless you're coming from LL to CM for the first time. Updating roms to a later version should only require a wipe of dalvik/cache. By the sound of it there are no system files for it to boot into, either that or the partition tables are corrupt.
Have you got flashtool working? Have you tried pushing a stock tft? to see if you can repair it?
There is Sony Bridge, which if it does the same as the PC version will repair the phone to stock, as long as you can still get into Flashmode.
The chances of being able to repair it back into CM are slim, I suspect you're going to have to start from scratch, get stock working then go back to CM after.
**SOLVED**
Thank you for your help!
Didgesteve said:
Well I followed your method up to step 8 and the point of wiping system in recovery mode. Even if you were flashing a completely different rom, you shouldn't have to touch system unless you're coming from LL to CM for the first time. Updating roms to a later version should only require a wipe of dalvik/cache. By the sound of it there are no system files for it to boot into, either that or the partition tables are corrupt.
Click to expand...
Click to collapse
The partition tables were(because of bull**** or something like that) corrupted(I checked it: not because of the wiping, but i will not wipe /system at an update in the future)
Didgesteve said:
There is Sony Bridge, which if it does the same as the PC version will repair the phone to stock, as long as you can still get into Flashmode.
Click to expand...
Click to collapse
I can boot into recovery and fastboot/flash mode.
Xperia companion and sony bridge are both not working because of "modified software".
Flashtool worked for the stock tft.
So THANK YOU VERY MUCH,
you are my savior!
I hope nobody else, will be a genius like me
Thx again,
Niggl1999
So I have this problem. When I tried to flash clarity kernel for my device, it won't boot, but I still able to access TWRP and then I try to Format Data so I can restore my backup later.
But, my device suddenly turned off while it was formatting and still won't boot.
Worse, when I tried to go to TWRP, it just show some log like "failed to mount data (invalid argument)" and "failed to mount /twrp/twrps (invalid argument)". Though, I still able to access fastboot mode, but I dont know what to do with it.
Could somebody help me please? I'm stuck right now.
Jaeger00 said:
So I have this problem. When I tried to flash clarity kernel for my device, it won't boot, but I still able to access TWRP and then I try to Format Data so I can restore my backup later.
But, my device suddenly turned off while it was formatting and still won't boot.
Worse, when I tried to go to TWRP, it just show some log like "failed to mount data (invalid argument)" and "failed to mount /twrp/twrps (invalid argument)". Though, I still able to access fastboot mode, but I dont know what to do with it.
Could somebody help me please? I'm stuck right now.
Click to expand...
Click to collapse
Please boot in fastboot mode and run:
fastboot format userdata
fastboot format cacheThen try TWRP again.
k23m said:
Please boot in fastboot mode and run:
fastboot format userdata
fastboot format cacheThen try TWRP again.
Click to expand...
Click to collapse
Thanks for your information and time, really appreciate it.
Btw I just got my problem solved by reflashing my device with MiFlash. Anyway, thank you