[Solved] Encryption Unsuccessful Fix - Defy Q&A, Help & Troubleshooting

Hi,
I tried to install CM10 on my Motorola Defy+ (MB526), which was successful to some extent.
When I tried to install the latest gapps through CWM, it froze at the starting applications part.
I force restarted it, seeing that there was no change for a while.
When I restarted the phone, it kept on rebooting, with limited functionality, so I downgraded to CM9.
An error message pops up which says with Encryption Unsuccessful. A reset button was available, but didn't help.
I then re-upgraded to CM10, but the phone has limited functionality.
After researching the problem, I realised that the /data partition is not mounted as it is probably corrupted.
Is there any fix to this problem? Will flashing a sbf recreate the /data partition?
Please advise as the phone is basically useless without /data (no apps and constant reboots)
Thanks,
neiljain

neiljain said:
Hi,
I tried to install CM10 on my Motorola Defy+ (MB526), which was successful to some extent.
When I tried to install the latest gapps through CWM, it froze at the starting applications part.
I force restarted it, seeing that there was no change for a while.
When I restarted the phone, it kept on rebooting, with limited functionality, so I downgraded to CM9.
An error message pops up which says with Encryption Unsuccessful. A reset button was available, but didn't help.
I then re-upgraded to CM10, but the phone has limited functionality.
After researching the problem, I realised that the /data partition is not mounted as it is probably corrupted.
Is there any fix to this problem? Will flashing a sbf recreate the /data partition?
Please advise as the phone is basically useless without /data (no apps and constant reboots)
Thanks,
neiljain
Click to expand...
Click to collapse
Hi Buddy,
I went through the same process last evening, earlier i was on 2nd boot then it was very slow hence I decided to move to CM9 for better UI and good battery life. but while doing so my phone also got encrypted.
I did following and installed CM9 yestrday night.
Removed SD card, read it through computer (CArd reader) and put CM9 in one folder along with GAPPS.
Charged my battery till green light pops up.
Entered the SD card again and then started the phone in Custome Recovery.
Full data Wipe
Dalvik Cache wipe
Install CM9 and Gapps.
again clear Cache and dalvik and reboot.
It should work, let me know if it doesnt work post that as well.
Regards,
Amit Sharma
Plz hit thanks button if this work

[email protected] said:
Removed SD card, read it through computer (CArd reader) and put CM9 in one folder along with GAPPS.
Charged my battery till green light pops up.
Entered the SD card again and then started the phone in Custome Recovery.
Full data Wipe
Dalvik Cache wipe
Install CM9 and Gapps.
again clear Cache and dalvik and reboot.
Click to expand...
Click to collapse
Hi,
If the /data partition is corrupted (which I believe it is), will this still work?
Also, did you get any "Can't mount /cache/recovery/command" errors in CWM at anytime.
Thanks,
neiljain

[email protected] said:
Hi Buddy,
I went through the same process last evening, earlier i was on 2nd boot then it was very slow hence I decided to move to CM9 for better UI and good battery life. but while doing so my phone also got encrypted.
I did following and installed CM9 yestrday night.
Removed SD card, read it through computer (CArd reader) and put CM9 in one folder along with GAPPS.
Charged my battery till green light pops up.
Entered the SD card again and then started the phone in Custome Recovery.
Full data Wipe
Dalvik Cache wipe
Install CM9 and Gapps.
again clear Cache and dalvik and reboot.
It should work, let me know if it doesnt work post that as well.
Regards,
Amit Sharma
Plz hit thanks button if this work
Click to expand...
Click to collapse
Hi,
I tried the above procedure, yet there was no success.
Please advise any alternative methods.
Thanks for your quick reply though.
Regards,
neiljain

neiljain said:
Hi,
I tried the above procedure, yet there was no success.
Please advise any alternative methods.
Thanks for your quick reply though.
Regards,
neiljain
Click to expand...
Click to collapse
remove SD card, log into Stable recovery mode. wipe data / factory reset and try rebooting.
if problem still persist, read your phone through RSD and flash CM7.2 file. let me know if you need link for the same.
It will work.
Regards,
Amit Sharma

