yashsingh1/xdaforums huggingface dataset:
[Captivate Android Development] ImperiousRex89:
Man on my old captivate I used to have this problem. I was using this external sdcard workaround for a few months but It somehow fixed itself and now the internal sd card works great. Guess I was lucky.
[Captivate Android Development] misiekthcteam:
In this guide is mistake. This code work for me (i test it on 2 devices):

## Vold 2.0 Generic fstab

## - San Mehat (san@android.com)

##

#######################

## Regular device mount

##

## Format: dev_mount <label> <mount_point> <part> <sysfs_path1...>

## label - Label for the volume

## mount_point - Where the volume will be mounted

## part - Partition # (1 based), or 'auto' for first usable partition.

## <sysfs_path> - List of sysfs paths to source devices

######################

# internal sdcard

dev_mount emmc /mnt/emmc 1 /devices/platform/s3c-sdhci.2/mmc_host/mmc2

# external sdcard

dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.0/mmc_host/mmc0

Just copy all paste to vold.fstab, save and copy to etc directory. ;)
[Captivate Android Development] thebulletfromhell:
ICS and JB have different syntax I'm pretty sure.

Also, I noticed something the other day. Randomly, the EFS partition would fail to mount and appear as empty. Generic IMEI, unknown Baseband, etc... Flashing a different modem does nothing. It take a restock + reflash to restore to normal. Suspiciously similar to this bug
[Captivate Android Development] gr888:
my device captivate also has this issue but i dont get that android screen after hitting reset phone I get the same encryption unsuccessful message again. I am confused whether i should use this guide because i dont get that screen after hitting reset. Any suggestions? Thanks
[Captivate Android Development] jonnyg1097:
I know this is a couple months old but could you explain a bit more on how a newbie like myself could put this in?
[Captivate Android Development] blazedj:
Hi. I've just recovered Cappy yesterday.

Had to reflash one-click stock first because the phone won't boot at all for some reason. Also Vol- + power combo was not working for me.

Here's my guess: since you're on GB bootloaders already, you only need to flash 2.3.x build. I used "I897UCKI2 Android 2.3.5 Gingerbread (without bootloaders)". If you can access CWM, make a full backup and wipe first. Get usb drivers and put the phone to download mode (hold vol+ and vol- while plugging in usb cable). If it boots after reflash, go to Settings-Applications-Development and turn on USB debugging. If not, flash Android 2.1 (no BL) and then Android 2.3 (no BL). Now use adb from Android SDK:

adb reboot recovery

(if Vol+ and power key combo does not work)

Now you can partition SD card and mount USB storage to copy Cyanogenmod (in CWM). I've used CM 10.1.3 stable.

After CM boots, open built-in file manager, turn on root mode in settings, switch to r/w (lock icon) and then go to /system/etc/ and edit vold.fstab.

It looks a bit different but the idea is to swap two "0" numbers and two "2" numbers. No need to swap "sdcard0" and "sdcard1". Then reboot.

Please try and let us know.
[Captivate Android Development] jonnyg1097:
That doesn't help me out since I was never able to boot up the phone to begin with no matter what I ended up flashing onto my phone with those one click bootloaders.
[Captivate Android Development] blazedj:
So, does it boot after you flash one-click?
[Captivate Android Development] dawei213:
Well, I'd like to say, after having not used my Captivate over the past 1.5 year because of getting a new phone after I got hit with the Encryption Unsuccessful bug and used the method in OP's post to get it running, I decided to power up my phone to use it as a simple xbmc remote control. Well, surprise surprise, my internal SD card came back to life. I'm pretty stoked only because I am not able to retrieve so many memorable and precious photos I thought was lost forever. I have not changed anything since then. Maybe have the device completely drained for an extended amount of time does something to the system?
[Captivate Android Development] thebulletfromhell:
No, there has been cases where it revived before. I think it can just be attributed to a hardware failure
[Captivate Android Development] jonnyg1097:
It just gets stuck in a bootloop. It never fully boots up. And I can't get into recovery mode only download mode.
[Captivate Android Development] blazedj:
Have you tried Eclair (Android 2.1) build? Always worked for me when Gingerbread did not boot.
[Captivate Android Development] thebulletfromhell:
Froyo/Eclair should boot, however, there is a better way:

