Test file creation

didier.nab Posted messages 32 Status Member -  
didier.nab Posted messages 32 Status Member -
Hello everyone,
I wasn't quite sure which section to put my post in...
I'm looking for a simple method to create test files of 100MB, 200MB, 500MB, and 1GB, to run transfer time tests on a USB drive but possibly on other devices as well.
Thank you for your help
Configuration: Windows XP, sp2 Internet Explorer 7.0

2 answers

Citoyen
 
Hello

Creating "empty" computer files of a predetermined length:

Search for "create empty files" on Google

With Microsoft Windows XP:

=> You can create an empty file from the command console with a command.
=> C:\WINDOWS\system32\cmd.exe = Command console; not the command.

The command; "the" commands:

Fsutil: the toolbox for your disk.

Syntax:

fsutil file [createnew] FileName Length
fsutil file [findbysid] UserName Directory
fsutil file [queryallocranges] offset=Offset length=Length FileName
fsutil file [setshortname] FileName ShortName
fsutil file [setvaliddata] FileName DataLength
fsutil file [setzerodata] offset=Offset length=Length FileName

https://www.zebulon.fr/dossiers/tutoriaux/69-fsutil.html/4

Search for "Fsutil create empty files" on Google

Practical cases:

Creating an "empty" file of a specified size:

It can always be useful to have an accurately sized file at hand. A large file, for example, allows you to test transfer speed on a network, test the burning speed of a CD or DVD, or simply temporarily reduce the free space on a given partition.

To create our file, we will use the following command:

fsutil file createnew c:\file100MB.txt 104857600

* A file named file100MB.txt with a size of 100MB will then be created at the root of drive C. This file is actually made up of 104857600 NUL characters. It is, of course, possible to specify the size of your choice, which is expressed in bytes. As a reminder, 1 MB equals 1,048,576 bytes.

Reserving space for the MFT before converting a volume:

"In the case of converting a FAT partition to NTFS, it may be interesting to use this trick before executing the convert command. This will reserve a space for the MFT so that it is not fragmented."

The procedure is as follows:

1 - Reserve about 12.5% of the disk space for the future MFT; using the command:
=> fsutil file createnew x:\reservationMFT.txt 13421772800 for an 80 GB hard drive.

2 - Defragment the disk.

3 - Start the conversion with the command convert x: /fs:ntfs /cvtarea:x:\reservationMFT.txt.
* x: corresponds to the letter of the volume to be converted.

Thank you
3
didier.nab Posted messages 32 Status Member 10
 
Thank you very much for your response
it's a bit complicated for me, but I will reread it at my leisure. Actually, I'm not quite sure where to go to type the command described, and the problem is still knowing if spaces are needed or not
thanks again, I will give it a try
0