5

I just installed Debian and as far as I can remember I encrypted my home-partition using LVM. During the boot process I haven't been asked to enter the password.

Is there any way to check whether the encryption is up and running?

2
  • Please paste the output of lsblk.
    – jasonwryan
    Commented Feb 18, 2014 at 2:24
  • please share the output of dmsetup table command
    – asdmin
    Commented Jan 28, 2015 at 9:05

2 Answers 2

2

I guess this is what the OP was looking for.

lsblk | grep 'crypt'

or bash scripting:

#!/bin/bash
is_encrypted=$(lsblk | grep 'crypt')
if [ -n "${is_encrypted}" ]; then
  echo "Found disk encryption is set: ${is_encrypted}"
  return 0
else
  echo "No disk encryption partition is found!"
  return 1
fi
-1

LVM isn't a type of encryption. It's something different than partitions. For more information visit Arch Wiki.

2
  • LVM has also a crypt target, but this should be a comment, not an answer.
    – user55518
    Commented Feb 18, 2014 at 11:42
  • You can put encrypted disk in LVM. So you can put an encrypted disk in LVM (That's what the OP said).
    – MaXi32
    Commented Apr 19, 2021 at 19:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .