diskpart命令diskpartis a Windows utility to create partitions on the disk. It is similar to the Linux fdisk utility. diskpartprovides an interactive command shell where we will enter related commands ...
diskpart is a Windows utility to create partitions on the disk. It is similar to the Linux fdisk utility. diskpart provides an interactive command shell where we will enter related commands to partition, format disk, and volumes. In order to run diskpart we need Administrator privileges. The best way to get Administrator privilege is opening MS-DOS as Administrator by right-clicking on it.
Now we will select the second disk which is numbered as 1. Because disk numbers start from 0. We will use select disk 1 . In order to execute format commands, we should select a disk.
现在，我们将选择第二个磁盘，编号为1。因为磁盘号从0开始。我们将使用select disk 1 。 为了执行格式化命令，我们应该选择一个磁盘。
> select disk 1
清理驱动器分区表和信息(Clean Drive Partition Table and Information)
If there is an already set configuration we should clear them to make things simple. We will use clean command.
检查磁盘选择(Check Disk Selection)
In order to execute commands to format disk we should select the disk and partition. We have already selected disk but we can check this selection with list disk command too. Selected disk will have asterisk before its name.
We will create a partition on the selected disk. We will issue create partition primary. There are primary and secondary partition types. IF we have less than 5 partitions in a disk we can use primarily for all of them.
In order to use partition we will activate it. We will use active command.
This is one of the most important part. We will format the selected and activated partition. We will use format command. Also, we will specify the file system type with the FS option. label option is used to set the name of partition which is shown to the user. quick specifies the format operation speed. In this example, we set file system type NTFS and label D