Quantcast
Channel: Active questions tagged 22.04 - Ask Ubuntu
Viewing all articles
Browse latest Browse all 4700

encrypt the filesystem of non-encrypted drive with luks

$
0
0

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.


Viewing all articles
Browse latest Browse all 4700

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>