How can i encrypt the full system/storage ? Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
mk33
Posts: 21
Joined: Thu Jun 11, 2020 10:13 pm

How can i encrypt the full system/storage ?

Post by mk33 »

I've recently moved to a shared apartment and I have to place my RPI in the living room, near the router. So if any roommate wanted, he could just walk away with my RPI or remove the SD-card.
**How can I encrypt my DietPi so that if any person steals my SD-card can't see nothing?**
User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: How can i encrypt the full system/storage ?

Post by Joulinar »

Hi,

many thanks for your request. Basically it's not possible to encrypt your entire SD card. As well DietPi is not supporting any file system encryption by default as of now. Maybe you like to have a look to the following link

https://www.raspberrypi.org/forums/view ... p?t=181181

It might be possible to create an encrypted new partition or attach an encrypted USB stick where you go to transfer your data on. But it will have as well some downsides. Some DietPi services like Nextcloud or databases storing their data on dietpi user-data directly. Means, after a reboot services will fail until the partition was encrypted and mounted.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
mk33
Posts: 21
Joined: Thu Jun 11, 2020 10:13 pm

Re: How can i encrypt the full system/storage ?

Post by mk33 »

User avatar
Joulinar
Posts: 2052
Joined: Sat Nov 16, 2019 12:49 am

Re: How can i encrypt the full system/storage ?

Post by Joulinar »

I guess that would be interesting for you ;)

https://github.com/MichaIng/DietPi/issues/3377

There we basically played with it already.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply