DiskPart Format command

O

OldDog

Hi,

I would like to use diskpart to format some drives for a SQL server.

We set the Cluster size to 64 for our SQL database drives.

I see in diskpart format I set the UNIT = <N>, but they don't show any
samples of what <N> might be.

Unit = 64
Unit = 64000

Or what?

I would rather get it right the first time, so any help would be
appriciated.
 
0

01MDM

I would like to use diskpart to format some drives

As I know diskpart not for format :)) Use %Windir%\System32\format.com

format /?
 
O

OldDog

As I know diskpart not for format :)) Use %Windir%\System32\format.com

format /?

Oh you can format from DiskPart.
DISKPART> help format

Formats the specified volume for use with Windows.

Usage: FORMAT [{[FS=<FS>] [REVISION=<X.XX>] | RECOMMENDED}] [LABEL=<"label">]
[UNIT=<N>] [QUICK] [COMPRESS] [OVERRIDE] [NOWAIT] [NOERR]

It's the UNIT=<N> part I am having quetions about.


In the Format.exe help it says this:

/A:size Overrides the default allocation unit size. Default
settings
are strongly recommended for general use.
NTFS supports 512, 1024, 2048, 4096, 8192, 16K, 32K,
64K.
FAT supports 512, 1024, 2048, 4096, 8192, 16K, 32K,
64K,
(128K, 256K for sector size > 512 bytes).
FAT32 supports 512, 1024, 2048, 4096, 8192, 16K, 32K,
64K,
(128K, 256K for sector size > 512 bytes).

Note that the FAT and FAT32 files systems impose the
following restrictions on the number of clusters on a
volume:

FAT: Number of clusters <= 65526
FAT32: 65526 < Number of clusters < 4177918

Format will immediately stop processing if it decides
that
the above requirements cannot be met using the
specified
cluster size.

NTFS compression is not supported for allocation unit
sizes
above 4096.

Which again, does not really tell you what to use for 64K (or is it
64K?)
 
O

OldDog

As I know diskpart not for format :)) Use %Windir%\System32\format.com
format /?

Oh you can format from DiskPart.
DISKPART> help format
Formats the specified volume for use with Windows.
Usage: FORMAT [{[FS=<FS>] [REVISION=<X.XX>] | RECOMMENDED}] [LABEL=<"label">]
[UNIT=<N>] [QUICK] [COMPRESS] [OVERRIDE] [NOWAIT] [NOERR]

It's the UNIT=<N> part I am having quetions about.

In the Format.exe help it says this:

 /A:size         Overrides the default allocation unit size. Default
settings
                 are strongly recommended for general use.
                 NTFS supports 512, 1024, 2048, 4096, 8192, 16K, 32K,
64K.
                 FAT supports 512, 1024, 2048, 4096, 8192, 16K, 32K,
64K,
                 (128K, 256K for sector size > 512 bytes).
                 FAT32 supports 512, 1024, 2048, 4096, 8192, 16K, 32K,
64K,
                 (128K, 256K for sector size > 512 bytes).

                 Note that the FAT and FAT32 files systems impose the
                 following restrictions on the number of clusters on a
volume:

                 FAT: Number of clusters <= 65526
                 FAT32: 65526 < Number of clusters < 4177918

                 Format will immediately stop processing if it decides
that
                 the above requirements cannot be met using the
specified
                 cluster size.

                 NTFS compression is not supported for allocation unit
sizes
                 above 4096.

Which again, does not really tell you what to use for 64K (or is it
64K?)

I think I have found it:

Value Description
512 Creates 512 bytes per cluster.

1024 Creates 1024 bytes per cluster.

2048 Creates 2048 bytes per cluster.

4096 Creates 4096 bytes per cluster.

8192 Creates 8192 bytes per cluster.

16K Creates 16 kilobytes per cluster.

32K Creates 32 kilobytes per cluster.

64K Creates 64 kilobytes per cluster.

So it likes like I just type in 64K.
 
0

01MDM

DISKPART> help format

Windows XP has not such context of diskpart. But Win-7 has... I will
know on the future.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top