Windows partitions

From OpenZFS on OS X
Jump to: navigation, search

Powershell

Get-Partition | ForEach-Object { 
   [PSCustomObject]@{
       Path       = "\\?\Harddisk$($_.DiskNumber)Partition$($_.PartitionNumber)"
       Size       = "$($_.Size) bytes"
       AccessPath = ($_.AccessPaths -join ", ")
   }
} | Format-Table -AutoSize

Then use the syntax: zpool create BOOM HarddiskXPartitionY