Create and use encrypted partitions in Linux: Use luks to format the target device. In this case, you must set an initial password (Note: YES must be entered in uppercase and must be in uppercase) cryptsetup luksFormat/dev/sdb1 open (decrypt) the encrypted partition: The actually used luks device will be created under/dev/mapper according to the specified name, which is also the final device,
It can be understood as the encryption partition ing device cryptsetup luksOpen/dev/sdb1 svn_data www.2cto.com disable (LOCK) encrypted partition: disconnects the encrypted partition access link cryptsetup luksClose svn_data usage: after luksOpen, you can use a virtual svn_data partition like a normal device, such as formatting, mounting ...... Note: You need to open the partition before each use. after use, you need to disable the partition. We do not recommend that you do not need to mount the system automatically after the system is restarted.