Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • Access Region Locked Games on iOS iOS
  • Easily Change Your GRUB 2 Splash Image In Ubuntu 12.04 How-To
  • Top 3 Best Cheap Android Tablets Gadgets
  • The Best Microsoft PowerPoint Keyboard Shortcuts MS Office Tips
  • How to Install Steam Skins 6 Best Tips Gaming
  • Compress Bulk Images Without Losing Quality How-To
  • What Do Snapchat Emojis Mean and How to Use Them technology
  • How to Access Android Phone From Another Android Phone How-To

How to Use DiskPart Utility in Windows

Posted on October 8, 2020 By blog_786 1 Comment on How to Use DiskPart Utility in Windows

Disk Management Tool is a useful and efficient tool for managing Windows disks and partitions, but it is not as powerful as Diskpart. This command line tool lets you delete, create and modify partitions on any hard drives or USB drives that your computer can detect.

We recommend using the Disk Management Tool in most situations, but if Windows won’t start properly or if you prefer to use the PowerShell terminal, Diskpart is the perfect alternative. Here are some of the most common Diskpart commands to help you learn how to use Diskpart effectively.

How to Use DiskPart Utility in Windows

How to use Diskpart

If you want to use Diskpart, you need to open a Windows Command Prompt or PowerShell Terminal. Diskpart is a destructive tool, so you need to open a terminal window with appropriate administrative privileges.

  • To open Diskpart in Windows, right-click the Windows Start Menu button and select Windows PowerShell. (Administrator).

  • In an administrator-level PowerShell terminal (or similar Windows command prompt), type diskpart and press Enter.

How to Use DiskPart Utility in Windows

  • The Diskpart tool starts up in the window, ready to use. Type exit when prompted for “DISKPART>” and press Enter when you’re done using it.
  • Diskpart is also available for users who boot into the Windows Recovery Environment, which is available when booting the computer using Advanced Startup. in Settings> Windows Update and Security> Recovery.
  • Click Restart Now to download WinRE.

How to Use DiskPart Utility in Windows

How to Use DiskPart Utility in Windows

In this article we’ll go over some of the more common Diskpart commands, but if you want to quickly see a complete list of the available Diskpart commands, type help at the DISKPART> prompt and press Enter.

How to Use DiskPart Utility in Windows

List existing hard drives, folders, and partitions

With Diskpart open, the first thing you need to do is check the current structure of your hard drives and attached storage.

  • At the DISKPART> prompt, type list disk and press Enter. It will list all the available drives (including hard drives, USB drives, SD cards, etc.) that your computer can currently detect.

  • Starting from scratch, Diskpart will list all found disks. You will need to remember the disk number (for example, “0” for your Windows hard drive) in order to use it with future Diskpart commands.
  • Along with a list of disks, you can also ask Diskpart for a list of detected volumes. At the DISKPART> command prompt, enter a list of volumes.

How to Use DiskPart Utility in Windows

  • Diskpart can also let you list individual hard disk partitions (some of which may be the same as the volumes listed with the “list volume” command). First you will need to select your hard drive using the list disk command.
  • At the DISKPART> prompt, enter select disk followed by the disk number (for example, select disk 0). Diskpart will confirm that the drive is selected at this point.
  • After selecting the drive, enter the list of partitions. This will display a list of the current partitions on your disk. From here you will be able to delete or modify these partitions using the partition number in the following Diskpart command.

How to Use DiskPart Utility in Windows

How to Use DiskPart Utility in Windows

Delete a hard drive partition or volume using Diskpart

The hard disk (disk) is divided into partitions, which often coincide with the specified volumes. If your hard drive is divided into several partitions or volumes and you want to remove one of them, you can do this using the Diskpart commands.

– /

  • Select hard disk using select disk.
  • At the DISKPART> prompt, enter a list of partitions, then select partition #, replacing # with your partition number.

  • After selecting a section, enter delete section. Diskpart will confirm if the partition was deleted later.
  • You can also delete disk volumes directly if you like. Enter the volume list, find the selected volume number, then enter select volume #, replacing # with your volume number.

How to Use DiskPart Utility in Windows

  • Enter “delete volume” to completely delete the volume. Diskpart will later confirm if the command was successful or not.

How to Use DiskPart Utility in Windows

Completely wipe your hard drive with Diskpart Clean

Instead of deleting individual volumes or partitions on the disk, you can completely erase the hard disk using the Diskpart clean command. You can also use this command if you want to erase a USB stick that is ready to be formatted.

You won’t be able to do this on your system drive (and won’t want to!) If you don’t use Diskpart when installing Windows

  • At the DISKPART> prompt, select the drive you want to erase by typing select disk #, replacing # with your disk number. If you don’t know your disk number, first enter list disk.

  • If you are sure you want to completely erase the disk (deleting all volumes / partitions on the disk), type clean and press Enter. You won’t be prompted for confirmation, so be sure to do this before starting.

