這是本文件的舊版!


產生亂數金鑰

dd if=/dev/random of=/etc/data_volume_password bs=1024 count=4

加入 key slot

cryptsetup luksAddKey /dev/sdX /data_volume_password

移除 key slot

cryptsetup luksKillslot /dev/sdX 1