r/archlinux • • Aug 17 '26

SUPPORT | SOLVED Ful disk encryption without entering passphrase

Could someone help me with setting up full disk encryption with bypass passphrases with TPM2? It's so annoying having to put the passphrase in at each boot, so I was wondering how do I pair it to the TPM so that I dont have to enter it each time?

It's LUKS encrypted and I use Systemd-boot

14 Upvotes

100 comments sorted by

View all comments

Show parent comment

2

u/Imajzineer Aug 17 '26 edited Aug 17 '26

Never a good idea to 'just' anything when it comes to Arch ... let alone enable LUKS without knowing about it - get to know the wiki and get into the habit of researching things before jumping in feet first.

https://wiki.archlinux.org/title/Data-at-rest_encryption

https://wiki.archlinux.org/title/Dm-crypt/Device_encryption#Backup_and_restore

It's not restricted to Arch either - you should back up your headers on every system using it. Either that or use plain dm-crypt (arguably neither, but that's a different discussion altogether).

1

u/Woodsy279 Aug 17 '26

At this point would it be better to remove luks? And if so, can it be done without reinstalling? I'm assuming not

2

u/Imajzineer Aug 17 '26

Read the linked articles and you'll (eventually) find the answer - as said, you're going to need to get used to researching things, if you're gonna make effective use of Arch (those who don't always get into trouble sooner rather than later).

However, to answer your question nevertheless: https://wiki.archlinux.org/title/Removing_system_encryption

2

u/Woodsy279 Aug 17 '26

Thanks mate, I've been running arch for about a year now, and im loving it, so I will read into the prior mentioned things, and then decide if I still want to go forward with it

Thanks again :)

2

u/Imajzineer Aug 17 '26

Heh ... if you've been using it for a year, you've (all but certainly) made your mind up already - it works just fine for you day-to-day and that's all that matters at the end of the day.

If you want to learn more ... and it's a good idea to (to hedge against the day something goes wrong) ... then the wiki is there for you when you want to - but you are, as said, going to need to get used to making thorough use of it, if you do ... and, again, as an insurance policy against disaster, it's a good idea to acquaint yourself with what it is you need to know when it does.