Creating large files on windows

Posted by & filed under Server Admin.

I typically use the dd utility in linux to create large files for testing various things. Today I needed to create a large file in a windows machine. One option is to use dd on a linux box to create the file, and then scp the file over to the windows box. This would work, but is a bit inefficient. After a bit of research I found that fsutil.exe will create files. Below is the same command in dd and fsutil:


dd if=/dev/urandom of=20gbfile count=20480 bs=1048576


fsutil.exe file createnew 20gbtest 21474836480

Syntax is: fsutil file createnew <filename> <length in bytes>