Encryption

如何判斷一個LUKS加密分區是打開還是關閉?

  • February 7, 2017

您建議使用哪個命令來確定是否映射了 LUKS 加密分區(除了查看或使用 lsblk輸出)?

通過打開的設備,我的意思是命令的設備

ctrytpsetup luksOpen <device> <map name>

被處決。

我會這樣做:

$ sudo dmsetup ls
   crypthome   (254:0)
$ sudo dmsetup -v table /dev/mapper/crypthome 
   Name:              crypthome
   State:             ACTIVE
   Read Ahead:        256
   Tables present:    LIVE
   Open count:        1
   Event number:      0
   Major, minor:      254, 0
   Number of targets: 1
   UUID: CRYPT-LUKS1-87863643a6aa43c191f69ee3a2b3301a-crypthome
   0 870313984 crypt aes-xts-plain64 0000000000000000000000000000000000000000000000000000000000000000 0 8:2 4096

引用自:https://unix.stackexchange.com/questions/343127