# Encrypted DevTerm

**URL:** <https://forum.clockworkpi.com/t/encrypted-devterm/8223>\
**Category:** DevTerm\
**Tags:** feedback, devterm-a06\
**Created:** [March 25, 2022, 2:13pm UTC](https://forum.clockworkpi.com/t/encrypted-devterm/8223 "2022-03-25T14:13:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thijs](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/thijs/32/6149_2.png) [@Thijs](https://forum.clockworkpi.com/u/Thijs)\
**Post date:** [March 25, 2022, 2:13pm UTC](https://forum.clockworkpi.com/t/encrypted-devterm/8223/1 "2022-03-25T14:13:55Z")

</div>

A portable computer must use encryption. I notice that the default install does not use any, I also tried the Manjaro image (works great!) and it also comes without full disk encryption. Is there a proven method to get an encrypted install going?

---

<div class="post-metadata">

**Author:** ![devyl](https://avatars.discourse-cdn.com/v4/letter/d/6de8d8/32.png) [@devyl](https://forum.clockworkpi.com/u/devyl)\
**Post date:** [March 28, 2022, 11:19am UTC](https://forum.clockworkpi.com/t/encrypted-devterm/8223/2 "2022-03-28T11:19:06Z")

</div>

I installed [eCryptFs](https://www.linuxuprising.com/2018/04/how-to-encrypt-home-folder-in-ubuntu.html) so my files in home are “a little bit” more secure than before and i can use the default image (A04 here).

---

<div class="post-metadata">

**Author:** ![genbuckturgidson](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/genbuckturgidson/32/6148_2.png) [@genbuckturgidson](https://forum.clockworkpi.com/u/genbuckturgidson)\
**Post date:** [March 28, 2022, 1:26pm UTC](https://forum.clockworkpi.com/t/encrypted-devterm/8223/3 "2022-03-28T13:26:33Z")

</div>

One thing to remember is that SD/TF cards are not as durable as regular SSDs, which are again not as durable as HDDs. The lifetime of your cards could suffer due to the larger and more numerous writes from encryption. Additionally, it will be slower disk I/O with a higher CPU burden.

---

<div class="post-metadata">

**Author:** ![ghalfacree](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/ghalfacree/32/5448_2.png) [@ghalfacree](https://forum.clockworkpi.com/u/ghalfacree)\
**Post date:** [March 28, 2022, 1:45pm UTC](https://forum.clockworkpi.com/t/encrypted-devterm/8223/4 "2022-03-28T13:45:50Z")

</div>

> [@genbuckturgidson](#):
>
> The lifetime of your cards could suffer due to the larger and more numerous writes from encryption.

There should be no write amplification, either in number of writes or amount of data written, with any sane disk encryption scheme. If it’s compressing the data first - which is not recommended from a security perspective - it will actually _reduce_ the number of blocks written.

The exception to the rule: SSDs with compression-based wear reduction in their controllers, like selected SandForce controllers, where it expects a certain amount of possible compression which is unachievable with encrypted data. I know of no SD Cards that use internal compression for wear reduction, though, so my point still stands.

---

<div class="post-metadata">

**Author:** ![genbuckturgidson](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/genbuckturgidson/32/6148_2.png) [@genbuckturgidson](https://forum.clockworkpi.com/u/genbuckturgidson)\
**Post date:** [March 28, 2022, 2:11pm UTC](https://forum.clockworkpi.com/t/encrypted-devterm/8223/5 "2022-03-28T14:11:56Z")

</div>

That depends upon what you mean. If you mean encryption of used disk space, then this is true. If, OTOH, you mean full disk encryption which is what I thought was meant, then that’s wrong. The entire disk (including free space) is encrypted which means more writes.

---

<div class="post-metadata">

**Author:** ![ghalfacree](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/ghalfacree/32/5448_2.png) [@ghalfacree](https://forum.clockworkpi.com/u/ghalfacree)\
**Post date:** [March 28, 2022, 2:19pm UTC](https://forum.clockworkpi.com/t/encrypted-devterm/8223/6 "2022-03-28T14:19:47Z")

</div>

> [@genbuckturgidson](#):
>
> If, OTOH, you mean full disk encryption which is what I thought was meant, then that’s wrong. The entire disk (including free space) is encrypted which means more writes.

To the best of my knowledge - with the caveat that I haven’t played with full-disk encryption in a fair few years now - the most common Linux full-disk encryption packages do _not_ encrypt free space, but users have the option to fill the drive with random data manually first before creating the encrypted device.

The disk encryption built into Windows and macOS can encrypt free space, but you’re not likely to be running either of those on your DevTerm.
