Following the Kali Linux documentation for "Adding USB Persistence with LUKS Encryption", I created a persistent partition and encrypted the volume with:
cryptsetup --verbose --verify-passphrase luksFormat /dev/sdb2 cryptsetup luksOpen /dev/sdb2 my_usb mkfs.ext3 -L persistence /dev/mapper/my_usb e2label /dev/mapper/my_usb persistence mkdir -p /mnt/my_usb mount /dev/mapper/my_usb /mnt/my_usb echo "/ union" > /mnt/my_usb/persistence.conf umount /dev/mapper/my_usb
(substituting a volume name for "my_usb")
However, I forgot to close the volume (the following line was ophaned on the next page in the documentation, so I didn't see it):
cryptsetup luksClose /dev/mapper/my_usb
Is this a problem? If so, how and is there any way to repair it?
This article suggests it is but doesn't say why and the instructions don't work for me.
The disk appears to work fine.
umountand that should be enough. The dmcrypt layer shouldn't be holding on to any uncommitted data after that.