Create a volume for LUKS Encryption

  1. Create a partition.

›_ Console

# fdisk /dev/sdc 
image-3285188706-1.jpg

fdisk command prompt

  1. Type n for new partition and p for primary partition type.

image-3285188706-2.jpg

New partition creation

  1. Press ENTER to use up all the available space after your first sector or specify the size for your partition.

image-3285188706-3.jpg

Specifying size of disk

  1. Type w to write the partition table.

image-3285188706-4.jpg

Saving changes to partition table

  1. Verify the newly added partition using fdisk -l command.

›_ Console

# fdisk -l 
image-3285188706-5.jpg

Disk list

  1. Format the newly added partition.

›_ Console

# cryptsetup -y -v luksFormat /dev/sdc1 
image-3285188706-6.jpg

Formatting the partition