実際のところ
領域の分割
sudo parted /dev/sdb
(parted) mklabel gpt (parted) mkpart primary ext4 0% 200GB (parted) mkpart primary ext4 200GB 100% (parted) print (parted) quit |
必要なツール
apt-get update apt-get install -y cryptsetup
暗号化の実施
sudo cryptsetup luksOpen /dev/sdX storageA sudo mount /dev/mapper/storageA /mnt/storageA