Linux Ubuntu full disk encryption is enabled?

Was trying to find a way to tell if the Ubuntu full disk encryption was enabled.
I could not find anything in bigfix, so in short, the only way I could figure out how to do it, was to basically do a

fdisk -l |grep "^crypt=" > /var/EncryptInfo.txt

Then read back the contents of the file to an analysis to see which machines were encrypted and which ones were not.
in my version I did not do the grep and I pulled back the full contents of the fdisk to make sure the system drive was the drive encrypted. and used the web-report to filter on the word “crypt”

anyone know of a better way to do this?

Is there a way to read the encryption status from a file somewhere without using the fdisk command?

I’m not sure if “filesystem type” would be relevant: https://developer.bigfix.com/relevance/reference/filesystem.html#filesystem-type-of-filesystem-string

1 Like