I would like to create a 100GB file to use as a file-system. The file will be stored on an encrypted volume, so the file/file-system itself does not need to be (further) encrypted. Searching has revealed many different methods of doing this. Some use
losetup, some don't. Is the following an acceptable method?
$ dd if=/dev/zero of=~/theFile.img bs=1M count=10240 $ mkfs.ext4 ~/theFile.img # will prompt about block special device $ sudo mount -o loop ~/theFile.img /media/mountPoint