This will format your data partition, be warned!
neiljain said:
Hi,
I tried to install CM10 on my Motorola Defy+ (MB526), which was successful to some extent.
When I tried to install the latest gapps through CWM, it froze at the starting applications part.
I force restarted it, seeing that there was no change for a while.
When I restarted the phone, it kept on rebooting, with limited functionality, so I downgraded to CM9.
An error message pops up which says with Encryption Unsuccessful. A reset button was available, but didn't help.
I then re-upgraded to CM10, but the phone has limited functionality.
After researching the problem, I realised that the /data partition is not mounted as it is probably corrupted.
Is there any fix to this problem? Will flashing a sbf recreate the /data partition?
Please advise as the phone is basically useless without /data (no apps and constant reboots)
Thanks,
neiljain
Click to expand...
Click to collapse
Boot to recovery and turn on adb (in Advanced). Open a shell on the phone through adb from a PC. Try to find out if data is mounted, and if so what filesystem type it uses:
Code:
$ adb shell
~ # mount|grep /data
/dev/block/mmcblk1p25 /data ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,nobh,data=writeback 0 0
If /data is corrupted it will not be mounted. On my phone /data and /cache are formatted ext4, which is only supported in the latest CM10. If yours happens to be formatted ext4 as well and you want to go back to CM9 you'll have to reformat both to ext3. If /data is corrupted you can also reformat the filesystem as you don't seem to have data worth keeping on it anyway (seeing that you talk about doing a full SBF flash to 'recreate the /data partition'). This can be done manually or - if you have not nuked the scripts installed by CM10 - using one of the scripts made for that purpose. Those scripts live in /system/bootmenu/script:
Code:
~ # ls /system/bootmenu/script/|grep format
format_ext3.sh
format_ext4.sh
If you have access to these scripts you can just run format_ext3.sh to reformat /cache and /data in ext3:
THIS WILL FORMAT YOUR DATA PARTITION - ALL DATA WILL BE LOST!
Code:
~ # /system/bootmenu/script/format_ext3.sh
If you don't have access to them you can achieve the same effect using the following commands:
THIS WILL FORMAT YOUR DATA PARTITION - ALL DATA WILL BE LOST!
Code:
PART_CACHE=/dev/block/mmcblk1p24
PART_DATA=/dev/block/mmcblk1p25
umount /data
umount /cache
# if you want to check the filesystems you can run these commands...
#/system/bin/e2fsck -y $PART_DATA
#/system/bin/e2fsck -y $PART_CACHE
# to format the filesystems to ext3 use these commands
/system/bin/mke2fs -j $PART_DATA
/system/bin/mke2fs -j $PART_CACHE
mount -t ext3 -o nosuid,nodev,noatime,nodiratime,barrier=1 $PART_CACHE /cache
Once you have formatted /data and /cache you should be able to install CM9 - no need for any SBF flashing unless your phone is really messed up (as in 'deleted the stock kernel' or something like that).
THIS WILL FORMAT YOUR DATA PARTITION - ALL DATA WILL BE LOST! Or did I say that already?
No matter. THIS WILL FORMAT YOUR DATA PARTITION - ALL DATA WILL BE LOST! Just to be clear...

YetAnotherForumUser said:
Boot to recovery and turn on adb (in Advanced). Open a shell on the phone through adb from a PC.
Click to expand...
Click to collapse
Hi,
Highly appreciate your efforts.
I am new to Android, so could you please explain what "adb" is.
Thanks,
neiljain

SBF flash and data wipe in stock recovery should work too...
The other method is a bit more nondestructive, but probably harder for you
Sent from my MB526 using xda premium

thekguy said:
SBF flash and data wipe in stock recovery should work too...
Click to expand...
Click to collapse
Hi,
Could you please advise an SBF suitable for this.
I have a Defy+ that is locked to Telstra (Australia).
Thanks,
neiljain

