TOOL » LINUX » PACKAGE

Fallocate

Usage

Preallocate or deallocate space to a file. Only available on filesystems that support the fallocate system call.

shell
fallocate OPTIONS FILENAME
OptionDescription
-l --lengthSize of the file.

Create a 2GB file:

shell
fallocate -l 2G partition.img