Monday, September 05, 2011

How To Create a partition From Command Prompt

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1, Windows Server 2003 with SP2

Using the Windows interface

  1. Open Computer Management (Local).
  2. In the console tree, click Computer Management (Local), click Storage, and then click Disk Management.
  3. Right-click an unallocated region of a basic disk, and then click New Partition, or right-click free space in an extended partition, and then click New Logical Drive.
  4. In the New Partition wizard, click Next, click Primary partition, Extended partition, or Logical drive, and then follow the instructions on your screen.

Using a command line

  1. Open Command Prompt.
  2. Type:

    diskpart
  3. At the DISKPART prompt, type:

    list disk

    Make note of the disk number of the disk on which you want to create a primary or extended partition.
  4. At the DISKPART prompt, type:

    select diskn

    Select the disk n where you want to create the primary or extended partition.
  5. At the DISKPART prompt, type one of the following:

    create partition primary [size=n] [offset=n] [ID=byte | GUID] [noerr]

    or

    create partition extended [size=n] [offset=n] [noerr]

    or

    create partition logical [size=n] [offset=n] [noerr]
  6. At the DISKPART prompt, type:

    assign letter=D
  7. Ok Finish

No comments:

Post a Comment