Enable automatic mounting of encrypted partitions. 1. view the uuid of the partition. For example, you can use blkid to view the uuid of the partition. [root @ server1 ~] # Lldevdiskby-uuidtotal0lrwxrwxrwx.1rootroot10Jul1605: 573c5611fe-9d40-44f1-aaae-63fd12b88586-... dm-0lrwxrwxrwx.1rootroot10
Automatically mount encrypted partitions,
1. view the uu of the partitionIdFor example, you can also use blkid to view,
[Root @ server1 ~] # Ll/dev/disk/by-uuid/
Total 0
Lrwxrwxrwx. 1 root 10 Jul 16 05:57 3c 5611fe-9d40 -44f 1-aaae-63fd12b88586->.../dm-0
Lrwxrwxrwx. 1 root 10 Jul 16 05:59 79a 9a 7b6-bfca-46b3-80d5-1323e 82c 38Df-> ../Sda7
Lrwxrwxrwx. 1 root 10 Jul 16 05:57 912a 609f -1DdC -4c 72 -932a -C55ea 18c 934d->.../../sda6
Lrwxrwxrwx. 1 root 10 Jul 16 05: 48 7a 09bba -751f -427a -B 3a 7-b91ee6eb 3a 5a -> ../Sda1
Lrwxrwxrwx. 1 root 10 Jul 16 05:48 b714dd11 -0c 1e-4d 9a -9541-9512286bb56d->.../sda3
Lrwxrwxrwx. 1 root 10 Jul 16 05:48 bf88fead-5856-4500-8913-a3ceb4d620ff->.../sda2
Lrwxrwxrwx. 1 root 10 Jul 16 05:48 d 010c 333-c041-42b3 -98c 2-c5bc89983229->.../sda5
Lrwxrwxrwx. 1 root 10 Jul 16 06:02 ee 8915c 1-0aca -470c -Ac31-d13131792fef->.../dm-1
[Root @ server1 ~] # Blkid
/Dev/sda1: UUID =" 7a 09bba -751f -427a -B 3a 7-b91ee6eb 3a 5a "TYPE ="ExT4"
/Dev/sda2: UUID = "bf88fead-5856-4500-8913-a3ceb4d620ff" TYPE = "ext4"
/Dev/sda3: UUID = "b714dd11 -0c 1e-4d 9a -9541-9512286bb56d "TYPE =" ext4"
/Dev/sda5: UUID = "d 010c 333-c041-42b3 -98c 2-c5bc89983229 "TYPE =" swap"
/Dev/sda6: UUID =" 912a 609f -1ddc -4c 72 -932a -C55ea 18c 934d "TYPE =" crypto_LUKS"
/Dev/sda7: UUID =" 79a 9a 7b6-bfca-46b3-80d5-1323e 82c 38df "TYPE =" crypto_LUKS"