Using the Command Prompt, try this:
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 disk c
Select the disk c 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] [noerr]
Do not create a primary partition if one is already there.
create partition extended [size=n] [offset=n] [noerr]
create partition logical [size=n] [offset=n] [noerr]
The size of the partition in megabytes (MB). If no size is given, the partition continues until there is no more unallocated space in the current region. The size is cylinder snapped; the size is rounded to the closest cylinder boundary. For example, if you specify a size of 500 MB, the partition would be rounded up to 504 MB.
The byte offset at which to create the partition. If no offset is given, the partition will start at the beginning of the first free space on the disk. For master boot record (MBR) disks, the offset is cylinder snapped; the offset is rounded to the closest cylinder boundary. For example, if you specify an offset that is 27 MB and the cylinder size is 8 MB, the offset is rounded to the 24 MB boundary.
For scripting only. When an error is encountered, specifies that 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.