[Vibrant Q&A, Help & Troubleshooting] Merio90:
THIS GUIDE IS ONLY FOR ICS USERS WHO HAVE ENCOUNTERED THE ENCRYPTION UNSUCCESSFUL SCREEN ON THEIR PHONE. If you have no idea what the ENCRYPTION UNSUCCESSFUL screen is disregard this guide.

First and foremost I would like to thank and give credit to 'cgugino' for his guide over at the Captivate forums. Thanks to tabthelab and Woodrube for their helpful advice and guidence.

cgugino's guide (captivate)

http://xdaforums.com/showthread.php?t=1447303

This is a similar guide if not identical to his guide for "fixing" the Encryption Unsuccessful bug that occurs in certain ICS roms (DocMasters V5 confirmed). Not sure about other ICS roms.Here is a screenshot of the "Encryption Unsuccessful" screen that will eventually appear on your ICS rom.

If you have already selected reset phone well don't panic just proceed. It will not make a difference regardless.

Note: If you still have access to CWM not stock recovery proceed to step 6 and create your new partition. But REMEMBER TO BACK UP YOUR SD CARD AS IT WILL BE WIPED COMPLETELY. Do this by going under 'mounts and storage' > 'mount /emmc' or 'mount usb storage' in CWM

DO THIS GUIDE ONLY IF YOU HAVE ALREADY FLASHED BACK TO STOCK JFD THROUGH ODIN OR IF YOU NO LONGER HAVE ACCESS TO CWM. OTHERWISE READ THE NOTE ABOVE

WITH THAT BEING SAID THIS GUIDE DOES NOT FIX THE BUG. IT IS A WORKAROUND TO CREATE A PARTITION ON YOUR SD CARD TO BE ABLE TO USE YOUR "BRICKED" PHONE AGAIN

So lets begin:

Tools/Files Needed

-ADB (Android Debugging Bridge) and Android SDK must be set up on your PC.

Here is a guide that shows how to setup ADB and SDK with the necessary drivers:

http://theunlockr.com/2009/10/06/how-to-set-up-adb-usb-drivers-for-android-devices/

-You need the latest ODIN 1.7 or whatever the latest version is along with the .pit file found here:

http://xdaforums.com/showthread.php?t=848737

-Download this froyo .tar and extract it to the same directory where you have odin.

http://xdaforums.com/showthread.php?t=833024&page=49

-Download CWM from here:

http://sourceforge.net/projects/stockodinjfd/files/update.zip/download

-Download any ICS rom :) Yes an ICS rom. You will use later to flash in CWM.

-You need a microSD card 8gb or larger which you will use to create the partition.

Thats it I think.

Here are the steps:

1. Enter download mode. Remove your battery/Then insert your battery/ hold both Volume Up and Down rocker and plug in your usb cable. You should now see the yellow android dude and it should say "Downloading".

2. Open odin and select the .pit file along with the froyo .tar file you've downloaded from above. Make sure "Re-Partition" is checked under options in odin. Click start and patiently wait for the process to be completed. DO NOT UNPLUG YOUR PHONE YET

Once odin finishes wait till the phone boots up with the new froyo rom youve just flashed.

3. Once your phone boots up and is setup copy CWM update.zip to the root of your external SD card. Do this by selecting the "mount usb storage" option in the notification bar.

Or

You can also copy the update.zip using a sd card adapter (only if your pc has an sd card reader).

You can use another phone or device which has a micro sd card slot. Just insert the sd card and plug in that phone via usb and copy update.zip.

You can also use adb to copy the update.zip.

adb remount

adb push update.zip /mnt/emmc

You must have the update.zip in the "platform-tools" folder in the android-sdk before executing the commands above.

4. BACKUP YOUR EXTERNAL SD CARD WHILE YOU CAN. IT WILL BE ERASED WHEN CREATING THE NEW PARTITION

5. Unplug your phone. Enter recovery mode using the 3 button combo or through adb using the following command: adb reboot recovery

Hit reinstall packages in recovery if CWM is not set yet. It will eventually install just keep clicking reinstall packages.

6. Once your are in CWM create the partition by going to 'advanced' > 'Partition SD Card' > Choose your data partition size 2gb is fine > Swap size 0M > You will get an error but just ignore it.

WAIT WAIT and WAIT it will take more than 5mins to create the partition. Just be patient it will eventually finish.

7. Connect your phone and while still in CWM mount your "USB Storage" under 'mounts and storage' > 'Mount USB Storage'. Then copy your ICS rom along with the update.zip (just incase) to flash. Don't flash update.zip though just keep it on your sd for future use.

8. Now while still in CWM umount your USB Storage. Go Back and select Wipe data factory rest / clear cache. Then install the ICS rom you've downloaded and flash it. (I used ICS Passion v13) Again be patient and wait till it finishes flashing and ignore any errors.

9. Once it has finished flashing it will eventually reboot. Or select 'reboot system now' in CWM if it already hasn't. Now this part you will have to be extremely patient. It may take up to 10mins or more to boot up. Once finished just set up your system using the setup wizard on your phone if there is one.

