Monday, April 6, 2009

A great way to create a big file for IO testing

I found a way to create a big empty file on Windows to avoid having to scramble for one that may or may not exist on the system. In order to do that, open a command prompt and type the following:

fsutil file createnew bigfile.dat 2147483648   



This will create a 2Gb file (the number is in bytes, you can easily get the conversion by googling: 2GB (not Gb, that’s gigabIT) in Bytes.



p.s: make sure that there is enough disk space before you create such a file.

No comments:

Post a Comment

Please make your comment. (GMK)

Note: Only a member of this blog may post a comment.