Rhel6.0 disk partition encryption 2-httpfm.5460.netusermain.jspuserid1640

Source: Internet
Author: User
If you do not need to use encrypted partitions, you can use either of the following methods. delete the ing. You Need To unmount the partition before deleting the ing. When using the partition, you only need to enable the ing again. The original data of the partition will not be lost. disable ing: The method to stop ing is reasonable. To stop a partition, you do not need to detach the file system.

Disable encrypted Partition

If you do not need to use encrypted partitions, you can use either of the following methods:

1. Delete the ing. You Need To unmount the partition before deleting the ing. The next time you use the partition, you only need to enable re- ing. The original data of the partition will not be lost.

2. Disable ing: The method for stopping ing is reasonable. If you disable a partition, you do not need to detach the file system. After the partition is disabled, it cannot be used. You need to restore the ing to use the partition immediately. The partition data will not be lost,

Method 1: Delete Mappings

1. When deleting a ing, you must first uninstall the file system, for example:

[Root @ server1 ~] # Echo \ 'aaaa \ '>/rhel/aaa

[Root @ server1 ~] #Ls/Rhel/

Aaa lost + found

[Root @ server1 ~] # CryptSetUp luksClose rhel

Device rhel is busy. The error message "the Device is busy" is not uninstalled.

[Root @ server1 ~] #Umount/Dev/mapper/rhel

[Root @ server1 ~] # CryptSetupLuksClose rhel

[Root @ server1 ~] # CryptsetupStatUs rhel

/Dev/mapper/rhel is inactive.

[Root @ server1 ~] # Ll/dev/mapper/

Total 0

Crw-rw ----. 1 root 10, 58 Jul 16 08:12TrOl

2. If you need to use it, you can remap it, for example:

[Root @ server1 ~] # Cryptsetup luksOpen/dev/sda7 rhel

Enter passphrase for/dev/sda7: Enter the encryption Password

[Root @ server1 ~] # Mount/dev/mapper/rhel

[Root @ server1 ~] #Df-Hl

Filesystem Size UsEdAvail Use % Mounted on

/Dev/sda2 20G 4.0 GB 15G 22%/

Tmpfs 250 M 0 250 M 0%/dev/shm

/Dev/sda1 194 M 24 M 161 M 13%/boot

/Dev/sda3 4.9 GB 139 M 4.5 GB 3%/home

/Dev/mapper/rhel 492 M 11 M 457 M

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.