Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to create two partition on the USB flash drive. The first small 350Mb partition is created fine, but the second throws "New-Partition : Not enough available capacity" even though there is a lot of unallocated space:

PS C:\WINDOWS\system32> $disk | Clear-Disk -RemoveData

PS C:\WINDOWS\system32> $bootPartition = ($disk | New-Partition -IsActive -Size 350MB)

PS C:\WINDOWS\system32> $systemPartition = ($disk | New-Partition -UseMaximumSize)
New-Partition : Not enough available capacity
At line:1 char:29
+ $systemPartition = ($disk | New-Partition -UseMaximumSize)
+                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSFT_Disk) [New-Partition], CimException
    + FullyQualifiedErrorId : StorageWMI 40000,New-Partition

How to fix this?

share|improve this question
    
Have you managed to make this work? I am facing the same problem... Seems like a write error. Trying to do Clear-Disk –InputObject $Disk -RemoveData to start over reports access denied. –  Salketer Sep 5 '13 at 6:44
    
As I remember, I didn't manage to solve this. The problem is probably caused by my disk being a USB flash drive. –  Ark-kun Sep 6 '13 at 17:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.