I want to create an encrypted LUKS Container:
# dd if=/dev/random of=pvt.img bs=1M count=512
# cryptsetup -y luksFormat pvt.img
WARNING!
========
This will overwrite data on pvt.img irrevocably.
Are you sure? (Type uppercase yes): YES
Enter passphrase:
Verify passphrase:
Cannot find a free loopback device.
Device pvt.img doesn't exist or access denied.
# ls /dev/loop*
ls: cannot access '/dev/loop*': No such file or directory
I don't have any loop devices (don't know why - this is a VPS), so I tried to create one manually:
# mknod /dev/loop0 b 7 0
# ls -l /dev/loop0
brw-r--r-- 1 root root 7, 0 Jan 7 14:51 /dev/loop0
However when I try it again the same error occurs.
What's the problem here?