#encrypting fedora 38 xfce without data lost...

5 messages · Page 1 of 1 (latest)

compact crater
#

i installed fedora 38 without encryption i don't want to reinstall fedora. how to encrypt my system... i'm beginner of linux please help me step by step.:) (no data lost)

wind zodiacBOT
#

Need Help Or Have a Problem, @compact crater?
You're probably looking for #tech-support or #1006577277313744996!

Once there, please be sure to provide plenty of details, follow the guidelines, ping the <@&787528858806124575> role, and be patient!

Look under the 🔧 Support category for the appropriate channel for your issue. See #server-information for more info.

wide parrot
#

Well, you can't encypt your root partition while you're booted into it so you'll need to use a live environment but it should be possible to enable full system encryption

You'd likely end up using cryptsetup-reencrypt to convert your partition over to using LUKS

sudo cryptsetup-reencrypt --encrypt --type luks2 /dev/sdX

you'd then want to decrypt and mount it before trying to chroot into your system

sudo cryptsetup open /dev/sdX root_encrypted
sudo mount /dev/mapper/root_encrypted /mnt

with that done you can add the encrypted partitions UUID to /etc/crypttab

you'd probably then need to rebuild initramfs via dracut and maybe also update grub.cfg to ask for a password - not sure if it does so automatically or not

i'd recommend double checking that but hopefully that provides some guidance in what you're looking to do

compact crater
#

ok i’m trying…

compact crater
#

“with that done you can add the encrypted partitions UUID to /etc/crypttab

you'd probably then need to rebuild initramfs via dracut and maybe also update grub.cfg to ask for a password - not sure if it does so automatically or not”

can you give me more details/commands i don’t know how to do it…