当您拿到新硬盘或固态硬盘(state drive)时,您要做的第一件事就是对其进行分区。这意味着您必须创建一个或多个分区,然后才能存储数据。尽管您可以使用第三方工具来执行此任务,但Windows 操作系统(Windows operating)包含的工具也可以处理分区磁盘。因此,这里有两种方法可以在Windows中的任何驱动器( (Windows)HDD、SSD等)上创建分区,仅使用内置工具:
注意:(NOTE:)此过程在所有现代版本的 Windows 中都适用:Windows 10、Windows 8.1 和Windows 7。
如何在Windows中使用磁盘管理创建分区(Disk Management)
您必须做的第一件事是打开磁盘管理(Disk Management)。一种快速的方法是搜索它。但是,还有其他方法,您可以在本教程中找到所有方法:在Windows中打开(Windows)磁盘管理工具(Disk Management tool)的 9 种方法(所有版本)。
如果您的硬盘驱动器上有可用空间,则可以使用它来创建新分区。您应该会看到突出显示的未分区空间并标记为未分配(Unallocated )或“可用空间”。("Free space.")
注意:(NOTE: )如果您的驱动器上没有可用空间,但您对设置的分区不满意,您可以删除现有分区以释放它们占用的所有空间,然后根据需要创建新分区。但是,请注意,删除分区意味着丢失其中的所有数据。如果您想了解有关此主题的更多信息,请参阅本指南:在Windows中删除分区的两种方法,无需第三方应用程序。
要在未分配(空闲)空间中创建分区,请右键单击或点击并按住该空间,然后单击或点击“新建简单卷”。("New Simple Volume.")
此操作应启动“新建简单卷向导”。("New Simple Volume Wizard.")在其中,单击或点击Next。
向导询问分区的大小。输入(Enter)所需的值(以 MB 为单位),然后按Next。请注意,您可以使用全部或部分可用总可用空间。
然后,您可以为新分区选择“分配驱动器号”、(Assign a drive letter,") “安装在空的 NTFS 文件夹中”(Mount in an empty NTFS folder" )或“不分配任何驱动器号或驱动器路径” 。(Do not assign any drive letter or drive path")您可能应该选择为新分区分配一个字母,以便您可以在文件资源管理器(File Explorer )和Windows 资源管理器(Windows Explorer)中将其作为单独的驱动器查看。但是,对于特殊情况,您也可以选择其他选项之一。下定决心后,单击或点击(click or tap) 下一步(Next)。
然后将要求您提供有关如何格式化分区的一些信息。请记住,如果您希望使用此分区,则需要对其进行格式化。在大多数情况下,您应该选择使用NTFS。这是现代Windows版本中的默认和首选文件系统,与(file system)FAT32相比,它提供了更高的性能、安全性和容错性(security and fault tolerance)。有关更多信息,请阅读这篇文章:FAT32、exFAT 还是 NTFS(exFAT or NTFS)?如何格式化 SD 卡、记忆棒和硬盘。
如果您不想格式化分区,请选择“不格式化此卷”("Do not format this volume")并单击或点击下一步(Next)。如果您确实要格式化分区,请选择第二个选项,使用NTFS作为文件系统(file system)并保持默认分配单元大小(Allocation unit size)。标记卷也是一个好主意,不仅可以更轻松地识别它,而且如果您计划与运行在不同操作系统上的其他设备共享此分区,这是一个必需的步骤。卷标(Volume label)始终显示在文件资源管理器(File Explorer)和Windows 资源管理器(Windows Explorer)中的驱动器号(drive letter)旁边。一旦你做出了所有的选择,单击或点击(click or tap) 下一步(Next)。
该向导显示您为新分区选择的设置摘要。您可以单击或点击完成(Finish )以关闭向导。
向导完成后,您将返回“磁盘管理(Disk Management)”窗口,在该窗口中可以看到正在格式化的新分区。这个过程应该只需要几秒钟,但这取决于分区的大小以及您的硬盘或固态驱动器(state drive)的速度。
格式化分区后,它会列在驱动器上的其他分区中。
现在您可以关闭磁盘管理(Disk Management)工具并开始使用新分区在其上存储数据。
如何在Windows中使用PowerShell 或命令提示符(PowerShell or Command Prompt)以及diskpart 工具创建分区(diskpart tool)
如果您更喜欢命令行(command line)而不是图形界面,您可以在Powershell或命令提示符中使用(Command Prompt)diskpart命令。以管理员身份启动您喜欢的命令,然后运行以下命令,每个命令后跟Enter(在您的键盘上):
- diskpart - 启动diskpart工具。
- list disk - 列出系统上安装的所有磁盘。记下要在其上创建分区的磁盘编号。
- 选择磁盘 X(select disk X) - 选择要在其上创建新分区的磁盘。X应该是您要使用的磁盘的编号。
- create partition primary size=XXXXX - 使用磁盘上的可用空间创建一个分区,其大小等于您指定的大小(以兆字节为单位)。将XXXXX替换为您想要的大小。
- assign letter = X - 使用此命令为您刚刚创建的新分区分配一个字母。X应该是您要使用的驱动器号。
- format fs=ntfs quick - 为了能够使用分区,您必须对其进行格式化。我们建议使用NTFS文件系统并进行快速格式化。
现在您可以关闭PowerShell或命令提示符(Command Prompt)并开始使用您的新分区。您还应该注意,上述所有命令都有许多其他可以使用的参数。要查看它们是什么以及如何自定义每个命令,您可以键入help后跟该命令。
如果您想了解有关diskpart 命令工具(command tool)的更多信息,以及如何使用它来管理分区和磁盘,请阅读本教程:命令提示符(Command Prompt)-您应该知道的6 个磁盘管理命令。(disk management)
结论
正如您从我们的指南中看到的,在Windows中创建分区很容易。您可以使用图形化和用户友好的磁盘管理(Disk Management)工具,但如果您愿意,也可以使用DiskPart命令行工具。无需任何第三方应用程序,因为Windows拥有您所需的一切。在下面的评论中让我们知道他们对您的工作效果如何。
2 ways to create a partition, in Windows (all versions)
When you get your hands on a new hard diѕk or solid state drive, the firѕt thing you have to do is partition it. That means that you must creаte one or more partitions so that you can then store data. Although you could use third-party tools for this taѕk, the Windows оperating system includes toоls that can handle partitiоning disks just as well. So hеre are two wayѕ to create a partition on any drive (HDD, SSD, etC) in Windows, using only built-in toоls:
NOTE: This procedure works the same in all modern versions of Windows: Windows 10, Windows 8.1 and Windows 7.
How to create a partition in Windows, using Disk Management
The first thing you must do is open Disk Management. A quick way to do it is to search for it. However, there are also other methods, which you can find all described in this tutorial: 9 ways to open the Disk Management tool in Windows (all versions).
If you have free space on your hard drive, you can use it to create new partitions. You should see the unpartitioned space highlighted and labeled as Unallocated or "Free space."
NOTE: If there is no free space on your drives, but you are not satisfied with the partitions set on the, you could delete the existing partition to free all the space they occupy and then create new partitions as you see fit. However, note that deleting partitions means losing all the data on them. If you want to read more about this subject, see this guide: Two ways of deleting a partition, in Windows, without third-party apps.
To create a partition in the unallocated (free) space, right-click or tap and hold on that space and then click or tap on "New Simple Volume."
This action should launch the "New Simple Volume Wizard." In it, click or tap Next.
The wizard asks what size the partition should be. Enter the value that you want, in megabytes, and then press Next. Note that you can use all or just part of the total available free space.
Then, you can choose to "Assign a drive letter," "Mount in an empty NTFS folder" or "Do not assign any drive letter or drive path" for the new partition. You should probably choose to assign a letter to the new partition so that you can see it in File Explorer and Windows Explorer as a separate drive. However, for special circumstances, you can also choose one of the other options. After you have made your mind, click or tap Next.
You are then going to be asked for some information regarding how the partition should be formatted. Keep in mind that, if you wish to use this partition, it needs to be formatted. In most cases, you should choose to use NTFS. This is the default and preferred file system in modern versions of Windows, providing increased performance, security and fault tolerance when compared to FAT32. For more information, read this article: FAT32, exFAT or NTFS? How to format SD cards, memory sticks, and hard drives.
If you do not want to format the partition, select "Do not format this volume" and click or tap Next. If you do want to format the partition, select the second option, using NTFS as the file system and keeping the default Allocation unit size. It is also a good idea to label the volume, not only to recognize it more easily, but also because it is a required step if you plan on sharing this partition with other devices running on different operating systems. The Volume label always shows up next to the drive letter in File Explorer and Windows Explorer. Once you have made all your choices, click or tap Next.
The wizard displays a summary of the settings you chose for the new partition. You can click or tap on Finish to close the wizard.
When the wizard is finished, you are brought back to the Disk Management window, where you see the new partition as it is being formatted. This process should take only a few seconds, but it depends on the size of the partition and the speed of your hard disk or solid state drive.
After the partition is formatted, it is listed among the others found on your drive.
Now you can close the Disk Management tool and start using the new partition to store data on it.
How to create a partition in Windows, using PowerShell or Command Prompt, and the diskpart tool
If you prefer the command line instead of a graphical interface, you can use the diskpart command in Powershell or Command Prompt. Start the one you prefer, as an administrator, and then run the following commands, each followed by Enter (on your keyboard):
- diskpart - starts the diskpart tool.
- list disk - lists all the disks installed on your system. Write down the number of the disk on which you want to create a partition.
- select disk X - select the disk on which you want to create the new partition. X should be the number of the disk that you want to use.
- create partition primary size=XXXXX - creates a partition using the free space on the disk, with a size equal to the one you specify (in megabytes). Replace XXXXX with the size that you want.
- assign letter = X - use this command to assign a letter to the new partition that you just created. X should be the drive letter that you want to use.
- format fs=ntfs quick - to be able to use the partition, you must format it. We recommend using the NTFS file system and do a quick format.
Now you can close PowerShell or Command Prompt and start using your new partition. You should also note that all the commands above have many other parameters that you can use. To see what they are and how you can customize each command, you can type help followed by that command.
If you want to know more about the diskpart command tool, and how to use it to manage partitions and disks, read this tutorial: Command Prompt - 6 disk management commands you should know.
Conclusion
As you have seen from our guide, creating partitions is easy in Windows. You can use the graphical and user-friendly Disk Management tool, but you can also use the DiskPart command-line tool, if you prefer. There is no need for any third-party apps because Windows has everything you need. Let us know how well they worked for you, in a comment below.