Usually when testing (such as test installation, save files to local, etc.), you may need to construct a situation where the local hard disk space is insufficient, here is a method.
First, fsutil command1. Run cmd as an Administrator 2. Enter the corresponding drive letter 3. Command: fsutil file createnew hello.txt 100000, where "hello.txt" created file size 100000. Generally created file size is the drive space size of the right-to-left number 8th bit small 1 can be the method has a small disadvantage, is to calculate the size of the generated file yourself, a little bit of trouble.
Second, FIllDisk.exeHere is a tool: FillDisk.exe official introduction: Filldisk is a simple utility, that fills up a disk with data. It starts WITH1GB files, then drops to 512MB, 256MB and so on until it fills up completely the disk with files. (Filldisk Tools Of
workThe principle is that Mr. 1GB file, when the disk space is less than 1GB, the generation of 512MB, then not enough to generate 256MB, and so on, gradually generate small files, until the disk space is fully filled. The use of the method is very simple, open the FillDisk.exe, fill in the path of the file (path to already exist, otherwise please manually created locally, otherwise will error), click the Go button will be OK.
Third, Fsutil+filldiskCombine the fsutil command with the Filldisk tool to achieve an ideal effect, first generate a large file with the fsutil command, and then fill the remaining space with the Filldisk tool, so that a free space is 0 bytes of local disk, you can also delete Filldisk the generated files, making available space for other data situations.
Tools and methods for populating disk space