Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Use Diskpart.exe in Windows 11 to Manage Your Drives

Diskpart.exe is a powerful command-line utility in Windows 11 that allows you to manage your computer's drives and partitions. It provides capabilities beyond the graphical Disk Management tool, making it a valuable resource for advanced users and IT professionals. This article will guide you through the basics of using Diskpart, including how to execute it via Command Prompt (CMD), and provide practical examples of its use.

Getting Started with Diskpart

To use Diskpart, you must first open the Command Prompt with administrative privileges. Here's how:

  1. Press Windows + S to open the search bar.
  2. Type cmd.
  3. Right-click on "Command Prompt" and select "Run as administrator".

Once the Command Prompt is open, type diskpart and press Enter. This will launch the Diskpart utility.

Examples of Diskpart Commands

1. List All Disks

To view all the disks connected to your computer, use the following command:

list disk

This command will display all the disks, along with their status, size, and free space.

2. Select a Disk

Before performing operations on a disk, you need to select it. For example, to select Disk 0, use:

select disk 0

3. Create a Partition

To create a new primary partition, use the following commands:

create partition primary size=10240

This command creates a new partition with a size of 10,240 MB (10 GB).

4. Format a Partition

After creating a partition, you may want to format it. Here's how to format it with the NTFS file system:

format fs=ntfs quick

The quick parameter performs a quick format, which is faster than a full format.

5. Assign a Drive Letter

To assign a drive letter to the newly created partition, use:

assign letter=E

This assigns the drive letter E to the partition.

6. Clean a Disk

If you need to completely erase a disk, use the clean command. Caution: This will erase all data on the disk.

clean

Exiting Diskpart

To exit Diskpart, simply type:

exit

Conclusion

Diskpart.exe is a versatile tool for managing disks and partitions in Windows 11. Whether you're creating new partitions, formatting drives, or cleaning disks, Diskpart provides the functionality needed to perform these tasks efficiently via the command line.

To share Download PDF

Gostou do artigo? Deixe sua avaliação!
Sua opinião é muito importante para nós. Clique em um dos botões abaixo para nos dizer o que achou deste conteúdo.