Question

Difficulty: MediumMicrosoft Command-Line Tools

A desktop technician installs a new unformatted secondary hard drive into a Windows workstation. The technician launches the `diskpart` utility in an elevated Command Prompt to configure the drive. In what sequence should the technician execute the following `diskpart` subcommands to successfully select the drive, partition it, format it with NTFS, and assign it the letter D?

  1. 1select disk 1
  2. 2create partition primary
  3. 3format fs=ntfs quick
  4. 4assign letter=D

Answer

The correct operational sequence in diskpart is to first select the physical disk (select disk 1), then create a primary partition (create partition primary), format the partition using NTFS (format fs=ntfs quick), and finally assign the drive letter (assign letter=D).
To properly prepare a new storage drive using diskpart, an administrator must first set focus by selecting the target disk, create a primary partition, format that partition with a valid file system such as NTFS, and then assign a drive letter to mount the volume for operating system access.

Step-by-Step Solution

1
Select the target physical disk
Disk 1 is set as the active object in diskpart.
Diskpart commands operate only on the currently focused object, making disk selection mandatory before configuring storage.
2
Create a primary partition
A primary partition structure is written across the unallocated space.
Formatting and drive letter assignment require an existing partition container.
3
Format the volume with NTFS
The partition is formatted with the NTFS file system.
The raw partition must be formatted so the operating system can structure files and directories.
4
Assign the drive letter D
The volume is mounted and mapped to drive letter D:.
Drive letter assignment exposes the formatted volume to Windows File Explorer and the user applications.

Key Concept

Diskpart Subcommand Execution Order for Disk Initialization and Volume Creation
Rate this question