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