I have a partition non-encrypted. It has files and is ext4. Is it possible to encrypt it? First it will require map to luks name. For that the cryptsetup command informs current ext4 will be erased. Without map to name, it may not be possible to encrypt. Coomand sequence is map to name, then luksFormat and then filesystem has to be created on active name after map. In this, there is no option to figure out if current drive is with filesystem and to convert it to luks because cryptsetup open
deletes the ext4 signature on non encrypted drive. How can we encrypt without loss of data and filesystem or is it not supported? I have ubuntu 22.04 and when installed, I had root encrypted.
↧
encrypt the filesystem of non-encrypted drive with luks
↧