10. Check to see if your new partition has been successfully created by going to: Settings/Storage. You may see that your new partition is still 'unavailable' or it may say something like 00 for available storage. Don't worry just proceed to the next step.

11. Now to see if your partition is mounted properly. (Most likely not)Open the camera app and check to see if you get a message saying "Insert an SD card before using the camera." or something along those lines. If you get this message proceed to the following step. If not well you are lucky :) And you are now finished.

12. Now get ready to use adb so make sure adb debugging is enabled in Settings/Developer Options/ Android debugging [checked]

Open a command prompt on your pc in directory in which you installed your android sdk package. It should be something like this

C:\android-sdk\platform-tools

While in the platform-tools folder click on a blank space and Hold the SHIFT key + RIGHT CLICK > and select 'Open Command Window Here'. Now a command window should show up. If it doesnt show up well you didnt set up the SDK package properly go back to the guide which i suggested and make sure you have it set up properly or else you will not be able to issue commands.

13. With the command window open and your phone plugged in. Enter these commands to swap your external sdcard with your internal storage. This is the part where you will now use your new partition as your primary storage or internal storage.

Type in the following code into the command window or copy and paste it (easier) Remember to press the enter key after every command:

1) adb devices "This is to check if your device is properly attached"

2) adb remount "This is to check if your device is properly mounted"

3) adb pull /system/etc/vold.fstab "This will copy the vold.fstab file to the platform-tools folder on your PC."

3a) Now open the vold.fstab file you've just copied to your PC located in platform-tools. Right click vold.fstab and open it with notepad for editing.

Or you can also use a root explorer type of app on your phone

to edit the vold.fstab file. This might be the easier option. Just

remember to reboot your phone after editing the file.

3b) With the vold.fstab file open in notepad edit the following lines:

(They should be at the very end of the file and look something like this)

Line 1:

internal sdcarddev_mount sdcard /mnt/sdcard 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0#

Replace both instances of sdcard with emmc

Line 2:

external sdcarddev_mount emmc /mnt/emmc auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2

Replace both instances of emmc with sdcard

Now that you have finished editing vold.fstab save the file close it and proceed to the next step.

3c) Now copy the edited vold.fstab file to your new partition by using the following commands:

adb remount "Followed by"

adb push vold.fstab /system/etc/vold.fstab "The file should now be overwritten."

REBOOT YOUR PHONE

IF YOU DON'T GET ANY ERRORS WHEN EXECUTING THE COMMAND ABOVE.

(READ BELOW "IN RED" BEFORE REBOOTING IF YOU GET AN ERROR IN THE COMMAND WINDOW)

YOU ARE NOW FINISHED. AND SHOULD BE ABLE TO USE YOUR PHONE AGAIN WITH THE NEW PARTITION MOUNTED PROPERLY

IF YOU GET AN ERROR IN THE COMMAND WINDOW saying permission denied or something enter the following commands.

adb push vold.fstab /emmc/vold.fstab

adb shell

su

mount -o remount rw /system

cp /emmc/vold.fstab /system/etc/vold.fstab

chmod 644 /system/etc/vold.fstab

mount -o remount ro /system

exit

exit

adb reboot "This command will reboot your device so don't panic."

Once you have entered the commands above. Your phone will reboot. And the new vold.fstab file will be programmed to mount your new partition as your primary storage. And you should be finished by now. Now to test it open the camera app once again and see if you get any error messages. If so repeat step(s) 13. Otherwise You should now see that you have 1.88gb internal storage for apps etc and about 13 gb for the user (Assuming you have a 16gb) It should look something like this:

(Continued)

YOUR ARE NOW FINISHED AND SHOULD BE ABLE TO USE YOUR PHONE ONCE AGAIN. DOWNLOAD AN APP FROM THE MARKET TO SEE IF EVERYTHING WENT WELL. ALSO MOUNT YOUR PHONE TO YOUR PC TO SEE IF THE NEW PARTITION IS BEING RECOGNIZED.

Notes:

-Those of you who are new to ADB remember to hit enter after every command. dont just copy and paste all of them and expect them to work.

-You must perform step(s) 13 everytime after flashing a new rom. Reason for this is because the new vold.fstab file in the new rom will overwrite the old one you have edited in step 13. So keep that in mind.

-I have only tried this with the latest build of ICS Passion v13. It may work for other ICS roms aswell but i cannot confirm. I have tried it with a froyo rom but was unable to successfully mount the new partition. As for GB roms well you are going to have to try that your self. All you have to do is edit the vold.fstab file (Step 13) they should be identical if not similar.

-You can also edit the vold.fstab file using "Root explorer" app on your phone if you have it.

-Remember you no longer have access to your old internal memory since it is gone and I don't know what happened to it. SO SAY GOODBYE TO YOUR OLD INTERNAL STORAGE.

-Do not remove your SD CARD while your phone is on. It contains all of your system files and will probably make your phone blow up if you do so.

-If you haven't already flashed back to stock 2.1 and still have access to CWM you can skip to step 6 and create the partition from there. But remember to BACKUP YOUR SD CARD because it will be wiped.

I haven't tried this method but i assume it will work the same. Give it a try and let me know what happens

Good Luck and feel free to ask me any questions. I will be more than happy to assist you if you need any help.