Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade
Disk Management is a crucial component of the Windows operating system that allows users to perform advanced storage tasks such as creating, resizing, and formatting partitions. This article will guide you through the various ways to manage disks in Windows using both the graphical Disk Management tool and command-line utilities like Diskpart and PowerShell.
Using Disk Management GUI:
Accessing Disk Management:
Windows + X
and select "Disk Management" from the menu.Windows + R
, type diskmgmt.msc
, and press Enter.Creating a New Partition:
Resizing a Partition:
Formatting a Partition:
Using Command Line Tools:
Diskpart:
Diskpart is a powerful command-line utility for disk management. Here's how to use it:
diskpart
and press Enter to launch the Diskpart tool.list disk
to display all disks.select disk X
(replace X with the disk number) to select a disk.list partition
to display partitions on the selected disk.create partition primary size=XXXX
to create a new partition of specified size in MB.format fs=ntfs quick
to format the partition with NTFS file system.assign letter=X
to assign a drive letter to the partition.PowerShell:
PowerShell provides cmdlets for disk management, offering a scriptable way to manage disks:
Get-Disk
to list all disks.Initialize-Disk -Number X
to initialize a disk (replace X with the disk number).New-Partition -DiskNumber X -UseMaximumSize -AssignDriveLetter
to create a new partition.Format-Volume -DriveLetter X -FileSystem NTFS -NewFileSystemLabel "NewVolume"
to format the partition.Examples:
Creating a Partition using Diskpart:
diskpart
list disk
select disk 1
create partition primary size=10240
format fs=ntfs quick
assign letter=E
Creating a Partition using PowerShell:
Get-Disk
Initialize-Disk -Number 1
New-Partition -DiskNumber 1 -UseMaximumSize -AssignDriveLetter
Format-Volume -DriveLetter E -FileSystem NTFS -NewFileSystemLabel "NewVolume"