1. Flash GB

2. Flash a custom kernel with recovery

3. Flash CM9

4. Flash the patch here: http://xdaforums.com/showthread.php?p=46789010

Note: The JB version is only applicable to 4.1.2 AFAIK. 4.2 and 4.3 have different syntax for the void.fstab file
[Captivate Android Development] jonnyg1097:
Whoa this is weird now, so I was going to try your method and so I first flashed I897UCKI2 with Boog's Kernal which worked properly and I went into recovery mode and flashed CM9 via an external SD card (I also had the patch on it and was going to do that next), and then it booted me directly into the OS which is pretty awesome. So I wanted to try it without the sd card on it and it booted up fine but it went directly to the Encryption Unsuccessful screen once again. The phone is shut down now and recharging but does this mean I should grab another rom and flash over it or should I still flash the void.fstab patch on to it and then get another rom to flash on it?
[Captivate Android Development] thebulletfromhell:
If it works, it works. Leave it alone :)
[Captivate Android Development] jonnyg1097:
I like the way you think. :cowboy: I think I will just do that.
[Captivate Android Development] fb767:
The URL no longer works, can someone post a mirror? Or is this outdated?
[Captivate Android Development] leezrd:
Here is jellybean and let me know if need ics I can get off my old laptop https://www.dropbox.com/s/2yuteqsmedd62mi/EMMC_Reverse_Fix_Jellybeans.zip
[Captivate Android Development] giongto500:
Do you guys have any recommendation for the type of ext SD card to use? Would a class 10 SD card give better performance & less lags compared to a class 4 SD card?

Thanks.

And as a side note, my internal SD went dead first time last August then it went back to life sometime in March this year, but unfortunately it's gone dead again last month. :(
[Captivate Android Development] romanr:
Restoring efs partition fixes the thing

I've found that restoring /efs from backup makes internal /data work again. SGH-i927 though.
[Captivate Android Development] parkerdjohnson:
That sounds interesting, I wonder if I can dig an old one up.... I feel a little more adventurous now that my captivate isn't my main squeeze anymore.
[Captivate Android Development] lesterkravitz:
kitkat workaround

Are there any tutorials on what to edit for a kitkat workaround? I tried the jellybean zip and it does not work.

Nevermind installed neat kernal
[Captivate Android Development] leezrd:
How did you get it to restore.. Not working for me
[Captivate Android Development] romanr:
NOT a guide

Reboot into recovery, mount /efs

