RHEL 6
I am trying to encrypt an LV with LUKS but everytime I boot it says superblock could not be read... I've tried many commands and it still does not work, it doesn't even ask for a password.
Code:
lvcreate -L500MB -n "lvname" "vgname"
shred -n1 -v "/dev/mapper/vgname_lvname"
cryptsetup luksFormat "/dev/mapper/vgname_lvname"
cryptsetup luksOpen "/dev/vgname/vgname_lvname" "name"
mkfs.ext4 "/dev/mapper/name"
vi /etc/fstab
/dev/mapper/name dir ext4 defaults 1 2
vi /etc/crypttab
dir /dev/mapper/name none
When I go into rescue mode however it does ask me for a password.