Hi Everyone,
I will be taking the following steps to fix my Defy+.
I would like to reinstall CM9 (ICS) by quarx2k
Please advise if anything needs to be changed.
CWM
/data is corrupted, so no point in trying to wipe data and cache.
SBF
Flash DEFYPLUS_U3_4.5.1-134_DFP-231_CN_SIGN_UCADEFYEMARAB1B50AA009.0R_PDS03C_USAJRDNGIBRIRD15_P015_A030_Service1FF.sbf
Rooting
Flash firmware.sbf
2ndinit
Install SndInitDefy_2.3.apk
CWM
Wipe data and cache and Dalvik cache in recovery.
Install from zip CM9-NIGHTLY-120716-Defy+.zip
Install from zip gapps-ics-20120317-signed.zip
Install from zip Baseband_change(EP93_U_00.59.01).zip
Install from zip ICS_Defy_softunlock_v1.3(EPU_U_00.59.01).zip
Wipe cache and Dalvik cache
Reboot.
Thanks,
neiljain

Hi,
I tried flashing DEFYPLUS_U3_4.5.1-134_DFP-231_CN_SIGN_UCADEFYEMARAB1B50AA009.0R_PDS03C_USAJRDNGIBRIRD15_P015_A030_Service1FF.sbf.
The flash was successful, but the phone looping the boot animations, not actually loading Android.
I have also lost access to CWM and recovery.
Please help.
Thanks,
neiljain

[email protected] said:
remove SD card, log into Stable recovery mode. wipe data / factory reset and try rebooting.
if problem still persist, read your phone through RSD and flash CM7.2 file. let me know if you need link for the same.
It will work.
Regards,
Amit Sharma
Click to expand...
Click to collapse
Hi Amit,
Could you please send me the link to the CM7.2 SBF.
Highly appreciate your efforts.
Thanks,
neiljain

neiljain said:
Hi Amit,
Could you please send me the link to the CM7.2 SBF.
Highly appreciate your efforts.
Thanks,
neiljain
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1820282 its working, step by step guide, just flash the first SBF file through RSD lite and it should start. charge your battery first please.
All the best.

neiljain said:
Hi,
Could you please advise an SBF suitable for this.
I have a Defy+ that is locked to Telstra (Australia).
Thanks,
neiljain
Click to expand...
Click to collapse
adb is the Android Debug Bridge, a program running on both the phone as well as your PC which makes it possible to access your phone (through either a command line shell or some GUI-thing layered on top of it).
Are you also new to Linux and/or computers in general? In that case you're probably better off flashing the phone as detailed, even though that takes way more time and does involve more risks. If you feel comfortable running commands from a command line I'd advice you to install the ADK (Android Development Kit) on your PC, get adb working and run the commands as I explained. That way you regain access to your phone without all the hassle and risks involved in flashing all the way from SBF. Both methods work, so the end result should be the same.
I'm intentionally not going into excruciating detail on the task of installing and running adb as I don't think you should use your phone as a guinea pig to start experimenting with adb - for that use the emulator which comes with the ADK.

Success
Hi Everyone,
Thanks for your very helpful suggestions.
I was able to recover my phone after flashing the SBFs
Just to be on the safe side, I will stick with CM9.
I will also post the instructions on XDA for other people who have the same problem.
Once again, thanks everyone,
neiljain

neiljain said:
Hi Everyone,
Thanks for your very helpful suggestions.
I was able to recover my phone after flashing the SBFs
Just to be on the safe side, I will stick with CM9.
I will also post the instructions on XDA for other people who have the same problem.
Once again, thanks everyone,
neiljain
Click to expand...
Click to collapse
Thanks Buddy, I too stick to CM9, which is giving best battery 2 days and awesome UI. will move to CM 10 once we have stable version.
Njoy your Defy.

how were u able to flash any file... neither the bootmenu nor the recovery is working... please revert back.

Related

[TPT] CM10 Cannot wipe cache