How to Use DiskPart Utility in Windows

  • Diskpart will confirm that the disk has been “cleaned up” and is ready to create new partitions.

How to Use DiskPart Utility in Windows

Create and format new hard drive partitions

With a “blank” disk in place, you are ready to create a partition in free space with the Diskpart create partition command. You can then format this new partition to a Windows-friendly file system such as NTFS or FAT32 using the Diskpart format command.

  • Start by selecting the selected disk with select disk #, replacing # with your disk number (and using the disk list to find your disk number if you don’t know.)
  • With a disk selected, enter create partition primary to create a partition using all the space on that disk.
  • If you want to create a partition that only takes up a fraction of the free space (which allows you to create more than one partition), enter create partition primary size = X instead, replacing X with the size of the partition, measured in megabytes. (for example size = 1024 for 1 GB of space).

  • Enter a list of partitions to make sure your new partition is listed, then type select partition 1 to select it. Mark the section as active by typing active in the “DISKPART>” line. This is required if you want to use it as a boot disk.

How to Use DiskPart Utility in Windows

  • To quickly format the drive to NTFS, enter format fs = NTFS label = Y quick. You can replace Y with whatever shortcut you want to use.

How to Use DiskPart Utility in Windows

  • After formatting, Windows will likely automatically assign a drive letter. If not, enter assign the letter Z, replacing Z with the letter of the free disk.

How to Use DiskPart Utility in Windows

How to Use DiskPart Utility in Windows

Extend Hard Disk Drive Size

If you have an existing hard disk volume that does not take up all the free disk space and you want to grow it, the Diskpart commands allow you to do this.

  • Start by selecting the selected disk with select disk #, replacing # with your disk number (and using list disk to find your disk number if you don’t know.)
    • Type list volume to list all available volumes on your computer, then type select volume #, replacing # with the volume you want to expand.
    • Enter extension to expand it to the maximum available size. Diskpart will confirm if the expansion command worked correctly. Confirm that the volume has grown by typing the list number a second time.

    How to Use DiskPart Utility in Windows

    Diskpart has other options available, as the help command briefly explains. If you would like more information on how to use Diskpart, Microsoft has more information on Diskpart support.

    –

    Share this:

    • Twitter
    • Facebook
How-To Tags:Folders

Post navigation

Previous Post: How To Find Lost Or Forgotten Files On Windows 10
Next Post: How To Fix USB Drive Showing Wrong Size

Related Posts

  • How to Change Windows Start-up Sound How-To
  • how to screenshot on roku tv 2021 How-To
  • How to Download Reddit Videos on iPhone How-To
  • Use Reliability Monitor to Check Windows Stability How-To
  • How Much Money do YouTubers Make in 2019? Answered by YouTubers How-To
  • Easily Change Your GRUB 2 Splash Image In Ubuntu 12.04 How-To

Comment (1) on “How to Use DiskPart Utility in Windows”

  1. Pingback: How to Fix PFN LIST CORRUPT in Windows 10 (BSOD) - How To Blog

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • A Simple Trick to Get 50% Discount on Audible for Three Months
  • How to reset your SIM card
  • This Simple Trick Lets You Play YouTube in the Background on iOS
  • How to go Back to the old YouTube Layout (2013)
  • How to Bypass Chromecast DNS and Circumvent Geo Blocking
DMCA.com Protection Status

Recent Posts

  • 10 Things to Check Before Publishing a YouTube Video
  • MailTag: Real-time Email Tracking, Made Easy
  • Pokemon Sleep: what is it and how to play
  • How to Respond to Messages on Instagram (Mobile and PC)
  • How to reset your SIM card

Recent Comments

  1. This Simple Trick Lets You Play YouTube in the Background on iOS on YouTube Not Working? Here Are Quick Fixes To Try
  2. How to Bypass Chromecast DNS and Circumvent Geo Blocking on 5 Cool Websites to Find Good Movies and TV Shows on Netflix
  3. 5 Cool Websites to Find Good Movies and TV Shows on Netflix on check netflix video quality internet explorer
  4. SmartDNS vs VPN “What’s the Difference?” on How to Watch Apple TV on Roku
  5. How to go Back to the old YouTube Layout (2013) on 10 Things to Check Before Publishing a YouTube Video
  • What Is a VBA Array in Excel and How to Program One Office Tips
  • Cleanup the WinSxS Folder in Windows 7/8/10 How-To
  • how to convert multiple images to pdf Computer Tips
  • Gravel calculator Calculator
  • The 6 Best Sites for Fantasy Baseball Cool Websites
  • 5 Easy Ways to Transfer Files Between Computers on the Same Network How-To
  • How to Open MDI Files MS Office Tips
  • Fix Word Opens in Safe Mode Only Office Tips

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version