Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
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.
To use Diskpart, you must first open the Command Prompt with administrative privileges. Here's how:
Windows + S
to open the search bar.cmd
.Once the Command Prompt is open, type diskpart
and press Enter. This will launch the Diskpart utility.
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.
Before performing operations on a disk, you need to select it. For example, to select Disk 0, use:
select disk 0
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).
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.
To assign a drive letter to the newly created partition, use:
assign letter=E
This assigns the drive letter E to the partition.
If you need to completely erase a disk, use the clean
command. Caution: This will erase all data on the disk.
clean
To exit Diskpart, simply type:
exit
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.