[Galaxy Tab 2 10.1" Android Development] loboz:
I installed TWRP 2.8.6.0 and follwed your instructions, and effectively I never get the "E/Cryptfs ( 105): Orig filesystem overlaps crypto footer region. Cannot encrypt in place." error.

However, all my encryption attempts failed.

I tried with different LP ROMS: latest Omni, latest CM12.1, latest Slim.

I always get the "Encryption unsuccesfull" message after each attempt.

This is a crypto excerpt from Slim logcat, there is a noticeable error "Error writing crypto_blkdev /dev/block/dm-0 for inplace encrypt":

I/Cryptfs ( 112): Check if PFE is activated on Boot

E/Cryptfs ( 112): PFE not activated

I/ActivityManager( 456): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.android.settings/.CryptKeeper} from uid 0 on display 0

V/WindowManager( 456): addAppToken: AppWindowToken{b5f568b token=Token{1f9645a ActivityRecord{2404dc05 u0 com.android.settings/.CryptKeeper t1}}} to stack=0 task=1 at 0

I/ActivityManager( 456): Start proc 1341:com.android.settings/1000 for activity com.android.settings/.CryptKeeper

D/VoldCmdListener( 112): cryptfs getpw

D/VoldCmdListener( 112): cryptfs clearpw

E/Cryptfs ( 112): not running with encryption, aborting

D/SubSettings( 1341): Launching fragment com.android.settings.CryptKeeperSettings

D/SubSettings( 1341): Launching fragment com.android.settings.CryptKeeperConfirm

I/ActivityManager( 456): START u0 {cmp=com.android.settings/.CryptKeeperConfirm$Blank (has extras)} from uid 1000 on display 0

V/WindowManager( 456): addAppToken: AppWindowToken{3962c493 token=Token{31d2582 ActivityRecord{2f57c8cd u0 com.android.settings/.CryptKeeperConfirm$Blank t5}}} to stack=1 task=5 at 4

V/WindowManager( 456): Adding window Window{12a524c9 u0 com.android.settings/com.android.settings.CryptKeeperConfirm$Blank} at 6 of 12 (after Window{1e0d2c15 u0 com.android.settings/com.android.settings.SubSettings})

I/ActivityManager( 456): Displayed com.android.settings/.CryptKeeperConfirm$Blank: +313ms

I/Timeline( 456): Timeline: Activity_windows_visible id: ActivityRecord{2f57c8cd u0 com.android.settings/.CryptKeeperConfirm$Blank t5} time:444729

D/Cryptfs ( 112): Just asked init to shut down class main

D/Cryptfs ( 112): unmounting /mnt/shell/emulated succeeded

D/Cryptfs ( 112): unmounting /data succeeded

I/Cryptfs ( 112): keymaster version is 2

I/Cryptfs ( 112): Using scrypt for cryptfs KDF

D/Cryptfs ( 112): Just triggered post_fs_data

D/Cryptfs ( 112): post_fs_data done

D/Cryptfs ( 112): Just triggered restart_min_framework

I/Cryptfs ( 112): Using scrypt for cryptfs KDF

I/art ( 2286): GenerateImage: /system/bin/dex2oat --image=/data/dalvik-cache/arm/system@framework@boot.art --dex-file=/system/framework/core-libart.jar --dex-file=/system/framework/conscrypt.jar --dex-file=/system/framework/okhttp.jar --dex-file=/system/framework/core-junit.jar --dex-file=/system/framework/bouncycastle.jar --dex-file=/system/framework/ext.jar --dex-file=/system/framework/framework.jar --dex-file=/system/framework/telephony-common.jar --dex-file=/system/framework/voip-common.jar --dex-file=/system/framework/ims-common.jar --dex-file=/system/framework/mms-common.jar --dex-file=/system/framework/android.policy.jar --dex-file=/system/framework/apache-xml.jar --oat-file=/data/dalvik-cache/arm/system@framework@boot.oat --instruction-set=arm --instruction-set-features=default --base=0x6fae0000 --runtime-arg -Xms64m --runtime-arg -Xmx64m --compiler-filter=verify-none --image-classes=/system/etc/preloaded-classes

