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 supportedI want to create a file container to use with dm-crypt.
Code: Select all
fallocate -l 20G /path/file
fallocate failed: Operation not supportedCode: Select all
dd if=/dev/zero of=/path/file bs=1G seek=20 count=0Code: Select all
ls -lshCode: Select all
cryptsetup -y luksFormat /path/fileCode: Select all
cryptsetup luksOpen /path/file volume1Code: Select all
mkfs.ext4 -j /dev/mapper/volume1Code: Select all
mount /dev/mapper/volume1 /mnt/crypto