Hi everyone, I recently rooted my 16GB WE TPT and installed cm10 v.0.8.1 and I love the performance and everything, if only there were no reboots. After reading in this forum I wanted to try to reinstall things from scratch wiping everything. For some reason I don't seem to be able to to anything with the data that is on my TPT. Neither can I do a factory reset from settings nor can I wipe data from Recovery. It doesn't display an error but it just doesn't delete anything. Then I tried to restore my backup from my original rom but this doesn't work either: it says error while restoring data (after recovery and system).
Can anyone help me? Could I have accidentally locked the data or anything?
Btw, Google Play has stopped working after my last try to restore stock and then install cm10 again.
In cwm you find under advanced a setting called "fix permissions". Try that
emuandco said:
In cwm you find under advanced a setting called "fix permissions". Try that
Click to expand...
Click to collapse
Doesn't do anything.
idewis said:
Doesn't do anything.
Click to expand...
Click to collapse
Hi, i had big problems with my Data-Partition. The Partition was read-only. No wipe with CWM was possible. Is that the same problem what you have? Do you have an logcat? Any error-messages?
Wiping was only possible with adb...
Here is my post: http://forum.xda-developers.com/showthread.php?t=1944759
When it is the same problem, it exist an solution...
Greetings
tpauli said:
Hi, i had big problems with my Data-Partition. The Partition was read-only. No wipe with CWM was possible. Is that the same problem what you have? Do you have an logcat? Any error-messages?
Wiping was only possible with adb...
Here is my post: http://forum.xda-developers.com/showthread.php?t=1944759
When it is the same problem, it exist an solution...
Greetings
Click to expand...
Click to collapse
I don't have the same error messages you have/had, but I could image that my data partition is also read only since I can neither delete or install anything. What did you do to get rid of that problem?
The solution was to completely format the data permission. This can't be done in CWM directly because CWM tries to keep the folder /data/media, which is your internal sd-card and only deletes the other files (That's obviously not formating). In the link you can find a zip files that you can "flash" in CWM, it will format the data partition and does nothing else. After using it you should also manually wipe the cache using CWM.
Like i said, this will include your internal sdcard! Make backups first if you have important data stored on it!
http://ubuntuone.com/4zKT1jqeqhR8qdGh2y4TaM
I need to clear it - if I do "wipe data/factory reset" in stock ICS recovery menu - will it cause deleting ROM (and reboot will make brick) OR just will get it back to clean factory ROM?
I found few threads here about "wipe data"-thing, but it seems to me, that every version of Android / custom ROM / recovery type could behave different.

CM10 - Can't install nandroid backup - "Error while restoring /system"

Dear all,
I was on Quarx CM10 build 20121118, then just tried this http://forum.xda-developers.com/showthread.php?t=2080556 and managed to kill my phone. I think what happened was that the data partition was full and an empty services.jar was written back. But whatever I thought I am a lucky guy because I did a full backup in custom recovery just the night before.
So I went into custom recovery, did a factory reset, wiped all I could and selected restore system and data.
But all I get is "Error while restoring /system" And "error while restoring android secure".
I spent the whole day searching the forum, found something about formatting system/data to ext3, tried that with no change.
Any help would be greatly appreciated. Would be even greater if you could explain the steps understandable for an idiot like me.
Thanks in advance,
Matthias
mmbytes said:
Dear all,
I was on Quarx CM10 build 20121118, then just tried this http://forum.xda-developers.com/showthread.php?t=2080556 and managed to kill my phone. I think what happened was that the data partition was full and an empty services.jar was written back. But whatever I thought I am a lucky guy because I did a full backup in custom recovery just the night before.
So I went into custom recovery, did a factory reset, wiped all I could and selected restore system and data.
But all I get is "Error while restoring /system" And "error while restoring android secure".
I spent the whole day searching the forum, found something about formatting system/data to ext3, tried that with no change.
Any help would be greatly appreciated. Would be even greater if you could explain the steps understandable for an idiot like me.
Thanks in advance,
Matthias
Click to expand...
Click to collapse
You can't restore nandroid of CM10/9, i dont know why, but i also can't restore cyanogenmod nandroid backups, stock roms backups are restoring fine, but cm - still no luck. PS: your system is ext3, because we have locked boot. Data and other partitions restoring fine except cm backups.
mmbytes said:
Dear all,
I was on Quarx CM10 build 20121118, then just tried this http://forum.xda-developers.com/showthread.php?t=2080556 and managed to kill my phone. I think what happened was that the data partition was full and an empty services.jar was written back. But whatever I thought I am a lucky guy because I did a full backup in custom recovery just the night before.
So I went into custom recovery, did a factory reset, wiped all I could and selected restore system and data.
But all I get is "Error while restoring /system" And "error while restoring android secure".
I spent the whole day searching the forum, found something about formatting system/data to ext3, tried that with no change.
Any help would be greatly appreciated. Would be even greater if you could explain the steps understandable for an idiot like me.
Thanks in advance,
Matthias
Click to expand...
Click to collapse
That's the point formatting system & data to ext3, but make sure don't wip data & cache after rom installed without reboot , since you're still under CM10's bootmenu.
Hope this helps .
Sent from my GT-N7100 using xda app-developers app
donf6938 said:
That's the point formatting system & data to ext3, but make sure don't wip data & cache after rom installed without reboot , since you're still under CM10's bootmenu.
Hope this helps .
Click to expand...
Click to collapse
Sorry, no. I do not understand what you mean. Could you please describe the steps?

