Why Disk Encryption? That's because everyone has their own privacy! When you put your privacy on a disk and don't want to be seen by others, you can encrypt the disk. Down I'll show you the specific encryption steps.
First: A section in the system that you want to put your privacy in
650 "this.width=650;" src= "/HTTP/ s8.sinaimg.cn/mw690/0062amvsty6usbv9x71e7&690 "width=" 690 "height=" 329 "name=" image_operate_92221438953591046 "alt=" Redhat partition and Disk Encryption "title=" Redhat partition and Disk Encryption "style=" Margin:0px;padding:0px;border:0px;list-style:none; "/>
second: to divide the area after the good area format
/dev/vdb1 format xfs format. Of course, it can also be formatted as ext4/2 format Span style= "font-family: ' Times New Roman ';" >)
third:
fourth: )
fifth:
sixth:
Seventh Touch file/mnt(using encryption device)
Eighth:umount/mnt (uninstall encryption device)
Nineth: /dev/mapper/ xxb )
automatic mount encryption device on boot
For example, the password is redhat1357
650 "this.width=650;" src= "/HTTP/ s11.sinaimg.cn/mw690/0062amvsty6usbackcg7a&690 "width=" 690 "height=" 329 "name=" Image_operate_ 30141438953592498 "alt=" Redhat partition and Disk Encryption "title=" Redhat partition and Disk Encryption "style=" Margin:0px;padding:0px;border:0px;list-style: none; "/>
Write these three files and use them.
Cryptsetup luksaddkey/dev/vdb1/root/passwd (associating a device with a password)
This allows for power-on self-booting
Linux Partitioning and disk encryption