How to Format a hard drive on Windows 11 with Command Prompt Diskpart

Configurare noua (How To)

Situatie

Solutie

To format a drive with the Diskpart command-line tool, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to open Diskpart and press Enter:
    diskpart
  4. Type the following command to determine the drive to format and press Enter:
    list disk
  5. Type the following command to select the storage and press Enter:
    select disk 3

    In the command, replace 3 with the number of the flash drive you want to use.

  6. Type the following commands to delete everything from the USB thumb drive and press Enter:
    clean

    Format drive commands

  7. Type the following command to create a primary partition and press Enter:
    create partition primary
  8. Type the following command to select the new partition and press Enter:
    select partition 1
  9. Type the following command to make the selected partition active and press Enter:
    active
  10. Type the following command to make the hard drive bootable and press Enter:
    format FS=NTFS quick
  11. Type the following command to assign a volume, and a drive letter for the USB flash drive and press Enter:
    assign letter=X

    In the command, change X for any available letter you want to use.

  12. Type the following command to quit the tool and press Enter:
    exit

After you complete the steps, the drive will be erased, formatted, and mounted with the drive letter you specified.

Tip solutie

Permanent

Voteaza

(5 din 11 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?