← Back to docs
Tools - Configuration•Updated: November 23, 2024
diskmgmt.msc
View and manage drives and partitions with Disk Management.
diskmgmt.msc
Command: diskmgmt.msc
Category: Configuration
Type: GUI
Purpose
Opens the Windows Disk Management console, which provides a graphical interface for viewing and managing disk drives, partitions, and volumes. Use it to create, delete, resize, or format partitions, assign drive letters, and troubleshoot storage issues.
Quick Summary
Disk Management gives you complete control over your storage devices. See all connected drives and their partitions in a visual layout. Create new partitions, extend or shrink volumes, change drive letters, format drives, and quickly diagnose storage problems. Essential for setting up new drives and managing disk space.
How to Use
- Press
Win + Rto open the Run dialog. - Type
diskmgmt.mscand press Enter. - The Disk Management window opens showing all drives and volumes.
- Upper section displays volumes as a list; lower section shows a graphical layout.
- Right-click any drive or volume to access management options.
Alternative methods:
- Type
diskmgmt.mscin Command Prompt, PowerShell, or Start menu search - Right-click "This PC" > Manage > Disk Management
- Search for "Create and format hard disk partitions" in Start menu
Tips and Best Practices
- Always backup important data before making partition changes.
- Shrink volumes to create space for new partitions, but leave at least 10-15% free space.
- Use "Extend Volume" to add unallocated space to existing partitions.
- Be extremely careful with the Delete and Format operations - they erase data.
- Check disk health: right-click a disk > Properties > Tools tab > Check.
- Use descriptive volume labels to easily identify partitions.
- The graphical view (lower pane) is often more intuitive than the list view.
Common Use Cases
- New drive setup: Initialize and partition new hard drives or SSDs.
- Partition management: Create, delete, or resize partitions as needed.
- Drive letter assignment: Change or assign drive letters to volumes.
- Storage troubleshooting: Identify drives that aren't showing up or are having issues.
- Volume extension: Add unallocated space to existing partitions.
- Format operations: Format drives for clean installations or data removal.
Prerequisites
- Administrator rights required to open and use Disk Management
- Available on all Windows versions
- Be cautious: incorrect operations can result in data loss
Troubleshooting
- "Access denied" - Run as Administrator; right-click Command Prompt > Run as administrator.
- Drive not showing up - Check physical connections; use "Rescan Disks" from Action menu.
- Can't extend volume - Unallocated space must be adjacent and to the right of the partition.
- Can't shrink volume - Immovable files (page file, hibernation file) may be preventing shrink; disable these temporarily.
- Disk shows as "Unknown" or "Not Initialized" - Initialize the disk by right-clicking it.
- "The operation is not supported" - May need to use diskpart or third-party tools for advanced operations.
Partition Status Types
- Healthy: Partition is functioning normally.
- Active: System partition that contains boot files.
- System: Partition containing Windows boot files (may not be C:).
- Boot: Partition where Windows is installed.
- Unallocated: Space on a disk not assigned to any partition.
- Raw: Partition without a file system or unrecognized file system.
Important Warnings
- Deleting a partition erases all data on it - Always backup first.
- Be careful with system/boot partitions - Deleting or modifying can make Windows unbootable.
- Dynamic disks - Converting to dynamic disk is irreversible without data loss.
- GPT vs MBR - UEFI systems require GPT; older BIOS systems use MBR.
Related Tools
diskpart- Command-line tool for advanced disk operationschkdsk- Check and repair file system errorsdefrag- Optimize and defragment drivescompmgmt.msc- Computer Management includes Disk Management