Posted by: nowiremember | January 6, 2010

How can I use Diskpart to partition a disk ?

A. As part of a deployment using Microsoft Windows Preinstallation
Environment (WinPE), you might need to partition the disk. The easiest
way to do this is to place into a file the following commands:
select disk 0
clean
create partition primary
select partition 1
assign letter=c:
active
format
exit

Then execute the commands using the Diskpart command with the the /s
parameter, as the following example shows:
diskpart /s partscript.txt
The command creates one partition with all the space; alternatively,
you can replace the “create partition primary” with “create partition
primary size=” (e.g. “create partition primary size=10000”)
to create a 10GB C: drive.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: