I want to create a big file 20G,
I tired it with fallocate, but it didn't work:
Code: Select all
fallocate -l 20G /path/file
fallocate failed: Operation not supported
I want to create a file container to use with dm-crypt.
Code: Select all
fallocate -l 20G /path/file
fallocate failed: Operation not supported
Code: Select all
dd if=/dev/zero of=/path/file bs=1G seek=20 count=0
Code: Select all
ls -lsh
Code: Select all
cryptsetup -y luksFormat /path/file
Code: Select all
cryptsetup luksOpen /path/file volume1
Code: Select all
mkfs.ext4 -j /dev/mapper/volume1
Code: Select all
mount /dev/mapper/volume1 /mnt/crypto