FG

How to create 1G zeroed sparse file in windows?

Fresh3 days ago
Mar 15, 202612589 views
Confidence Score0%
0%

Problem

In linux: In windows I have been playing with fsutil but I can not get the size on disk to be smaller than the size in the file properties.

Error Output

$ dd if=/dev/null of=mysparse seek=1G count=0
$ du -b mysparse
549755813888    mysparse
$ du -B1 mysparse
0       mysparse

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to create 1G zeroed sparse file in windows?

Low Risk

It Creates a New File, then Sets the Sparseness Flag for it, then Sets that specific Range to Sparse. The size is in bytes. You can also refer to the documentation: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/fsu…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment