Chapter 29. Disk Encryption Guide
290
29.4.3. Format the device as a dm-crypt/LUKS encrypted device
Warning
The command below will destroy any existing data on the device.
cryptsetup luksFormat <device>
Tip
For more information, read the
cryptsetup(8)
man page.
After supplying the passphrase twice the device will be formatted for use. To verify, use the following
command:
cryptsetup isLuks <device> && echo Success
To see a summary of the encryption information for the device, use the following command:
cryptsetup luksDump <device>
29.4.4. Create a mapping to allow access to the device's decrypted
contents
To access the device's decrypted contents, a mapping must be established using the kernel
device-
mapper
.
It is useful to choose a meaningful name for this mapping. LUKS provides a UUID (Universally Unique
Identifier) for each device. This, unlike the device name (eg:
/dev/sda3
), is guaranteed to remain
constant as long as the LUKS header remains intact. To find a LUKS device's UUID, run the following
command:
cryptsetup luksUUID <device>
An example of a reliable, informative and unique mapping name would be
luks-<uuid>
, where
<uuid> is replaced with the device's LUKS UUID (eg:
luks-50ec957a-5b5a-47ee-85e6-
f8085bbc97a8
). This naming convention might seem unwieldy but is it not necessary to type it often.
cryptsetup luksOpen <device> <name>
There should now be a device node,
/dev/mapper/<name>
, which represents the decrypted device.
This block device can be read from and written to like any other unencrypted block device.
To see some information about the mapped device, use the following command:
dmsetup info <name>
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 12: ...xii ...
Страница 20: ......
Страница 30: ...12 ...
Страница 32: ...14 ...
Страница 82: ...64 ...
Страница 106: ...88 ...
Страница 122: ...104 ...
Страница 124: ...106 ...
Страница 126: ......
Страница 132: ...114 ...
Страница 168: ...150 ...
Страница 182: ...164 ...
Страница 192: ...174 ...
Страница 194: ......
Страница 236: ...218 ...
Страница 238: ...220 ...
Страница 270: ......
Страница 274: ...256 ...
Страница 278: ...260 ...
Страница 292: ...274 ...
Страница 294: ......
Страница 300: ...282 ...
Страница 304: ......
Страница 316: ...298 ...
Страница 357: ...Creating Partitions 339 Figure 32 7 Creating a Software RAID Device 4 Click OK to add the device to the list ...
Страница 370: ...352 ...
Страница 384: ...366 ...
Страница 385: ...Part VII Appendix ...
Страница 386: ......