Skip to content

Latest commit

 

History

History
89 lines (73 loc) · 1.68 KB

cheatsheet-windows-disk-filesystem-management.md

File metadata and controls

89 lines (73 loc) · 1.68 KB

Windows Disk and Filesystem Management

Open privileged command prompt.

Use SHIFT+F10 to open command prompt during windows installation.

Create EFI partition:

> DISKPART
DISKPART> LIST DISK
DISKPART> SELECT DISK #
DISKPART> CREATE PARTITION EFI SIZE=100
DISKPART> FORMAT QUICK FS=FAT32
DISKPART> ASSIGN LETTER=S
DISKPART> EXIT
> BCDBOOT X:\Windows /s S:

Remove assigned letter:

> DISKPART
DISKPART> REMOVE LETTER=S
DISKPART> EXIT

Create MSR partition:

> DISKPART
DISKPART> LIST DISK
DISKPART> SELECT DISK #
DISKPART> CREATE PARTITION MSR SIZE=16
DISKPART> EXIT

Delete partition:

> DISKPART
DISKPART> LIST DISK
DISKPART> SELECT DISK #
DISKPART> LIST PARTITION
DISKPART> SELECT PARTITION #
DISKPART> DELETE PARTITION [OVERRIDE]
DISKPART> EXIT

Format partition:

> DISKPART
DISKPART> LIST DISK
DISKPART> SELECT DISK #
DISKPART> LIST PARTITION
DISKPART> SELECT PARTITION #
DISKPART>  FORMAT  QUICK FS=NTFS UNIT=4096
DISKPART> EXIT

Convert to GPT:

> DISKPART
DISKPART> LIST DISK
DISKPART> SELECT DISK #
DISKPART> CONVERT GPT
DISKPART> EXIT

Filesystem info:

> FSUTIL FSINFO DRIVES
> FSUTIL FSINFO DRIVETYPE X:
> FSUTIL FSINFO SECTORINFO X:
LogicalBytesPerSector :                                 512
PhysicalBytesPerSectorForAtomicity :                    4096
PhysicalBytesPerSectorForPerformance :                  4096
FileSystemEffectivePhysicalBytesPerSectorForAtomicity : 4096
Device Alignment :                                      Aligned (0x000)
Partition alignment on device :                         Aligned (0x000)
No Seek Penalty
Trim Supported
Not DAX capable
Not Thinly-Provisioned