Encrypt root partition using cryptsetup
Hi,
I need encrypt root file system. I used below command
cryptsetup -y -v luksFormat /dev/sda1
But i am getting below error.
WARNING!
========
This will overwrite data on /dev/sda1 irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
[ 94.408069] alg: No test for fips(ansi_cprng) (fips_ansi_cprng)
Cannot format device /dev/md126p2 which is still in use.
Command failed with code 16: Device or resource busy
Could anyone please help me how to encrypt root file system in linux system.
Thanks,
|