- create a keyfile with random content
- Add the file to LUKS
- Edit /etc/crypttab
- Edit /etc/fstab
- Reboot or Remount
$ sudo su -
$ dd if=/dev/random of=/root/keyfile bs=1024 count=4
$ cryptsetyp luksAddKey /dev/sdb1 /root/keyfile
$ sdb1_crypt /dev/sdb1 /root/keyfile luks
/dev/mapper/sdb1_crypt /media/Repository ext4 defaults 0 2
No comments:
Post a Comment