# Does Encryption work with Lineage OS?

**URL:** <https://forum.fairphone.com/t/does-encryption-work-with-lineage-os/33190>\
**Category:** Fairphone 2\
**Tags:** encryption, lineageos\
**Created:** [September 16, 2017, 9:57am UTC](https://forum.fairphone.com/t/does-encryption-work-with-lineage-os/33190 "2017-09-16T09:57:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![AnotherElk](https://forum.fairphone.com/user_avatar/forum.fairphone.com/anotherelk/32/7680_2.png) [@AnotherElk](https://forum.fairphone.com/u/AnotherElk)\
**Post date:** [September 17, 2017, 7:41pm UTC](https://forum.fairphone.com/t/does-encryption-work-with-lineage-os/33190/4 "2017-09-17T19:41:59Z")

</div>

Try resizing the data partition in TWRP, I can remember I did this while I was having trouble with encryption …

> [@Encrypt phone with FairPhone Open OS](https://forum.fairphone.com/t/encrypt-phone-with-fairphone-open-os/15474/31):
>
> I also had the issue of not being able to encrypt my phone after changing to Fairphone Open OS. My solution was, to resize the partition. Essentially only 16 KB need to be empty at the end of the partition. That means for a partition size of 6798331 \* 4KB blocks, the partition needs to be resized to 6798327 \* 4KB blocks. One option, using the adb shell: Boot into recovery Unmount data e2fsck -y -f /dev/block/mmcblk0p20 resize2fs /dev/block/mmcblk0p20 6798327 Or, even simpler: Boot into r…

---

_[View the full topic](https://forum.fairphone.com/t/does-encryption-work-with-lineage-os/33190)._
