$ dd if=/dev/zero of=/yourdirectory/disk-image count=20480 $ ls -l /yourdirectory/disk-image
$ mke2fs -q /yourdirectory/disk-image
$ mkdir /yourdirectory/virtual-fs $ mount -o loop=/dev/loop0 /yourdirectory/disk-image /yourdirectory/virtual-fs $ df -h /yourdirectory/virtual-fs $ cd /yourdirectory/virtual-fs $ echo "Hello, world!" > test.txt $ ls -l $ cat test.txt $ cd /yourdirectory $ umount /yourdirectory/virtual-fs