{"id":8754,"date":"2025-02-16T19:50:28","date_gmt":"2025-02-16T19:50:28","guid":{"rendered":"https:\/\/purelysupp.com\/computing\/?p=8754"},"modified":"2025-02-22T21:03:12","modified_gmt":"2025-02-22T21:03:12","slug":"manage-partitions-in-cmd-prompt-instead-of-disk-management","status":"publish","type":"post","link":"https:\/\/purelysupp.com\/computing\/software\/windows\/command-prompt\/manage-partitions-in-cmd-prompt-instead-of-disk-management\/","title":{"rendered":"Manage Partitions in CMD Prompt Instead of Disk Management"},"content":{"rendered":"\n<p>When you need to manage disk partitions but Windows Disk Management won&#8217;t let you modify partitions you can use Command Prompt to do it.<\/p>\n\n\n\n<p>To manage disk partitions using Command Prompt in Windows, you can use the DiskPart utility, which provides a text-based interface for partitioning and managing disks. Here\u2019s a step-by-step guide:<\/p>\n\n\n\n<p><strong>1 Open DiskPart<\/strong><\/p>\n\n\n\n<p>Open Command Prompt as Administrator.<\/p>\n\n\n\n<p>Type diskpart and press Enter. This will launch the DiskPart utility.<\/p>\n\n\n\n<p><strong>2 List Disks<\/strong><\/p>\n\n\n\n<p>To view all disks connected to your system, type:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list disk<\/code><\/pre>\n\n\n\n<p>This command will show each disk with a number (e.g., Disk 0, Disk 1).<\/p>\n\n\n\n<p><strong>3 Select a Disk<\/strong><\/p>\n\n\n\n<p>Choose the disk you want to manage by typing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select disk X<\/code><\/pre>\n\n\n\n<p>Replace X with the disk number from the previous step (e.g., select disk 0).<\/p>\n\n\n\n<p><strong>4 List Partitions<\/strong><\/p>\n\n\n\n<p>To view all partitions on the selected disk, type:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>list partition<\/code><\/pre>\n\n\n\n<p><strong>5 Select a Partition<\/strong><\/p>\n\n\n\n<p>If you want to modify a specific partition, select it by typing:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select partition Y<\/code><\/pre>\n\n\n\n<p>Replace Y with the partition number you want to work with.<\/p>\n\n\n\n<p><strong>6 Manage Partitions<\/strong><\/p>\n\n\n\n<p>Now that you\u2019ve selected a partition, you can perform various actions:<\/p>\n\n\n\n<p><strong><em>Create a Partition:<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>create partition primary size=XXXX<\/code><\/pre>\n\n\n\n<p>Replace XXXX with the size in megabytes (MB).<\/p>\n\n\n\n<p><strong><em>Delete a Partition:<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>delete partition<\/code><\/pre>\n\n\n\n<p><strong><em>Format a Partition:<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>format fs=ntfs quick<\/code><\/pre>\n\n\n\n<p>Replace ntfs with fat32 or another file system type if needed.<\/p>\n\n\n\n<p><strong><em>Assign a Drive Letter:<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>assign letter=X<\/code><\/pre>\n\n\n\n<p>Replace X with the letter you want to assign.<\/p>\n\n\n\n<p><strong><em>Shrink a Partition:<\/em><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>shrink desired=XXXX<\/code><\/pre>\n\n\n\n<p>Replace XXXX with the amount in megabytes you want to shrink.<\/p>\n\n\n\n<p>7 Exit DiskPart<\/p>\n\n\n\n<p>When finished, type:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Exit<\/code><\/pre>\n\n\n\n<p>This will exit DiskPart and return you to the regular Command Prompt.<\/p>\n\n\n\n<p><strong>Caution: DiskPart actions are often irreversible and can result in data loss if not used carefully. Always back up your data before modifying disk partitions.<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Command Variations<\/h3>\n\n\n\n<p>Depending on the type of partition, you can add optional parameters to ensure you delete specific kinds of partitions:<\/p>\n\n\n\n<p>1 <strong>Delete a Standard Partition<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>delete partition<\/code><\/pre>\n\n\n\n<p>This will delete the partition you selected with the <code>select partition<\/code> command.<\/p>\n\n\n\n<p><strong>2 Delete an Override Partition:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>delete partition override<\/code><\/pre>\n\n\n\n<p>The <strong><code>override<\/code><\/strong> parameter forces DiskPart to delete the partition even if it&#8217;s a protected, system, or OEM partition. Use this option with caution, as it can remove critical partitions.<\/p>\n\n\n\n<p><strong>3 Delete a Volume Partition by Number:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select volume X\ndelete partition<\/code><\/pre>\n\n\n\n<p>Replace <strong><code>X<\/code><\/strong> with the volume number. First, select the volume associated with the partition and then use <code>delete partition<\/code> to delete it.<\/p>\n\n\n\n<p><strong>Example Commands<\/strong>:<\/p>\n\n\n\n<p><strong>Delete the currently selected partition<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select disk 1\nselect partition 2\ndelete partition<\/code><\/pre>\n\n\n\n<p><strong>Delete a protected partition using override<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>select disk 0\nselect partition 1\ndelete partition override<\/code><\/pre>\n\n\n\n<p><strong>Warning<\/strong>: Deleting a partition will permanently remove all data on it. Ensure you\u2019re working on the correct partition and that you\u2019ve backed up any important data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you need to manage disk partitions but Windows Disk Management won&#8217;t let you modify partitions you can use Command Prompt to do it. To manage disk partitions using Command Prompt in Windows, you can use the DiskPart utility, which provides a text-based interface for partitioning and managing disks. Here\u2019s a step-by-step guide: 1 Open\u2026&nbsp;<a href=\"https:\/\/purelysupp.com\/computing\/software\/windows\/command-prompt\/manage-partitions-in-cmd-prompt-instead-of-disk-management\/\" class=\"rmlink\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":8733,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","iawp_total_views":45,"wds_primary_category":0,"footnotes":""},"categories":[58],"tags":[66,76,75],"class_list":{"0":"post-8754","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-command-prompt","8":"tag-disk-management","9":"tag-diskpart","10":"tag-partition","11":"entry"},"featured_image_src":"https:\/\/purelysupp.com\/computing\/wp-content\/uploads\/sites\/8\/2025\/02\/Screenshot-644-600x400.png","featured_image_src_square":"https:\/\/purelysupp.com\/computing\/wp-content\/uploads\/sites\/8\/2025\/02\/Screenshot-644-600x600.png","author_info":{"display_name":"Jack Alltrade","author_link":"https:\/\/purelysupp.com\/computing\/author\/jacka11trade\/"},"_links":{"self":[{"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/posts\/8754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/comments?post=8754"}],"version-history":[{"count":3,"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/posts\/8754\/revisions"}],"predecessor-version":[{"id":8764,"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/posts\/8754\/revisions\/8764"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/media\/8733"}],"wp:attachment":[{"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/media?parent=8754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/categories?post=8754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/purelysupp.com\/computing\/wp-json\/wp\/v2\/tags?post=8754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}