What's new

Closed How to format hard drive partition with diskpart command line

Status
Not open for further replies.

NICE TRY

Forum Veteran
Elite
Format disk is necessary before using
Format disk is necessary before using. No matter what operating system you are using, it has a certain way to manage disks, and only the formatted disk structure can be recognized. After formatting the disk, you can use it to install OS and store the data. So, when people create a new partition, they always do a format for it.

How to format drive with DiskPart?
To format drive, you can use the Disk Management tool, or right-click on a drive in Windows Explorer and select the "Format...". If you would rather use a command line to format the drive, DiskPart would be the first choice, and it does have many advantages. For example, if you would like to reformat a drive which had an operating system on the drive, you can find there are system partitions on the drive which cannot be formatted by Disk Management and cannot be seen in Windows Explorer. But, how to format drive with DiskPart?

DiskPart is an amazing tool which can manage disks by typing the relative syntax. You can use the CMD to You do not have permission to view the full content of this post. Log in or register now., delete partition, initialize partition, etc, and you can format a local drive or an external hard drive for the use of file storage in your Windows OS environment.

To use the command line to format a drive, you need to open the command prompt first. Here you can click Start, type "cmd", right click it and select "Run as Administrator", or you can press "WIN+R" to open the Run window, then, type "cmd" and press Enter to open the prompt.

run-as-administrator.jpg
Type diskpart to open the diskpart command prompt.

Type list volume, press Enter, all the volume will be list.

Type select volume n, press Enter, the volume you want to format will be selected.

Then, type "format fs=ntfs quick label=test" and press Enter. It will format the partition quick. Like the screen shot shows.

diskpart-format.jpg
Tips: you can change the "test" into any label you like, e.g. "label=Data".

Finally, you can type "exit" and press Enter to close the command prompt. Till now, you can see the new formatted drive in My Computer and take use of it.

DiskPart free alternative - AOMEI Partition Assistant
DiskPart is widely used in Windows Vista/7/8/8.1/10, but it doesn't support Windows XP. If you are using XP, how do you manage disks with command line? Besides, if you want to format C drive without a Windows installation CD or format a hard disk without operating system, what would you do?

Fortunately, there is a disk partition software - You do not have permission to view the full content of this post. Log in or register now., which allows you to manage disk partition with GUI and CMD, and it supports all the Windows OS. For Windows PC users, it has the You do not have permission to view the full content of this post. Log in or register now. and it supports 32bit and 64bit versions of Windows 10/8/8.1/7/Vista/XP. you can use it to manage your hard drive better. For example, You do not have permission to view the full content of this post. Log in or register now. without data loss, You do not have permission to view the full content of this post. Log in or register now. without deleting partitions, You do not have permission to view the full content of this post. Log in or register now. without reinstalling, etc. For more features, you can choose You do not have permission to view the full content of this post. Log in or register now.. Back to the point, how to format disk with AOMEI Partition Asssitant? Before you do, you need to You do not have permission to view the full content of this post. Log in or register now.. Then, you can follow the guide below.

Method 1: Format disk partition with intuitive interface
AOMEI Partition Assistant provides the easiest UI to format disk. Its GUI (graphical user interface) make thing easier and simpler: you can format hard drive only with a few clicks.

Step1. Launch this freeware. Select the partition you want to format, right click on it, select "Format Partition" in the pop-up menu.

format-partition.jpg

Step2. Here you can give a partition label and format the partition to what kind of file systems. Click OK.

format-to.jpg

Step3. Finally, click Apply at the toolbar to execute all operations.

apply.jpg

You can format every partition on your hard drive. Or you can You do not have permission to view the full content of this post. Log in or register now. directly. Both of them will delete the data on the hard drive, so if there are some important data stored on your hard drive, please backup them first. You also can You do not have permission to view the full content of this post. Log in or register now. to format hard disk partition with AOMEI Partition Assistant. If you still want to use CMD to format disk partition, the next method will help you.

Method 2: Format disk partition with AOMEI Partition Assistant Command-line
AOMEI Partition Assistant also allows you use commande line to format disk partition quickly. First, click Start, and type "cmd", right click the program and select "Run as Administrator", or press "WIN+R", type "cmd" and press Enter to open the command line prompt. Then, you can use the parameters to format a drive by following the steps in the screenshot. To use the Command-line, you need to:

  • 1). Type "cd C:\Program Files\AOMEI Partition Assistant Standard Edition 5.8", and press Enter. The path is your AOMEI Partition Assistant installation directory.
  • 2). Type "partassist.exe /list" and press Enter.
  • 3). Type "partassist.exe /list:1" to list all the volume on disk 1.
  • 4). Type "partassist.exe /hd:1 /fmt:H /fs:fat32 /label:xbox" to format the NTFS to FAT 32.
pa-format-partition.jpg
Wait till the progress is completed. Learn more how to use AOMEI Partition Assistant Command Line, please You do not have permission to view the full content of this post. Log in or register now..

Notes:

  • "/hd" followed by disk number, which starts with 0.
  • "/fmt" followed by partition number or drive letter, and the partition number starts with 0. If the specified value is drive letter, disk number can be ignored.
  • "/fs" means file system, whose value can be fat16, fat32 or ntfs.
For home and office usage, AOMEI Partition Assistant is a really good DiskPart alternative, for it has simpler syntax to manage the disks, partitions, and its GUI mode is very acclaimed by users. Plus, it can replace DiskPart to do many things like replacing You do not have permission to view the full content of this post. Log in or register now., etc. But if you try to find a reliable partition software to optimize the performance of your servers for small and medium sized business, You do not have permission to view the full content of this post. Log in or register now. is your best choice. It works on Windows Server 2003, 2008 (R2), 2012 (R2), 2016 and SBS 2003, 2008, 2011 as well as Windows XP, Vista, 7, 8/8.1, 10. Experience the excellent server partition manager, please You do not have permission to view the full content of this post. Log in or register now. to have a try.

A Tutorial from: You do not have permission to view the full content of this post. Log in or register now.
 

Attachments

Status
Not open for further replies.

Similar threads

Back
Top