Formats the specified volume for use with Windows.
Syntax: FORMAT [[FS=] [REVISION=] | RECOMMENDED] [LABEL=<"label">]
[UNIT=] [QUICK] [COMPRESS] [OVERRIDE] [DUPLICATE] [NOWAIT]
[NOERR]
FS= Specifies the type of file system. If no file system is given,
the default file system displayed by the FILESYSTEMS command is
used.
REVISION=
Specifies the file system revision (if applicable).
RECOMMENDED If specified, use the recommended file system and revision
instead of the default if a recommendation exists. The
recommended file system (if one exists) is displayed by the
FILESYSTEMS command.
LABEL=<"label">
Specifies the volume label.
UNIT= Overrides the default allocation unit size. Default settings
are strongly recommended for general use. The default
allocation unit size for a particular file system is displayed
by the FILESYSTEMS command.
NTFS compression is not supported for allocation unit sizes
above 4096.
QUICK Performs a quick format.
COMPRESS NTFS only: Files created on the new volume will be compressed
by default.
OVERRIDE Forces the file system to dismount first if necessary. All
opened handles to the volume would no longer be valid.
DUPLICATE UDF Only: This flag applies to UDF format, version 2.5 or
higher.
This flag instructs the format operation to duplicate the file
system meta-data to a second set of sectors on the disk. The
duplicate meta-data is used by applications, for example repair
or recovery applications. If the primary meta-data sectors are
found to be corrupted, the file system meta-data will be read
from the duplicate sectors.
NOWAIT Forces the command to return immediately while the format
process is still in progress. If NOWAIT is not specified,
DiskPart will display format progress in percentage.
NOERR For scripting only. When an error is encountered, DiskPart
continues to process commands as if the error did not occur.
Without the NOERR parameter, an error causes DiskPart to exit
with an error code.
A volume must be selected for this operation to succeed.
Examples:
FORMAT FS=NTFS LABEL="New Volume" QUICK COMPRESS
FORMAT RECOMMENDED OVERRIDE
Format version: %1!d! CSid: %2!s! LinkIndex: 3!08x!.%4!08x! LinkFileNtfsID: 5!08x!.%6!08x! CSFileNtfsID: 7!08x!.%8!08x! CSChecksum: ...
FORMAT volume /FS:file-system /V:label /Q /L /A:size /C /I:state /X /P:passes /S:state FORMAT volume /V:label /Q /F:size ...
FORMAT volume /Q volume Specifies the drive letter (followed by a colon), mount point, or volume name. /FS:filesystem Specifies ...
FORMAT volume /Q volume Specifies the drive letter (followed by a colon), mount point, or volume name. /FS:filesystem Specifies ...
Formats the specified volume for use with Windows. Syntax: FORMAT FS= REVISION= | RECOMMENDED LABEL= UNIT= QUICK COMPRESS ...
Formatting this volume will erase all data on it. Back up any data you want to keep before formatting. Do you want to continue? ...
format`f`bin|bincirc|csv|tsv|sql`Specifies the log format for the data collector. For SQL database format, you must use the ...
Found a conflict in definition of exclusive resource %1!s!. The field Exclusive resource can have values of resource names ...
Found a file at {0} where we were going to place one and does not match the source, but Force was not specified. Erroring ...