DiskUsage - Disk Usage
Description: Summarize disk usage recursively for the given directory.
Usage : diskusage [Options] [Directory]
Options :
/a, /systemFile[:N] displays size for system files (and optionally the top N system
files by SizeOnDisk in descending order)
/b, /reserved displays size for reserved space
/c, /csv displays in csv format
/d, /maxDepth:N displays directory information only if it is N or
fewer levels below command line argument
/e, /minFileSize:SIZE displays directory information only if its FileSize
is greater or equal than SIZE
/f, /minSizeOnDisk:SIZE displays directory information only if its SizeOnDisk
is greater or equal than SIZE
/g, /displayFlag:FLAG specifies the flags value to determin which column(s) to display
column value description
SizeOnDisk 0x001 the on disk size
FileSize 0x002 the end of file size
SizePerDir 0x004 sum of SizeOnDisk for top level child
Files 0x008 number of child files
ChildDirs 0x010 number of child directories
FilesPerDir 0x020 number of top level child files
DirsPerDir 0x040 number of top level child directories
CreationTime 0x080 file creation timestamp
LastAccessTime 0x100 file last access timestamp
LastWriteTime 0x200 file last write timestamp
Attributes 0x400 file attributes
/h, /humanReadable displays size in human readable format
/i, /iniFile:FILE takes all the parameters from an INI file.
NOTE: SCENARIO name must be speificed via /j (/scenario)
/j, /secnario:SCENARIO specifies the scenario name for the INI file
/k, /reparse recurse into reparse directories
/l, /allLinks count all hardlinks separately (By default, files with multiple
hardlinks are counted only once towards the first link name in
alphabetical order)
/m, /multipleName count only files with more than one link names
/n, /nameFilter:FILTER count only files whose name matches the name filter
/p, /preferredPath:PATH count files with multiple link names towards the first link in
alphabetical order that's under PATH if it exists.
To query with multiple preferred paths, separate with comma \",\",
e.g. /p:D:\path1,D:\path2)
NOTE: This options must not be specified togerther
with /l (/allLinks)
/q, /virtual recurse into virtual directories
/s, /skipRecurse skip recursing into child directories when calculating sizes
/t, /TopDirectory:N displays Top N directories by SizeOnDisk in descending order
/u, /TopFile:N displays Top N files by SizeOnDisk in descending order
/v, /verbose displays verbose error information
/x, /clearDefault do not display the default selected columns
Valid commands:
load Loads a Filter driver
unload Unloads a Filter driver
filters Lists the Filters currently registered in the system
instances Lists the Instances for a Filter or Volume currently
registered in the system
volumes Lists all volumes/RDRs in the system
attach Creates a Filter Instance to a Volume
detach Removes a Filter Instance from a Volume
Use fltmc help [ command ] for help on a specific command
Attempts to diagnose heavily damaged ReFS volumes, identify remaining files,
and copy those files to another volume.
ReFS Salvage has a Scan Phase and a Copy Phase. In automatic mode, the Scan
Phase and Copy Phase will run sequentially. In manual mode, each phase can be
run separately. Progress and logs are saved in a working directory to allow
phases to be run separately as well as Scan Phase to be paused and resumed.
Here are the automatic mode Command Line Usages:
Quick Automatic Mode Command Line Usage:
refsutil salvage -QA
It will perform a Quick Scan Phase followed by a Copy Phase.
This mode runs quicker as it assumes some critical structures of the volume
are not corrupted and so there is no need to scan the entire volume to
locate them. This also reduces the recovery of stale files/directories/volumes.
Full Automatic Mode Command Line Usage:
refsutil salvage -FA
It will perform a Full Scan Phase followed by a Copy Phase.
This mode may take a long time as it will scan the entire volume for any
recoverable files/directories/volumes.
Here are the manual mode Command Line Usages:
Diagnose Phase Command Line Usage:
refsutil salvage -D
Attempt to determine if is an ReFS volume and determine
if the volume is mountable. When a volume is not-mountable, reason(s) will
be determined. This is a standalone phase.
Quick Scan Phase Command Line Usage:
refsutil salvage -QS
Quick Scan for any recoverable files.
This mode runs quicker as it assumes some critical structures of the volume
are not corrupted and so there is no need to scan the entire volume to
locate them. This also reduces the recovery of stale files/directories/volumes.
Discovered files will be logged to "foundfiles..txt" under
. If the Scan Phase was previously stopped, running with
the -QS flag again will resume the scan from where it left off.
Full Scan Phase Command Line Usage:
refsutil salvage -FS
Scan entire for any recoverable files.
This mode may take a long time as it will scan the entire volume for any
recoverable files.
Discovered files will be logged to "foundfiles..txt" under
. If the Scan Phase was previously stopped, running with
the -FS flag again will resume the scan from where it left off.
Copy Phase Command Line Usage:
refsutil salvage -C
Copy all files described in "foundfiles..txt" to
. If Scan Phase is stopped too early,
"foundfiles..txt" may not have been written yet and so no file
will be copied to .
Copy Phase with List Command Line Usage:
refsutil salvage -SL
Copy all the files in from to .
The files in must have first been identified by the Scan Phase
though the scan need not have been run to completion.
can be generated by copying "foundfiles..txt"
to a new file, removing lines referencing files that shouldn't be restored,
and preserving files that should be restored. The PowerShell cmdlet
Select-String may be helpful in filtering "foundfiles..txt"
to only include desired paths, extensions, or file names.
Copy Phase with Interactive Console:
refsutil salvage -IC
Salvage files in an interactive console for advanced users.
This mode also requires files generated from either of the Scan Phases.
Parameter definitions:
ReFS volume to process. Drive letter in format "L:",
or a path to the volume mount point.
Location to store temporary information and logs.
It must not be located on .
Location where identified files will be copied to.
It must not be located on .
-m Recover all possible files including deleted ones.
This option will be ignored on refsutil salvage v1.
WARNING: Not only this will take longer time to run,
it can lead to unexpected result.
-v Verbose mode
-x Force the volume to dismount first if necessary. All
opened handles to the volume would then be invalid.
Eg: refsutil salvage -QA R: N:\WORKING N:\DATA -x