I/dex2oat ( 2319): /system/bin/dex2oat --image=/data/dalvik-cache/arm/system@framework@boot.art --dex-file=/system/framework/core-libart.jar --dex-file=/system/framework/conscrypt.jar --dex-file=/system/framework/okhttp.jar --dex-file=/system/framework/core-junit.jar --dex-file=/system/framework/bouncycastle.jar --dex-file=/system/framework/ext.jar --dex-file=/system/framework/framework.jar --dex-file=/system/framework/telephony-common.jar --dex-file=/system/framework/voip-common.jar --dex-file=/system/framework/ims-common.jar --dex-file=/system/framework/mms-common.jar --dex-file=/system/framework/android.policy.jar --dex-file=/system/framework/apache-xml.jar --oat-file=/data/dalvik-cache/arm/system@framework@boot.oat --instruction-set=arm --instruction-set-features=default --base=0x6fae0000 --runtime-arg -Xms64m --runtime-arg -Xmx64m --compiler-filter=verify-none --image-classes=/system/etc/preloaded-classes

I/Cryptfs ( 112): load_crypto_mapping_table: target_type = crypt

I/Cryptfs ( 112): load_crypto_mapping_table: real_blk_name = /dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS, extra_params =

E/Cryptfs ( 112): Cannot load dm-crypt mapping table.

I/Cryptfs ( 112): Encrypting ext4 filesystem in place...

I/Cryptfs ( 112): Encrypting group 0

E/Cryptfs ( 112): Error writing crypto_blkdev /dev/block/dm-0 for inplace encrypt

I/Cryptfs ( 112): Encrypted to sector 0

E/Cryptfs ( 112): Error encrypting groups

D/Cryptfs ( 112): cryptfs_enable_inplace_ext4()=-1

E/Cryptfs ( 112): Failed to encrypt f2fs filesystem on /dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS

I/Cryptfs ( 112): Encrypted to block -1

D/Cryptfs ( 112): cryptfs_enable_inplace_f2fs()=-1

E/Cryptfs ( 112): Encrypting filesystem in place...

E/Cryptfs ( 112): Cannot seek to previously encrypted point on /dev/block/dm-0

D/Cryptfs ( 112): cryptfs_enable_inplace_full()=-1

D/Cryptfs ( 112): Just asked init to shut down class main

D/Cryptfs ( 112): unmounting /mnt/shell/emulated succeeded

D/Cryptfs ( 112): unmounting /data succeeded

I/Cryptfs ( 112): keymaster version is 2

I/Cryptfs ( 112): Using scrypt for cryptfs KDF

D/Cryptfs ( 112): Just triggered post_fs_data

D/Cryptfs ( 112): post_fs_data done

D/Cryptfs ( 112): Just triggered restart_min_framework

I/Cryptfs ( 112): Using scrypt for cryptfs KDF

I/art ( 2839): GenerateImage: /system/bin/dex2oat --image=/data/dalvik-cache/arm/system@framework@boot.art --dex-file=/system/framework/core-libart.jar --dex-file=/system/framework/conscrypt.jar --dex-file=/system/framework/okhttp.jar --dex-file=/system/framework/core-junit.jar --dex-file=/system/framework/bouncycastle.jar --dex-file=/system/framework/ext.jar --dex-file=/system/framework/framework.jar --dex-file=/system/framework/telephony-common.jar --dex-file=/system/framework/voip-common.jar --dex-file=/system/framework/ims-common.jar --dex-file=/system/framework/mms-common.jar --dex-file=/system/framework/android.policy.jar --dex-file=/system/framework/apache-xml.jar --oat-file=/data/dalvik-cache/arm/system@framework@boot.oat --instruction-set=arm --instruction-set-features=default --base=0x6f8ff000 --runtime-arg -Xms64m --runtime-arg -Xmx64m --compiler-filter=verify-none --image-classes=/system/etc/preloaded-classes

