Creating dummy files with mkfile/fsutil
The following command will create a dummy file in the specified path with the specified size (in bytes):
mkfile 10m /path/filename
dd if=/dev/zero of=/path/filename bs=1024k count=10
fsutil file createnew path\filename size-in-bytes
- mkfile creates one or more files that are suitable for use as NFS-mounted swap areas
- dd converts and copy a file, write disk headers, boot records, create a boot floppy. dd can make an exact clone of an (unmounted) disk, this will include all blank space so the output destination must be at least as large as the input.
- fsutil performs tasks that are related to file allocation table (FAT) and NTFS file systems, such as managing reparse points, managing sparse files, or dismounting a volume