LLI Wiki — My Digital Knowledge Base

Windows: check GPT/MBR and volume block size

diskpart and PowerShell commands to find the partition style and allocation unit size of volumes.

How to check the partition style (GPT or MBR) of a disk and the block size (allocation unit size) of Windows volumes, for example before placing database files on them.

Partition style (GPT / MBR)

diskpart
list disk

In the list disk output, an asterisk in the Gpt column marks a GPT disk; without an asterisk the disk is MBR.

Volume block size

Get-WmiObject -Class Win32_Volume | Select-Object Label, BlockSize | Format-Table -AutoSize

The BlockSize property gives the volume allocation size in bytes (65536 means 64 KB).

Mastodon LLIMastodon SocialFosstodon