Cryptsetup error - cannot format device
This is on a test vm in Virutal Box.
I'm trying to setup a 5 GB hard drive and when running the 1st command cryptsetup luksFormat, is when I get the error, shown below.
modprobe dm_crypt
lsmod | grep dm_crypt
partprobe /dev/sdb1 ; pvs ; vgs ; lvs
pvcreate /dev/sdb1 ; vgcreate Vol_Group02 /dev/sdb1 ; lvcreate -L +5G -n LogVol00 Vol_Group02
cryptsetup luksFormat /dev/sdb1
Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Cannot format device /dev/sdb1 which is still in ue
Has anyone seen this before? I've created other encrypted devices ok, so I'm not sure where the error lies here.