$ rm -Rvf /efs/* /efs/.*

$ tar -xvf /sdcard/efs.tar

Reformat /data and /cache.

(!!! you should know what exactly each the command do, else go to the service center or spend 5+ years for the CS education !!!)
[Captivate Android Development] leezrd:
Thanks I was trying to use efs tool.. Lol
[Captivate Android Development] ps3best:
guys i'm with a big problem

i flshed my phone with odin to stock rom but when i install ics with cwm says the error of encryption and i did this all process but didn't worked,and i install the patch http://xdaforums.com/showthread.php?p=46789010 and it says installation aborted,anyone can help me ?

it works everything with stock rom

i'm running cm7 mmb right now
[Captivate Android Development] solo012:
Guys, anyone tried swap the SD in android 4.2 or onwards?

I able to flash to CM10.2.1 official stable but vold.fstab is nowhere to be found.

Methods of some thread had been applied but not working.

Such as:

1. http://xdaforums.com/showthread.php?t=2426804

- change value from 0 to 1 on line persist.sys.vold.switchexternal=0

2. App "External 2 internal" mentioned in http://xdaforums.com/showthread.php?t=2414162&nocache=1
[Captivate Android Development] leezrd:
Try this. https://www.dropbox.com/s/hl9if1zx6iok1xs/EMMC_Reverse_Fix_Jellybeans.zip

Worked fine for me
[Captivate Android Development] Nihar:
Will it work on 4.2.2 and 4.3?
[Captivate Android Development] leezrd:
Has for me no problemo
[Captivate Android Development] Nihar:
Yesterday when i tried, it gave me a status 7 error
[Captivate Android Development] leezrd:
What did you flash over? It worked on slim bean for me

Edit: just tried no problem with CWM 6.3
[Captivate Android Development] Nihar:
actaully i flashed it over hellybean 4.2 rom

i flashed it right after flashing the rom..

should i allow the rom to boot first?
[Captivate Android Development] leezrd:
Are you using CWM or twerp?
[Captivate Android Development] Nihar:
CWM...
[Captivate Android Development] leezrd:
Maybe something to do with hellybean because no problem on 4.2&4.3 with slimbean and cm
[Captivate Android Development] Nihar:
okayy..

i'll give it a try afterwards...
[Captivate Android Development] cristianpark:
Have the encryption Unsuccessful after installing CMW and Wipe Dalvik. I was copying files from sdcard to pc in order to use the SD card for the procedure described here, meanwhile I downloaded Droid Razr Utility [1] and give it a try. I successfuly re-flashed 4.1.2 and everything seems to work just fine now, no more encryption problem or anything (I'll have to check a battery drain/no sense battery info issue nevertheless)

[1] http://xdaforums.com/showthread.php?t=2192467
[Captivate Android Development] leezrd:
Anyone found a solution to fix the sd card yet
[Captivate Android Development] azunino:
There is no solution. It's hardware related. In my captivate the system log began showing I/O timeouts and then finally did not boot anymore because /data was not there anymore.
[Captivate Android Development] leezrd:
I know it is hardware I was wondering if anyone found a solution
[Captivate Android Development] thebulletfromhell:
Mine borked last month, but it was weird though. Instead of going to recovery or Encryption Unsuccessful, it just wouldn't boot past the Semaphore kernel screen (I was running Slim Bean 4.2.2, with the bundled Semaphore kernel). Can't get into recovery mode either. /shrug.
[Captivate Android Development] hazedabeast:
so could i use the emmc zip with kk?
[Captivate Android Development] giongto500:
Hey, are you able to swap internal SD card to the external SD in kitkat? I've been hunting for that.

If you know anything please let me know.

Thanks lots.
[Captivate Android Development] Boba Phil:
Sorry for the bumpage on this, but I'm being going mental.

OK, so the internal memory has become read only (some how), so I cannot update or do anything with the tab I have. I can't update CWM or the ROM, since it won't write.

I've found this thread in connection with mounting the boot on an external card, but, it's not working.

When I get to step 5 : Download the latest build of ICS for your phone and put it on your micro SD card. (You can mount it to your computer at this point in CWM with 'mounts and storage' 'Mount USB storage')

I cannot do this, since my outdated CWM doesn't have the option to Mount USB storage. So when I try to install the latest ROM, it won't install, since it's trying to write to the internal memory, which is read only, so Status 7 error. I can't update CWM either.

I'm screwed, right?

I have found that you can use the Emulator to make the memory not read only : HERE, but since everything is crashing and I have a pop up telling me so, every single second, I cannot get into the emulator to try it.
[Captivate Android Development] thebulletfromhell:
Its been two years, I don't think people really cares anymore, but anyway, my phone just came back to life. Yea......

Left it over the weekend uncharged, plug it in overnight, it reported encryption unsuccessful. Restarted in recovery, suddenly I could see the internal SD again. I switched back to ICS a while ago.
[Captivate Android Development] zingzing09:
thank you very much i got it
[Captivate Android Development] Gill Android:
[MENTION=1994897]cgugino[/MENTION] Thank you so much for your guide. I was facing the same issue on my Note II and give it a try and it worked like a charm. Both my Internal and External are fully working now
[Captivate Android Development] zeeshanonlyme:
This happened to my Note 2 today. I was on Resurrection Remix. Will follow the guide soon and revert back
[Captivate Android Development] Gill Android:
Best of luck bro
[Captivate Android Development] zeeshanonlyme:
Im confused. After partitioning the card,changing swap to 0 and file system to ext4, what to do since note 2 doesnt have an ICS package.

P.S. I was on CM12.1 when this bug hit me.
[Captivate Android Development] Gill Android:
No issue, I also faced this problem in 12.1. Just do clean flash of 12.1 after partitioning
[Captivate Android Development] zeeshanonlyme:
I repartitioned with stock rom 4.4.2

Before i left home it was stuck on Samsung bootlogo

30 mins should be more than enough for it to boot up

Will report back when i reach home

---------- Post added at 09:59 AM ---------- Previous post was at 09:20 AM ----------

Update

It didn't boot up initially.

Flashed twrp from odin and did a factory reset

And yay it booted

Stock 4.4.2 rom

Thanx!

---------- Post added at 10:07 AM ---------- Previous post was at 09:59 AM ----------

Update 2

I still have ALL MY DATA intact even after flashing stock rom via odin and pit!
[Captivate Android Development] Gill Android:
So it means problem resolved now?
[Captivate Android Development] zeeshanonlyme:
Yup. Good as new
[Captivate Android Development] Gill Android:
Great Bro. And please give a thumbs up to [MENTION=1994897]cgugino[/MENTION] :)
[Captivate Android Development] M.FANDIES:
thanks very much for [MENTION=1994897]cgugino[/MENTION] and this useful post
[Captivate Android Development] akki61195:
I am facing the same problem, but the additional problem is there

I am facing the same problem, but the additional problem is there that the reset now button is not working, :confused:that means i can not do hard reset using given button below the message of "Encryption unsuccessful" :(:( .

Please provide me the solution for that.:confused::confused::confused::confused::confused::confused:

The mobile model is Micromax A111 , with jelly bean 4.1 android OS .

The other thing that i want to tell that, i didn't play with customized ROM :eek:, means i didn't root the phone as well , the problem occurred suddenly while using the phone..

Thank you...:):):):)
[Captivate Android Development] Theta_Obee:
i have encountered the same error, but the thing about my situation is that my phone has a built-in SD card ( apart from the internal phone storage) .. so i don't know how to make this workaround work for me. and i MAY have left my phone on USB debugging disabled before it gave me this encryption error. primarily, im concerned about how to recover the files i have in the built in SD card storage, but i'll be happier to get all my files back AND get my phone working again. any help on this?
[Captivate Android Development] potheadpixis:
what if there is no CWM ?

OK, so what if there is no CWM ?
[Captivate Android Development] Gill Android:
You NEED CWM as the files which need to be flashed need it. Afterwards you can flash any recovery of your choice
[Captivate Android Development] sathamh12:
Lenovo a6000 plus

hi bro, I am using lenovo a6000 plus. actually i am installed custom rom. one day mobile automatically mobile switched after on the mobile encryption unsuccessful coming like this. what i can do. plz solve this problem bro.
[Captivate Android Development] Gill Android:
Go to first post and do as directed
[Captivate Android Development] tataboga:
Can someone help me my phone is Xperia c2305, my device won't detected by ADB so I can't enter recovery mode.

-How can I connect it to pc? is it when the phone turn off or turn on?

I've tried both of it but still cannot connect.

when turn off I press volume down while plug the usb (the indicator light is green which is connected) but when I check the ADB it says no device is connected.

-When turn on the windows MTP usb device failed to instal.

I've tried to google it for a few days now but still don't know how I can connect my phone
[Captivate Android Development] tataboga:
I don't have cwm/twrp installed on my phone. And my phone is not root. I don't know If I'm able to enter adb using usb debugging mode because I can't go to setting to enable it.

So, the only thing that I can now is only enter android recovery from sony (My device is Sony Xperia C2305) and just connect to pc via adb sideload. Can I fix my phone from this Encryption problem using adb sideload? Because I don't know how to do it using adb sideload...

or are there any solution for me to connect my phone to adb ?

maybe someone can help me? :')

The menu looks like this (this is not my phone though)
[Captivate Android Development] Slayer_b:
Flashed 2.1 Eclair with bootloaders I897UCJF6-final-OCD-REV0.exe, then ATT GB bootloaders OneClickI897UCKF1-bootloaders.exe, then stock kk4 ATT SGH-I897_I897UCKK4_UC_ATT then boog_KJ3_kernel3 (kk4 samurai didn't work). In CWM makes ext partiton like described in OP, then installed ICS THS. Only in this order all went good, without reflashing to 2.1 stock I got /dataDB mounting failed and phone ALWAYS reboots to recovery only...

Maybe my post will be useful for somebody.....

PS I'm so upset by losing the internal memory...:(:( I hope this issue will be fixed soon....

Update:

1|root@android:/ # [B]mount[/B]
mount
rootfs / rootfs ro,noatime,nodiratime 0 0
tmpfs /dev tmpfs rw,nosuid,noatime,nodiratime,mode=0755 0 0
devpts /dev/pts devpts rw,noatime,nodiratime,mode=600 0 0
proc /proc proc rw,noatime,nodiratime 0 0
sysfs /sys sysfs rw,noatime,nodiratime 0 0
none /acct cgroup rw,noatime,nodiratime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,noatime,nodiratime,mode=0755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,noatime,nodiratime,mode=0755,gid=1000 0 0
none /dev/cpuctl cgroup rw,noatime,nodiratime,cpu 0 0
/dev/block/mtdblock2 /system yaffs2 ro,noatime,nodiratime 0 0
/dev/block/mtdblock3 /cache yaffs2 rw,nosuid,nodev,noatime,nodiratime 0 0
/dev/block/mtdblock5 /radio yaffs2 rw,noatime,nodiratime 0 0
/dev/block/mmcblk0p2 /data ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=writeback,noauto_da_alloc 0 0
/dev/block/mtdblock6 /datadata yaffs2 rw,noatime,nodiratime 0 0
/dev/block/mtdblock4 /efs yaffs2 rw,noatime,nodiratime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,noatime,nodiratime 0 0
/dev/block/vold/179:1 /mnt/emmc vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodi
ratime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,i
ocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

root@android:/ # [B]fdisk /dev/block/mtdblock1[/B]
fdisk /dev/block/mtdblock1
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT di
sklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.

Unknown value(s) for: cylinders (settable in the extra functions menu)

Command (m for help): <

Could someone with not "encrypted" phone post output of these commands?
[Captivate Android Development] amtrakcn:
I switched from CM9 to AOKP build27 today.

After starting an titanium backup batch operation for a while, when I look at the screen again I get this Encryption Unsuccessful message.

Unlike the OP, after I hit Reset Phone, the phone restarts and returns to the Encryption Unsuccessful screen.

Unfortunately I odined a UCKJ3 package and since then /data and /sdcard become totally unaccessible. Samsung ROMs won't even pass bootloop. Odin flashed several other packages with pit and did not help.

Cappy is my backup phone so I'm not going for the external sd path. Also there is data on my internal SD that I'm not willing to lose. I'm not knowledge enough so I'm just reporting the problem here and see if any solution could come up.

I'm still doubtful to the hardware issue assumption, as there had never been such massive appearance of storange failure before CM9 and since Captivate was manufactured across a wide time range, it's unlikely they are all going to fail at the same time...

Also it seem not only Samsung devices got random encrypts, but also many other devices:

Xoom: http://xdaforums.com/showthread.php?t=1494650

TouchPad: http://xdaforums.com/showthread.php?t=1512038

TF Prime: http://xdaforums.com/showthread.php?t=1529182

But with Odin the problem just got serious for us...
[Captivate Android Development] Slayer_b:
dmesg output without external SD

<3>[ 4.611351] mmc0: error -110 whilst initialising MMC card
<3>[ 6.216877] mmc0: error -110 whilst initialising MMC card
<3>[ 7.826266] mmc0: error -110 whilst initialising MMC card
[B]<4>[ 7.889218] mmc1: queuing unknown CIS tuple 0x80 (50 bytes)
<4>[ 7.900774] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
<4>[ 7.940791] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
<6>[ 7.953859] mmc1: new SDIO card at address 0001[/B]
<4>[ 7.959380] F1 signature read @0x18000000=0x9934329
<4>[ 7.970356] DHD: dongle ram size is set to 294912(orig 294912)
<4>[ 7.975608] wl_create_event_handler thr:42 started
<4>[ 7.977836] dhd_attach thr:43 started
<4>[ 7.979519] dhd_attach thr:44 started
<4>[ 7.980490] dhd_attach thr:45 started
<4>[ 7.981750] wifi_get_mac_addr
<4>[ 7.991320] Broadcom Dongle Host Driver: register interface [wlan0] MAC: 00:90:4c:11:22:33
<4>[ 7.991514] wifi_set_power = 0
<4>[ 7.991605] =========== WLAN placed in RESET ========
<6>[ 7.991942] input: cypress-touchkey as /devices/virtual/input/input8
[B]<4>[ 7.992279] bcmsdh_sdmmc: probe of mmc1:0001:3 failed with error -110[/B]

Dmesg output with external SD

<3>[ 4.611413] mmc0: error -110 whilst initialising MMC card
<3>[ 5.545498] mmc0: error -110 whilst initialising MMC card
<3>[ 7.154276] mmc0: error -110 whilst initialising MMC card
[B]<4>[ 7.217503] mmc1: queuing unknown CIS tuple 0x80 (50 bytes)
<4>[ 7.229080] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
<4>[ 7.269035] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
<6>[ 7.281928] mmc1: new SDIO card at address 0001[/B]
<4>[ 7.338692] bcmsdh_sdmmc: probe of mmc1:0001:3 failed with error -110
[COLOR="Green"]<6>[ 7.536564] mmc2: new SDHC card at address e624
<6>[ 7.537020] mmcblk0: mmc2:e624 SU04G 3.69 GiB
<6>[ 7.541999] mmcblk0: p1 p2[/COLOR]
<6>[ 10.780779] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: noauto_da_al
loc

Am I right that the phone can recognize internal SD?
[Captivate Android Development] dvdscr:
same encryption problem on SGS - but no solution

i have the same encryption problem while upgrading from GB 2.3.6 or 2.3.3 to any version of ICS.

i tried all the versions of kernels and ROM's here and was unable to find a solution.

1. when i am on GB i go into CWM, do all the possible wipes

2. i install from SD the new ICS version

3. after the installation i do all the wipes again

4. then i reset the device.

each time, the device is showing me the startup animation and then i get a screen saying that the encryption was unsuccessful.

nothing helped from there, i did wipe to factory default again - did not help, i re-flashed again - nothing helped.

an interesting issue, after the encryption unsuccessful i got the device back into recovery mode and when i tried to load another zip from the sdcard i got an error in the device saying that my sdcard cannot be found.

i also tried the steps from this thread, got until step 8 but again got the encryption screen (and of course lost all data on my internal SD card).

is there a solution for this problem?
[Captivate Android Development] jorgemorales:
I am in the same situation.

But I was using WeUI 0.7 (MIUI4) Android ICS (4.0.3) and Glitch v14.