Windows partitions

From OpenZFS on OS X
Revision as of 02:47, 12 March 2025 by Lundman (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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