Fsutil command sparse in Windows
The Fsutil sparse command manages sparse files (a sparse file is a type of computer file that tries to use system space more efficiently when the file is partially empty).
Applies to : Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012. Windows 10, Windows 8.1, Windows 8, Windows Server 2008 R2, Windows 7.
The Fsutil sparse command manages sparse files (a sparse file is a type of computer file that tries to use the system space to be more efficient when the file is partially empty). To learn how to use this command, please see the example below.
The syntax of the Fsutil command is sparse
fsutil sparse [queryflag] fsutil sparse [queryrange] fsutil sparse [setflag] fsutil sparse [setrange]
Parameters
ParametersDescriptionqueryflag Sparse query. queryrange Scans a file and searches for ranges that may contain nonzero data (other data 0). setflag Marking a specified file is sparse. setrange Enter a range specified in a file by 0. Specify the full path to the file including the file name and extension, for example: C: documentsfilename.txt. Specify the offset in the file to mark it as sparse. Specifies the length of the area in the file to be marked as sparse (in bytes).Note
- A sparse file is a file that has one or more data areas that have not been allocated in it. A program will see these unallocated regions contain bytes of zero value, but these zeros do not use any disk space. All data with meaning or nonzero data is allocated, while all data has no meaning (large data series including 0s) are not allocated. When a sparse file is read, the allocated data returns as stored and the unallocated data is returned, by default, as zeroes (based on the specification of the claim. Secret C2). Sparse file support allows data to be allocated from anywhere in the file.
- In a sparse file, a large range of zeros may not require disk space allocation. Space for nonzero data will be allocated in case the file is recorded (if needed).
- The operating system recognizes files with ranges containing zeros only when they are compressed or sparse.
- If the file is sparse or compressed, NTFS can allocate disk space in the file. This sets the byte range to 0s without increasing the file size.
For example
To mark a file named Sample.txt in the C: Temp folder as sparse, enter:
fsutil sparse setflag c:tempsample.txt
See more:
- The Fsutil reparsepoint command in Windows
- Fsutil resource command in Windows
- Fsutil repair command in Windows
4 ★ | 32 Vote
You should read it
- Fsutil command in Windows
- The Fsutil quota command in Windows
- The Fsutil reparsepoint command in Windows
- Fsutil 8dot3name command in Windows
- Fsutil transaction command in Windows
- The Fsutil objectid command in Windows
- Fsutil tiering command in Windows
- Fsutil repair command in Windows
- The Fsutil file in Windows
- Fsutil hardlink command in Windows
- Fsutil fsinfo command in Windows
- Fsutil resource command in Windows
Maybe you are interested
Share how to fix Preview Pane error of not being able to view image files
9 Apps to Turn PDF Files into Fillable Forms
How to join and split audio files without installing any software
How to safely delete sensitive files on Windows 11
Moving files between Linux systems with SCP
How to take a screenshot of an entire Word or Excel file easily