Wednesday, December 21, 2022

Format a USB drive using the diskpart utility in Windows

1. Open the command prompt as an administrator by clicking on the Start menu, typing "command prompt", and then right-clicking on the Command Prompt icon and selecting "Run as administrator".
2. Type the command diskpart and press Enter. This will launch the diskpart utility.
3. Type the command list disk and press Enter. This will list all of the disks attached to your computer.
4. Identify the disk number of the USB drive you want to format. You can use the size of the disk or the label (if it has one) to determine which disk is the correct one.
5. Type the command select disk X, where X is the disk number of the USB drive. Press Enter.
6. Type the command clean and press Enter. This will delete all partitions on the USB drive and create a single unallocated space.
7. Type the command create partition primary and press Enter. This will create a new primary partition on the USB drive.
8. Type the command format fs=ntfs quick and press Enter. This will format the partition using the NTFS file system and perform a quick format.
9. Type the command assign and press Enter. This will assign a drive letter to the USB drive.
10. Type the command exit and press Enter to exit the diskpart utility.
You can use the diskpart utility to perform various other operations on disks and partitions, such as creating and deleting partitions, extending and shrinking partitions, and setting active partitions. You can use the help command to get a list of available commands and options.

No comments:

Windows PowerToys: Power Up Your Workflow with Free Utilities

    Windows PowerToys: Power Up Your Workflow with Free Utilities   Windows PowerToys is a set of utilities and tools designed to enhance t...