Linux partition Encryption

Source: Internet
Author: User

Partition Encryption

LUKS (Linux unified key settings) is a standard device encryption format. LUKS can encrypt partitions or volumes. Mount

When partitioning a file system, you must first decrypt the encrypted partition or volume.

1. Create a New Partition

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/04512Q192-0.png "title =" 1.png" alt = "001017196.png"/>

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/04512W024-1.png "title =" 2.png" alt = "001053408.png"/>


2. encrypt the new partition and set the password. Enter the correct password for decryption. The encrypted partition will be unlocked to/dev/mapper/

Create an ext3 File System for the decrypted block File

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/04512QX6-2.png "title =" 3.png" alt = "001244967.png"/>


3. Create a mount point and mount the file system.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/04512TP7-3.png "title =" 4.png" alt = "001422755.png"/>


4. Add a mount entry to/etc/fstab.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/04512W060-4.png "title =" 5.png" alt = "001536342.png"/>


5. Create a password file. Pay attention to the permissions of the password file and add the key file to the LUKS key. 650) this. width = 650; "src =" http://img1.51cto.com/attachment/201309/001828646.png "title =" 8.png" alt = "001828646.png"/>


6. The password is automatically loaded at startup and partitions are automatically mounted.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/04512V105-6.png "title =" 6.png" alt = "001916880.png"/>






This article is from the cisco blog, please be sure to keep this source http://1585654.blog.51cto.com/1575654/1302394

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.