Linux Partitioning and disk encryption

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.