I/dex2oat ( 2863): /system/bin/dex2oat --image=/data/dalvik-cache/arm/system@framework@boot.art --dex-file=/system/framework/core-libart.jar --dex-file=/system/framework/conscrypt.jar --dex-file=/system/framework/okhttp.jar --dex-file=/system/framework/core-junit.jar --dex-file=/system/framework/bouncycastle.jar --dex-file=/system/framework/ext.jar --dex-file=/system/framework/framework.jar --dex-file=/system/framework/telephony-common.jar --dex-file=/system/framework/voip-common.jar --dex-file=/system/framework/ims-common.jar --dex-file=/system/framework/mms-common.jar --dex-file=/system/framework/android.policy.jar --dex-file=/system/framework/apache-xml.jar --oat-file=/data/dalvik-cache/arm/system@framework@boot.oat --instruction-set=arm --instruction-set-features=default --base=0x6f8ff000 --runtime-arg -Xms64m --runtime-arg -Xmx64m --compiler-filter=verify-none --image-classes=/system/etc/preloaded-classes

I/Cryptfs ( 112): load_crypto_mapping_table: target_type = crypt

I/Cryptfs ( 112): load_crypto_mapping_table: real_blk_name = /dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS, extra_params =

E/Cryptfs ( 112): Cannot load dm-crypt mapping table.

I/Cryptfs ( 112): Encrypting ext4 filesystem in place...

I/Cryptfs ( 112): Encrypting group 0

E/Cryptfs ( 112): Error writing crypto_blkdev /dev/block/dm-0 for inplace encrypt

I/Cryptfs ( 112): Encrypted to sector 0

E/Cryptfs ( 112): Error encrypting groups

D/Cryptfs ( 112): cryptfs_enable_inplace_ext4()=-1

E/Cryptfs ( 112): Failed to encrypt f2fs filesystem on /dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS

I/Cryptfs ( 112): Encrypted to block -1

D/Cryptfs ( 112): cryptfs_enable_inplace_f2fs()=-1

E/Cryptfs ( 112): Encrypting filesystem in place...

E/Cryptfs ( 112): Cannot seek to previously encrypted point on /dev/block/dm-0

D/Cryptfs ( 112): cryptfs_enable_inplace_full()=-1

W/SystemServer( 4027): Detected encryption in progress - only parsing core apps

I/ActivityManager( 4027): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10000000 cmp=com.android.settings/.CryptKeeper} from uid 0 on display 0

V/WindowManager( 4027): addAppToken: AppWindowToken{1df782d4 token=Token{276ae027 ActivityRecord{2394e2e6 u0 com.android.settings/.CryptKeeper t1}}} to stack=0 task=1 at 0

I/ActivityManager( 4027): Start proc 4663:com.android.settings/1000 for activity com.android.settings/.CryptKeeper

D/CryptKeeper( 4663): Going into airplane mode.

D/CryptKeeper( 4663): Encryption progress screen initializing.

D/CryptKeeper( 4663): Acquiring wakelock.

V/WindowManager( 4027): Based on layer: Adding window Window{20825385 u0 com.android.settings/com.android.settings.CryptKeeper} at 0 of 1

I/ActivityManager( 4027): Displayed com.android.settings/.CryptKeeper: +2s553ms

I/Timeline( 4027): Timeline: Activity_windows_visible id: ActivityRecord{2394e2e6 u0 com.android.settings/.CryptKeeper t1} time:533007

I/Timeline( 4027): Timeline: Activity_windows_visible id: ActivityRecord{2394e2e6 u0 com.android.settings/.CryptKeeper t1} time:534646

I/Timeline( 4027): Timeline: Activity_windows_visible id: ActivityRecord{2394e2e6 u0 com.android.settings/.CryptKeeper t1} time:536870

(Edit: reason of edit: corrected the rom list)