[Q] CM10 - Quarx - OK that System is full?

Hi there,
is it normal that /system is full? I'm on Quarx CM10.
Please see screenshot.
Thanks,
Matthias
Not ok.
I've asked in CM10 FAQs tread why system is full after clean install, answer is Full Gapps is the culprit.
http://forum.xda-developers.com/showpost.php?p=36151535&postcount=816
So, do a clean install again and use this minimal Gapps instead. http://d-h.st/lxT
Thanks.
Here is what I did:
Boot into custom recovery
Selected factory reset
wipe cache / dalvik
Installed CM10 20121118 nightly
Installed JB Mini GApps
Wipe cache / Dalvik again
When I do that I get to 9MB free system....
Does the factory reset format the system partition?
Is of no importance if you have free space on /system. If you wanna make some room on ROM partition you can remove some system app. But again, no benefit.
To finish this thread, I found help here: http://forum.xda-developers.com/showpost.php?p=36380618&postcount=2
Got the ext4 full wipe script here: http://forum.xda-developers.com/showthread.php?t=1818520
Did a full wipe and flashed CM 10 + mini apps and back to 50mb.
I think I will do this all the time now so stuff does not stay in the system partition.
Anyone can help how I can do this without a working CWM ? I updated from 7.2 to Quarx CM10 but failed to see that I should only install the minimal gapps (the howto (wrongly?) mentioned "Use the last gapps-jb-2012XXXX-signed.zip" http://forum.xda-developers.com/showthread.php?t=1795647 )
First CM10 didnt boot at all (only saw the rotating ring, and had to remove the battery), then I entered stock recovery and wiped data/factory reset. Now it boots somehow, but it asks me for google account etc. each time and is quite slow overall. I then saw /system only has some kilobytes free space. If I boot to system menu or recovery, it just normally reboots.
Remounting /system RW as root didnt work.
Any way to still be able to clean up /system ?? I also couldnt write a SBF with sbf_flash in linux. Do I need windows with RDS Lite and a specific SBF ? I tried the SBF mentioned there below "Common Problems/Questions" for recovery: http://forum.xda-developers.com/showthread.php?t=1216982 "JORDN_U3_97.21.51"
------
EDIT:
I am sorry, I was too stupid to press the down button in the right moment when the blue led is on.
But I am wondering why no howto mentions to clean up /system .. I always thought this is handled by some script in the update.zip files. It is clearly a very bad idea to NOT clean up system. It will be stuffed full with data garbage between your normal files ...

[Q] Can't mount /data after Quarx's CM 10.2

After installing Quarx's CM 10.2 october 30th nightly (defy, not plus) the device seemed to be working normal but I then soon noticed that no internal storage is detected. (meaning I also could not install apps from the play store) Upon restarting, I go through the entire 'first time' sequence again and any thing I did before I restarted was not saved. I think this is because, when entering TWRP and going to mount, data is the only partition that it will not allow me to mount. Attempting to wipe the data partition yields the result 'unable to mount /data'. Is it possible to mount somehow in adb or terminal? Is anyone else having this issue? And is there any known fix?
InhibitorIota said:
After installing Quarx's CM 10.2 october 30th nightly (defy, not plus) the device seemed to be working normal but I then soon noticed that no internal storage is detected. Upon restarting, I go through the entire 'first time' sequence again and any thing I did before I restarted was not saved. I think this is because, when entering TWRP and going to mount, data is the only partition that it will not allow me to mount. Attempting to wipe the data partition yeilds the result 'unable to mount /data'. Is it possible to mount somehow in adb or terminal? Is anyone else having this issue? And is there any known fix?
Click to expand...
Click to collapse
Well , I had this problem too , but not with this ROM , enter in Motorola stock recovery , and make a wipe , after that , you should flash again a SBF , and put it again.. , or if you can still flash something , try to flash the 10.2 CM again.
Danarkin22 said:
Well , I had this problem too , but not with this ROM , enter in Motorola stock recovery , and make a wipe , after that , you should flash again a SBF , and put it again.. , or if you can still flash something , try to flash the 10.2 CM again.
Click to expand...
Click to collapse
But it won't let me. :/ Like I said before, attempting to wipe the data partition just gives me 'Unable to mount /data'. Does that mean the partition is corrupted, or can it be mounted somehow in the terminal? This has really become a headache...
As an update, I actually was able to wipe in the stock recovery, but going back to TWRP now shows that both my data and cache partitions cannot be mounted (or still corrupted). Would flashing a new sbf fix that? I can still access cyanogen if I boot normally but it is the same as before, no internal storage and nothing is saved after reboot.
InhibitorIota said:
But it won't let me. :/ Like I said before, attempting to wipe the data partition just gives me 'Unable to mount /data'. Does that mean the partition is corrupted, or can it be mounted somehow in the terminal? This has really become a headache...
As an update, I actually was able to wipe in the stock recovery, but going back to TWRP now shows that both my data and cache partitions cannot be mounted (or still corrupted). Would flashing a new sbf fix that? I can still access cyanogen if I boot normally but it is the same as before, no internal storage and nothing is saved after reboot.
Click to expand...
Click to collapse
Did you try to wipe data and cache in stock recovery ? I don't know if you will flash a SBF will fix that , try to wipe data and cache too , and after that if you can't boot , flash a SBF.

[Q] Cache and Data mount issues

So I've been using various JB ROM's on my Defy for the past couple of years, but this time I made the mistake of using the factory reset within the stock recovery. I found a thread that mentioned using the "ultimate wipe" for defy and then reflashing my ROM of choice would fix issue, but when I use the wipe the custom recovery still tells me it is unable to mount /cache or /data on my phone.
My phones internal storage is also showing as 0, so I am unable to install any apps etc.
I'm completely stumped right now, so any help at all would be greatly appreciated. I'll provide any further information I can if its needed, thanks in advance
DSpartox said:
So I've been using various JB ROM's on my Defy for the past couple of years, but this time I made the mistake of using the factory reset within the stock recovery. I found a thread that mentioned using the "ultimate wipe" for defy and then reflashing my ROM of choice would fix issue, but when I use the wipe the custom recovery still tells me it is unable to mount /cache or /data on my phone.
My phones internal storage is also showing as 0, so I am unable to install any apps etc.
I'm completely stumped right now, so any help at all would be greatly appreciated. I'll provide any further information I can if its needed, thanks in advance
Click to expand...
Click to collapse
I think you need to start over from SBF.
Sent from my Nexus 7 using Tapatalk
DSpartox said:
So I've been using various JB ROM's on my Defy for the past couple of years, but this time I made the mistake of using the factory reset within the stock recovery. I found a thread that mentioned using the "ultimate wipe" for defy and then reflashing my ROM of choice would fix issue, but when I use the wipe the custom recovery still tells me it is unable to mount /cache or /data on my phone.
My phones internal storage is also showing as 0, so I am unable to install any apps etc.
I'm completely stumped right now, so any help at all would be greatly appreciated. I'll provide any further information I can if its needed, thanks in advance
Click to expand...
Click to collapse
Your partitions might have a problem and the wipe script doesn't format them, it just deletes their contents. In the bootmenu you can format your /data and /cache partitions (ext4); if that doesn't work, then yes, gotta start over from SBF.
Antiga Prime said:
Your partitions might have a problem and the wipe script doesn't format them, it just deletes their contents. In the bootmenu you can format your /data and /cache partitions (ext4); if that doesn't work, then yes, gotta start over from SBF.
Click to expand...
Click to collapse
Thank you heaps for the help. I just decided to go ahead and reflash SBF. That all went fine, RSDlite gave a pass. I then went into the stock recovery in order to do the factory reset again before I root, and Data now formats, but Cache throws up the error "E:Can't mount CACHE:recovery/log".
The actual phone seems to work fine if I boot it up, but that error just makes me wonder as I'm not sure how much of a problem it really is

Categories

Resources