{"id":588690,"date":"2022-03-08T07:53:56","date_gmt":"2022-03-08T02:23:56","guid":{"rendered":"https:\/\/www.windowschimp.com\/?p=588690"},"modified":"2022-03-08T07:54:08","modified_gmt":"2022-03-08T02:24:08","slug":"diskpart-commands","status":"publish","type":"post","link":"https:\/\/www.windowschimp.com\/diskpart-commands\/","title":{"rendered":"DiskPart Commands: Guide to Format and Fix Drives Not Working"},"content":{"rendered":"\n<p>Sometimes the disk on your Windows 10 system may not work correctly, or the Windows fails to start because of the <a href=\"https:\/\/www.windowschimp.com\/fix-hard-disk-problems-chkdsk-windows-10\/\" target=\"_blank\" rel=\"noreferrer noopener\">hard disk error<\/a>. To rectify such disk errors, Windows 10 comes with an excellent tool known as&nbsp;<strong>DiskPart<\/strong>.<\/p>\n\n\n\n<p>The DiskPart is a powerful command tool that lets you manage the Windows disks and partitions using <a href=\"https:\/\/www.windowschimp.com\/windows-10-run-commands-list\/\" target=\"_blank\" rel=\"noreferrer noopener\">Command Prompt<\/a> or Windows PowerShell. This command interpreter allows you to delete, create, and modify partitions on any drives your PC can detect, even the external hard drives and <a href=\"https:\/\/www.windowschimp.com\/remove-write-protection-usb\/\" target=\"_blank\" rel=\"noreferrer noopener\">USB storage<\/a>. It is quite useful when any Pendrive or hard disks get corrupted because of logical errors and stopped working. Using DiskPart commands, you can wipe out the data and start clean.<\/p>\n\n\n\n<p>DiskPart is not a new concept. It has been the part of the Windows even before Windows 10. It is the best alternative when other disk utility such as Disk Management Tool fails to work.<\/p>\n\n\n\n<p>In this guide, we would learn to use the common DiskPart commands to fix &#8216;Drive not Working&#8217; and other <a href=\"https:\/\/www.windowschimp.com\/modern-setup-host-100-disk-usage\/\" target=\"_blank\" rel=\"noreferrer noopener\">disk errors<\/a>.<\/p>\n\n\n\n<div style=\"clear:both; margin-top:0em; margin-bottom:1em;\"><a href=\"https:\/\/www.windowschimp.com\/speed-ssd-hdd-tools\/\" target=\"_self\" rel=\"dofollow\" class=\"ua4158da36955b49a892f5e3f7cf238c4\"><style> .ua4158da36955b49a892f5e3f7cf238c4 { padding:0px; margin: 0; padding-top:1em!important; padding-bottom:1em!important; width:100%; display: block; font-weight:bold; background-color:#ECF0F1; border:0!important; border-left:4px solid #34495E!important; text-decoration:none; } .ua4158da36955b49a892f5e3f7cf238c4:active, .ua4158da36955b49a892f5e3f7cf238c4:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; text-decoration:none; } .ua4158da36955b49a892f5e3f7cf238c4 { transition: background-color 250ms; webkit-transition: background-color 250ms; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .ua4158da36955b49a892f5e3f7cf238c4 .ctaText { font-weight:bold; color:#2980B9; text-decoration:none; font-size: 16px; } .ua4158da36955b49a892f5e3f7cf238c4 .postTitle { color:#2980B9; text-decoration: underline!important; font-size: 16px; } .ua4158da36955b49a892f5e3f7cf238c4:hover .postTitle { text-decoration: underline!important; } <\/style><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\"><\/span>&nbsp; <span class=\"postTitle\">7 Tools to Speed SSD and Hard Disk Drives<\/span><\/div><\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-open-diskpart-on-windows-10\"><span class=\"ez-toc-section\" id=\"How_to_open_DiskPart_on_Windows_10\"><\/span>How to open DiskPart on Windows 10?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Launching the DiskPart is not a big task. You just require to open the command terminals, either the <a href=\"https:\/\/www.windowschimp.com\/command-prompt-keyboard-shortcuts\/\" target=\"_blank\" rel=\"noreferrer noopener\">Command Prompt<\/a> or Windows PowerShell with the administrative rights.&nbsp;<\/p>\n\n\n\n<p>In this guide, we would use the Command Prompt to run the DiskPart commands. The same commands can be directly used in Windows PowerShell without any changes.<\/p>\n\n\n\n<div class=\"schema-how-to wp-block-yoast-how-to-block\"><p class=\"schema-how-to-description\"><\/p> <ol class=\"schema-how-to-steps\"><li class=\"schema-how-to-step\" id=\"how-to-step-1599115870560\"><strong class=\"schema-how-to-step-name\"><\/strong> <p class=\"schema-how-to-step-text\">Search\u00a0<strong>Command Prompt<\/strong>\u00a0in the Windows search bar and launch it with admin rights.<br \/><img loading=\"lazy\" width=\"600\" height=\"520\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2017\/09\/Open-Command-Prompt-as-Admin.jpg\" class=\"attachment-full size-full\" alt=\"Open Command Prompt as Admin\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1599116062206\"><strong class=\"schema-how-to-step-name\"><\/strong> <p class=\"schema-how-to-step-text\">In the command window, type\u00a0<strong>diskpart\u00a0<\/strong>and hit enter. The DISKPART tool would be open and ready to use.<br \/><img loading=\"lazy\" width=\"630\" height=\"266\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/launch-DISKPART.png\" class=\"attachment-full size-full\" alt=\"launch DISKPART\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1599116090054\"><strong class=\"schema-how-to-step-name\"><\/strong> <p class=\"schema-how-to-step-text\">If you want to glance on the full list of available commands of DiskPart type\u00a0<strong>help\u00a0<\/strong>in the command window and press the enter key.<br \/><img loading=\"lazy\" width=\"673\" height=\"770\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/diskpart-help.png\" class=\"attachment-full size-full\" alt=\"diskpart help command\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" \/><\/p> <\/li><li class=\"schema-how-to-step\" id=\"how-to-step-1599116119930\"><strong class=\"schema-how-to-step-name\"><\/strong> <p class=\"schema-how-to-step-text\">After using it, type\u00a0<strong>Exit\u00a0<\/strong>and hit the enter key to exit the tool.<img loading=\"lazy\" width=\"630\" height=\"301\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/Exit-DiskPart.png\" class=\"attachment-full size-full\" alt=\"Exit DiskPart\" decoding=\"async\" style=\"max-width: 100%; height: auto;\" \/><\/p> <\/li><\/ol><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-common-diskpart-commands\"><span class=\"ez-toc-section\" id=\"Common_DiskPart_Commands\"><\/span>Common DiskPart Commands<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We would now explore the common DiskPart Command Prompt commands that you will mostly require.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Command <\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">ACTIVE<\/td><td>Mark the selected partition as active.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">ADD<\/td><td>Add a mirror to a simple volume.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">ASSIGN<\/td><td>Assign a drive letter or mount point to the selected volume.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">ATTRIBUTES<\/td><td>Manipulate volume or disk attributes.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">ATTACH<\/td><td>Attaches a virtual disk file.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">AUTOMOUNT<\/td><td>Enable and disable automatic mounting of basic volumes.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">BREAK<\/td><td>Break a mirror set.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">CLEAN<\/td><td>Clear the configuration information, or all information, off the disk.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">COMPACT<\/td><td>Attempts to reduce the physical size of the file.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">CONVERT<\/td><td>Convert between different disk formats.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">CREATE<\/td><td>Create a volume, partition, or virtual disk. (No virtual disk management in Windows XP.)<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">DELETE<\/td><td>Delete an object.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">DETAIL<\/td><td>Provide details about an object.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">DETACH<\/td><td>Detaches a virtual disk file.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">EXIT<\/td><td>Exit DiskPart.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">EXTEND<\/td><td>Extend a volume.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">EXPAND<\/td><td>Expands the maximum size available on a virtual disk<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">FILESYSTEMS<\/td><td>Display current and supported file systems on the volume.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">FORMAT<\/td><td>Format the volume or partition.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">GPT<\/td><td>Assign attributes to the selected GPT partition.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">HELP<\/td><td>Display a list of commands.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">IMPORT<\/td><td>Import a disk group.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">INACTIVE<\/td><td>Mark the selected partition as inactive.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">LIST<\/td><td>Display a list of objects.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">MERGE<\/td><td>Merges a child disk with its parents.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">ONLINE<\/td><td>Online an object that is currently marked as offline.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">OFFLINE<\/td><td>Offline an object that is currently marked as online.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">RECOVER<\/td><td>Refreshes the state of all disks in the selected pack. Attempts recovery on disks in the invalid pack, and resynchronizes mirrored volumes and RAID5 volumes that have stale plex or parity data<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">REM<\/td><td>Does nothing. This is used to comment scripts.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">REMOVE<\/td><td>Remove a drive letter or mount point assignment.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">REPAIR<\/td><td>Repair a RAID-5 volume with a failed member.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">RESCAN<\/td><td>Rescan the computer looking for disks and volumes.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">RETAIN<\/td><td>Place a retained partition under a simple volume.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">SAN<\/td><td>Display or set the SAN policy for the currently booted OS.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">SELECT<\/td><td>Shift the focus to an object.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">SETID<\/td><td>Change the partition type.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">SHRINK<\/td><td>Reduce the size of the selected volume.<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\">UNIQUEID<\/td><td>Displays or sets the GUID partition table (GPT) identifier or master boot record (MBR) signature of a disk.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-buttons alignwide is-content-justification-center is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link has-background\" href=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2021\/06\/Diskpart-Commands-Full-List.pdf\" style=\"border-radius:8px;background-color:#24447b\" target=\"_blank\" rel=\"noreferrer noopener\">Download the PDF version of Diskpart Command-List<\/a><\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-listing-existing-hard-drives-volumes-partitions-using-diskpart\"><span class=\"ez-toc-section\" id=\"Listing_Existing_Hard_Drives_Volumes_Partitions_using_DiskPart\"><\/span><strong>Listing Existing Hard Drives, Volumes &amp; Partitions<\/strong> <strong>using DiskPart<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Before applying any destructive commands, you can first check the current internal and external hard disks and USB storage layout.<\/p>\n\n\n\n<p>To check the available&nbsp;<strong>disks<\/strong>:<\/p>\n\n\n\n<ol><li>Open the DiskPart and after &#8220;<strong>DISKPART&gt;<\/strong>&#8221; prompt type&nbsp;<strong>list disk&nbsp;<\/strong>and hit enter. This command will list all the available and detectable storage disks, including internal and external drives and USB storage.<img decoding=\"async\" loading=\"lazy\" width=\"636\" height=\"226\" class=\"wp-image-588699\" style=\"width: 636px;\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/Diskpart-disk-list.png\" alt=\"Diskpart list disk command\"\/><\/li><li>To apply the DiskPart commands on the disks, you need to remember the disk number. For example, the windows disk is &#8220;<strong>Disk 0.<\/strong>&#8220;<\/li><\/ol>\n\n\n\n<p>To display the list of detected&nbsp;<strong>Volumes:<\/strong><\/p>\n\n\n\n<ol><li>Launch DiskPart and next to &#8220;<strong>DISKPART&gt;<\/strong>&#8221; prompt type&nbsp;<strong>list volume.<\/strong><img decoding=\"async\" loading=\"lazy\" width=\"668\" height=\"374\" class=\"wp-image-588698\" style=\"width: 668px;\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/diskpart-list-volume.png\" alt=\"diskpart list volume command\"\/><\/li><li>All volumes would be listed.<\/li><\/ol>\n\n\n\n<p>Check the list of&nbsp;<strong>partitions<\/strong>:<\/p>\n\n\n\n<ol><li>To check the partition list, you must first select the hard disk with the<strong>&nbsp;list disk<\/strong>&nbsp;command.<\/li><li>After the disk list is displayed, type&nbsp;<strong>select disk&nbsp;<\/strong>followed by the disk number.<img decoding=\"async\" loading=\"lazy\" width=\"520\" height=\"228\" class=\"wp-image-588697\" style=\"width: 520px;\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/diskpart-select-disk.png\" alt=\"diskpart select disk command\"\/><\/li><li>Once the disk is selected, type&nbsp;<strong>list partition,&nbsp;<\/strong>and hit the enter key, the selected disk&#8217;s partition list will be displayed. You can further modify the partitions using the partition number.<img decoding=\"async\" loading=\"lazy\" width=\"514\" height=\"472\" class=\"wp-image-588696\" style=\"width: 615px;\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/Diskpart-list-partition.png\" alt=\"Diskpart list partition command\"\/><\/li><\/ol>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-delete-hard-drive-volume-and-partition-using-diskpart\"><span class=\"ez-toc-section\" id=\"How_to_Delete_Hard_Drive_Volume_and_Partition_using_DiskPart\"><\/span><strong>How to Delete Hard Drive, Volume, and Partition using DiskPart ?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you want to delete the Volume or Partition of your system&#8217;s hard disk using Diskpart, follow these steps:<\/p>\n\n\n\n<ol><li>First, select the hard drive using the<strong>&nbsp;select disk<\/strong>&nbsp;command, followed by the disk number.<\/li><li>Now open the partition list of the chosen disk using&nbsp;<strong>list partition<\/strong>&nbsp;command.<\/li><li>Chose the partition using&nbsp;<strong>select partition #<\/strong>&nbsp;command, replace&nbsp;<strong>#&nbsp;<\/strong>with the required partition number.<\/li><li>Once the partition is selected, you can delete it using the&nbsp;<strong>delete partition<\/strong>&nbsp;command. The partition will be deleted.<img decoding=\"async\" loading=\"lazy\" width=\"514\" height=\"165\" class=\"wp-image-588695\" style=\"width: 514px;\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/delete-partition.png\" alt=\"Select and Delete the Partition using DiskPart\"\/><\/li><li>Similarly, you can delete the disk volume. Type&nbsp;<strong>list volume<\/strong>, check your chosen volume number, then type&nbsp;<strong>select volume #<\/strong>, replacing&nbsp;<strong>#<\/strong>&nbsp;with your volume number.<img decoding=\"async\" loading=\"lazy\" width=\"702\" height=\"426\" class=\"wp-image-588694\" style=\"width: 680px;\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/delete-volume.png\" alt=\"Delete volume using DiskPart\"\/><\/li><li>Type&nbsp;<strong>delete volume,&nbsp;<\/strong>to delete the chosen volume.<\/li><\/ol>\n\n\n\n<div style=\"clear:both; margin-top:0em; margin-bottom:1em;\"><a href=\"https:\/\/www.windowschimp.com\/clone-drives\/\" target=\"_self\" rel=\"dofollow\" class=\"u0270d9128371ac744692462171168c95\"><style> .u0270d9128371ac744692462171168c95 { padding:0px; margin: 0; padding-top:1em!important; padding-bottom:1em!important; width:100%; display: block; font-weight:bold; background-color:#ECF0F1; border:0!important; border-left:4px solid #34495E!important; text-decoration:none; } .u0270d9128371ac744692462171168c95:active, .u0270d9128371ac744692462171168c95:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; text-decoration:none; } .u0270d9128371ac744692462171168c95 { transition: background-color 250ms; webkit-transition: background-color 250ms; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .u0270d9128371ac744692462171168c95 .ctaText { font-weight:bold; color:#2980B9; text-decoration:none; font-size: 16px; } .u0270d9128371ac744692462171168c95 .postTitle { color:#2980B9; text-decoration: underline!important; font-size: 16px; } .u0270d9128371ac744692462171168c95:hover .postTitle { text-decoration: underline!important; } <\/style><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\"><\/span>&nbsp; <span class=\"postTitle\">How to Clone Drives in Windows 10<\/span><\/div><\/a><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-completely-wipe-out-the-hard-disk-using-diskpart\"><span class=\"ez-toc-section\" id=\"How_to_Completely_Wipe_Out_the_Hard_Disk_using_DiskPart\"><\/span><strong>How to<\/strong> <strong>Completely Wipe Out the Hard Disk using DiskPart?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you face a problem in formatting the system hard disk, external hard drive, or the USB Pendrive, then using DiskPart, you can easily wipe them out. Obviously, you won&#8217;t be able to clean the disk on which your OS is installed.<\/p>\n\n\n\n<ol><li>Similar to previous steps, on the DISKPART prompt window, type&nbsp;<strong>list disk.<\/strong><\/li><li>By typing&nbsp;<strong>select disk #&nbsp;<\/strong>command where&nbsp;<strong>#&nbsp;<\/strong>is your disk number, choose the disk that you want to format completely.<\/li><li>After selecting the disk, type&nbsp;<strong>clean&nbsp;<\/strong>command to format it completely. Remember that it would not warn you, so make sure that you have selected the correct disk.<img decoding=\"async\" loading=\"lazy\" width=\"531\" height=\"301\" class=\"wp-image-588693\" style=\"width: 531px;\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/clean-disk.png\" alt=\"Clean disk using DiskPart\"\/><\/li><li>After the cleanup, DiskPart would display the success message, and the disk would be ready for creating the new partitions.&nbsp;<\/li><\/ol>\n\n\n\n<div style=\"clear:both; margin-top:0em; margin-bottom:1em;\"><a href=\"https:\/\/www.windowschimp.com\/hard-drive-space\/\" target=\"_self\" rel=\"dofollow\" class=\"u9d153bd5803a6bd84dc88edcd9661fb2\"><style> .u9d153bd5803a6bd84dc88edcd9661fb2 { padding:0px; margin: 0; padding-top:1em!important; padding-bottom:1em!important; width:100%; display: block; font-weight:bold; background-color:#ECF0F1; border:0!important; border-left:4px solid #34495E!important; text-decoration:none; } .u9d153bd5803a6bd84dc88edcd9661fb2:active, .u9d153bd5803a6bd84dc88edcd9661fb2:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; text-decoration:none; } .u9d153bd5803a6bd84dc88edcd9661fb2 { transition: background-color 250ms; webkit-transition: background-color 250ms; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .u9d153bd5803a6bd84dc88edcd9661fb2 .ctaText { font-weight:bold; color:#2980B9; text-decoration:none; font-size: 16px; } .u9d153bd5803a6bd84dc88edcd9661fb2 .postTitle { color:#2980B9; text-decoration: underline!important; font-size: 16px; } .u9d153bd5803a6bd84dc88edcd9661fb2:hover .postTitle { text-decoration: underline!important; } <\/style><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\"><\/span>&nbsp; <span class=\"postTitle\">10 Ways to Find What is Taking up Space on Hard Drive<\/span><\/div><\/a><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-how-to-create-and-format-new-hard-drive-partitions-using-diskpart\"><span class=\"ez-toc-section\" id=\"How_to_Create_and_Format_New_Hard_Drive_Partitions_using_DiskPart\"><\/span><strong>How to<\/strong> <strong>Create and Format New Hard Drive Partitions using DiskPart?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Using the steps from the last section, you might have cleaned your hard disk. Now its time to create the new partitions and format them with Windows-friendly file systems like <a href=\"https:\/\/www.windowschimp.com\/convert-fat32-to-ntfs\/\" target=\"_blank\" rel=\"noreferrer noopener\">NTFS or FAT32<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"464\" height=\"509\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/create-a-new-partition-using-diskpart.jpg\" alt=\"create a new partition using diskpart\" class=\"wp-image-588692\"\/><\/figure><\/div>\n\n\n\n<ol><li>Open the disk list using the&nbsp;<strong>list disk&nbsp;<\/strong>command and select the disk using the&nbsp;<strong>select disk #&nbsp;<\/strong>command, where&nbsp;<strong>#<\/strong>&nbsp;is the disk number.<\/li><li>&nbsp;After selecting the disk type the&nbsp;<strong>create partition primary&nbsp;<\/strong>command to create a partition using the entire space on that drive.<\/li><li>If you want to create multiple partitions, you can assign how much space a partition could take. For that type,&nbsp;<strong>create partition primary size=X,&nbsp;<\/strong>where X is the size that you wish to set to the partition.<\/li><li>To ensure that the new partition is listed, type&nbsp;<strong>list partition<\/strong>&nbsp;command.<\/li><li>Use&nbsp;<strong>active&nbsp;<\/strong>command to activate the partition. It is required to use the partition as a bootable drive.<\/li><li>To format the partition with the NTFS file system, use&nbsp;<strong>format FS=NTFS label=Data quick&nbsp;<\/strong>command. You can replace&nbsp;<strong>Data&nbsp;<\/strong>with any label you want.<\/li><li>After it gets format, the DiskPart would automatically <a rel=\"noreferrer noopener\" href=\"https:\/\/www.windowschimp.com\/change-drive-letter-windows-10\/\" target=\"_blank\">assign the letter to the partition<\/a>. If it doesn&#8217;t, you can manually set it. For that type,&nbsp;<strong>assign letter=g,&nbsp;<\/strong>where you can replace&nbsp;<strong>g<\/strong>&nbsp;with any drive letter that you want.&nbsp;<\/li><\/ol>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img decoding=\"async\" loading=\"lazy\" width=\"441\" height=\"158\" src=\"https:\/\/www.windowschimp.com\/wp-content\/uploads\/2020\/09\/Format-the-partition-and-assign-letter-to-it-using-diskpart.png\" alt=\"Format the partition and assign letter to it using diskpart\" class=\"wp-image-588691\"\/><\/figure><\/div>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>These are the top used DiskPart commands that you can use to fix your hard drive problems and clean the USB drives and hard disks.<\/p>\n\n\n\n<p>There are more commands, too, if you want to know about them, type&nbsp;<strong>help&nbsp;<\/strong>after launching DISKPART in the command window.<\/p>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1599115268337\"><strong class=\"schema-faq-question\">1. How to open DiskPart in Windows 10?<\/strong> <p class=\"schema-faq-answer\">You can open DiskPart utility through Command Prompt or Windows PowerShell in Windows 10. After launching any of the command terminals, type\u00a0<strong>diskpart<\/strong>\u00a0to launch DiskPart.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1599115284203\"><strong class=\"schema-faq-question\">2. How to fix hard drive problems with DiskPart?<\/strong> <p class=\"schema-faq-answer\">DiskPart utility is specifically available for solving the disk issues on Windows 10. After launching the diskpart, type the\u00a0<strong>help\u00a0<\/strong>command to know about all the commands supported by diskpart. This post guides you on how to use the most common DiskPart commands.<\/p> <\/div> <\/div>\n\n\n\n<div style=\"clear:both; margin-top:0em; margin-bottom:1em;\"><a href=\"https:\/\/www.windowschimp.com\/fix-100-disk-usage\/\" target=\"_self\" rel=\"dofollow\" class=\"u2e1ddb74deb4229b1108b39ad0828e38\"><style> .u2e1ddb74deb4229b1108b39ad0828e38 { padding:0px; margin: 0; padding-top:1em!important; padding-bottom:1em!important; width:100%; display: block; font-weight:bold; background-color:#ECF0F1; border:0!important; border-left:4px solid #34495E!important; text-decoration:none; } .u2e1ddb74deb4229b1108b39ad0828e38:active, .u2e1ddb74deb4229b1108b39ad0828e38:hover { opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; text-decoration:none; } .u2e1ddb74deb4229b1108b39ad0828e38 { transition: background-color 250ms; webkit-transition: background-color 250ms; opacity: 1; transition: opacity 250ms; webkit-transition: opacity 250ms; } .u2e1ddb74deb4229b1108b39ad0828e38 .ctaText { font-weight:bold; color:#2980B9; text-decoration:none; font-size: 16px; } .u2e1ddb74deb4229b1108b39ad0828e38 .postTitle { color:#2980B9; text-decoration: underline!important; font-size: 16px; } .u2e1ddb74deb4229b1108b39ad0828e38:hover .postTitle { text-decoration: underline!important; } <\/style><div style=\"padding-left:1em; padding-right:1em;\"><span class=\"ctaText\"><\/span>&nbsp; <span class=\"postTitle\">How to Fix 100% Disk Usage in Windows 10<\/span><\/div><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>DiskPart is a command tool that lets you manage the Windows disks and partitions. In this guide we would discuss the common DiskPart commands.<\/p>\n","protected":false},"author":6892,"featured_media":588707,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14201],"tags":[127345],"_links":{"self":[{"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/posts\/588690"}],"collection":[{"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/users\/6892"}],"replies":[{"embeddable":true,"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/comments?post=588690"}],"version-history":[{"count":3,"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/posts\/588690\/revisions"}],"predecessor-version":[{"id":590796,"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/posts\/588690\/revisions\/590796"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/media\/588707"}],"wp:attachment":[{"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/media?parent=588690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/categories?post=588690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.windowschimp.com\/wp-json\/wp\/v2\/tags?post=588690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}