购买全新电脑时,硬盘(hard drive)通常只有一个分区。但是,您可能需要多个分区来组织数据,甚至防止数据丢失。
您可以将硬盘分区视为在其中创建部分,每个分区独立于其他分区。对硬盘进行分区或在硬盘上执行任何此类侵入性操作时,您可能会不小心删除存储在硬盘上的数据。
在本指南中,我将以不擦除数据的方式分解硬盘驱动器的分区过程。第一部分向您展示如何使用带有易于使用的GUI的(GUI)磁盘管理(Disk Management)工具来执行此操作,然后我们将继续介绍如何使用推荐的DISKPART工具对硬盘驱动器进行分区。
(Create)使用磁盘管理工具(Disk Management Tool)创建分区
1]确认(Confirm)文件系统是NTFS
打开 Windows 资源管理器并单击我的电脑(My PC)。右键单击要分区的驱动器并选择Property。
导航到常规 (General )选项卡。在这里,您将找到所选卷的文件系统格式。确认卷的文件系统(file system)是NTFS。
阅读(Read):如何在不格式化的情况下在 Windows 10 中对 C 盘进行分区。
2]将FAT32(Convert FAT32)文件系统转换为NTFS
如果文件系统是 NTFS,那么您可以按照后面的说明进行操作。但是,如果文件系统是 FAT32 ,则除非您将其转换为(FAT32)NTFS,否则该操作将无法进行。下面介绍如何将FAT32文件系统转换为NTFS。
右键单击命令提示符并选择 以管理员身份运行,以管理员(Run as administrator)身份打开命令提示符(Command Prompt)。
(Enter)在命令提示符中(Command Prompt)输入以下代码并按 ENTER:
convert d: /fs:ntfs
注意:(NOTE:)在上面的代码中,将 d:替换为您希望转换为(d:)NTFS的驱动器的盘符。
阅读(Read):如何删除卷或驱动器分区(How to delete a Volume or Drive Partition)。
3]创建一个新分区
打开Windows 资源管理器(Windows Explorer)并右键单击 此 PC(This PC) (在早期 Windows 版本中称为 我的电脑)。(My computer)
从上下文菜单中,单击 管理(Manage)。这将打开“计算机管理(Computer Management)”窗口。在左侧窗格中的存储(Storage)下 找到(Find)并选择磁盘管理。(Disk Management)
找到您要移动的分区 - 右键单击它并选择 Shrink Volume。
默认情况下,您会在标有输入要缩小的空间量(以 MB 为(Enter the amount of space to shrink in MB)单位)的框中看到最大可用大小。但是您可以在此字段中输入您想要的任何尺寸。
完成后点击 收缩 (Shrink )按钮,系统将立即释放空间。完成此操作后,您现在可以从标记为Unallocated的空白空间创建其他分区。
右键单击 未分配(Unallocated)空间并选择 新建简单卷(New Simple Volume…)...。点击 新建简单卷向导 (New Simple Volume Wizard )窗口上的下一步(Next)按钮 。
指定您希望分配给新分区的空间(默认输入最大可用大小)并点击Next。
接下来,为分区分配一个驱动器号,然后单击“下一步”(Next )继续。在最后一页查看您的设置,然后单击 完成(Finish)。
或者,您可以在磁盘管理(Disk Management)工具中将未分配的空间合并到它旁边的驱动器号。为此,请右键单击带有驱动器号且其后有未分配空间的分区,然后单击 Extend Volume。
在 Select the amount of space in MB字段中,设置分区的首选大小。默认情况下,在此框中输入最大可用大小。单击 下一步(Next)按钮完成操作。
阅读(Read):如何使用磁盘管理工具创建新的、调整大小、扩展分区(create New, Resize, Extend Partition using Disk Management Tool)。
使用 DISKPART 创建分区
如果您想要超过 4 个分区,那么您必须使用DISKPART实用程序(DISKPART utility)创建一个扩展卷,该卷可以容纳任意数量的逻辑分区,因为有可用的驱动器号。
DISKPART是(DISKPART)Windows计算机内置的磁盘管理工具。它允许您在Windows PC(Windows PCs)和服务器上创建和管理硬盘分区。尽管您可以重复上述指南中的步骤来创建多个分区,但我们建议您使用DISKPART。
许多服务器应用程序也建议您使用此工具,原因是它提高了新添加到RAID(RAID)阵列的硬盘的 I/O 性能。下面介绍如何使用DISKPART工具创建分区。
以管理员(Administrator)身份打开命令提示符(Command Prompt)。在Command Prompt中,输入以下命令并按ENTER以调用该工具:
diskpart
在DISKPART提示符下,运行以下命令以显示系统上找到的所有磁盘:
list disk
接下来,使用以下命令选择列出的磁盘之一:
select disk 1
注意: (NOTE: )在上述命令中,将 1 部分更改为 DISKPART 列表中的磁盘编号(change the 1 part to the disk number)。
要从所选磁盘创建分区,请使用以下命令:
create partition primary size=20000
注意: (NOTE: )要创建扩展分区而不是主分区,请将 primary替换为 extended。此外,上述命令 (20000) 中指示的大小应始终以 MB为单位。如果您不设置大小,则DISKPART会将整个可用空间分配给分区。
接下来,您必须为分区分配驱动器号。在下面的示例命令中,我们将给它 D字母,但您可以使用任何未使用的字母:
assign letter=d
您可以通过重复上述步骤来创建更多分区。最后,通过运行EXIT命令离开DISKPART工具:(DISKPART)
exit
附加的 DISKPART 命令
现在,您已经了解了如何使用DISKPART工具创建磁盘分区。但它并没有就此结束。在本节中,我将向您展示使用此工具操作磁盘分区的其他有用命令。
首先,启动提升的命令提示符(Command Prompt)并输入DISKPART工具,列出分区,然后使用上一节中的命令选择一个。选择分区后,使用以下命令对其进行操作。
Extend size=10000
注意: (NOTE: )将 1000替换为您的首选大小(以 MB 为单位)。
DELETE partition
clean all
本指南详细说明了如何在不丢失数据的情况下重新分区硬盘。但是,在动态磁盘上使用DISKPART工具时必须小心。
在此页面上运行任何命令之前,请务必咨询您的磁盘供应商。如果您不确定Windows 命令提示符(Windows Command Prompt)和命令,您可以使用磁盘管理器(Disk Manager)。否则(Otherwise),我们建议使用DISKPART工具进行这些操作。
How to re-partition a hard drive in Windows 10 without erasing data
On purchasing a brand new computer, the hard drive usually has a single partition. However, you may need multiple partitions to organize your data and even protect it from data loss.
You can view partitioning your hard drive as creating sections within it, with each partition being independent of others. A fear when partitioning your hard drive, or performing any such intrusive operation on your hard disk, is that you may accidentally erase data stored on it.
In this guide, I’ll break down the process of partitioning your hard drive in a way that you don’t erase your data. The first section shows you how to do this using the Disk Management tool with an easy-to-use GUI, and then we’ll move on to how to partition your hard drive using the recommended DISKPART tool.
Create partitions using the Disk Management Tool
1] Confirm that the file system is NTFS
Open Windows Explorer and click on My PC. Right-click on the drive that you wish to partition and select Property.
Navigate to the General tab. Here, you will find the file system format of the selected volume. Confirm that the file system of the volume is NTFS.
Read: How to partition C drive in Windows 10 without formatting.
2] Convert FAT32 file system to NTFS
If the file system is NTFS, then you can proceed with the instructions that will follow. However, if the file system is FAT32, the operation will not work unless you convert it to NTFS. Here’s how to convert the FAT32 file system to NTFS.
Open Command Prompt as an Administrator by right-clicking it and selecting Run as administrator.
Enter the following code in Command Prompt and hit ENTER:
convert d: /fs:ntfs
NOTE: In the code above, replace d: with the letter of the drive you wish to convert to NTFS.
Read: How to delete a Volume or Drive Partition.
3] Create a new partition
Open Windows Explorer and right-click on This PC (this is called My computer on earlier Windows editions).
From the context menu, click on Manage. This opens the Computer Management window. Find and select Disk Management under Storage in the left-hand pane.
Find the partition that you wish to move—Right-click on it and select Shrink Volume.
By default, you’ll see the maximum available size in the box labeled Enter the amount of space to shrink in MB. But you can enter any size you want in this field.
Hit the Shrink button when you’re done, and the system will release the space immediately. With this done, you can now create additional partitions from the empty space labeled Unallocated.
Right-click on the Unallocated space and select New Simple Volume…. Hit the Next button on the New Simple Volume Wizard window.
Specify the space you wish to allocate to the new partition (the maximum available size is entered by default) and hit Next.
Next, assign a drive letter to the partition and click Next to continue. Review your settings on the last page and then click Finish.
Alternatively, you can merge the unallocated space to the drive letter next to it in Disk Management tool. To do this, right-click on the partition with a drive letter with an unassigned space right after it and hit Extend Volume.
In the Select the amount of space in MB field, set a preferred size for the partition. By default, the maximum available size is entered in this box. Click the Next button to complete the operation.
Read: How to create New, Resize, Extend Partition using Disk Management Tool.
Create partitions using DISKPART
If you want more than 4 partitions then you must use the DISKPART utility to create an extended volume that can hold any number of logical partitions as there are available drive letters.
DISKPART is a disk management tool that is built-in on Windows computers. It lets you create and manage hard drive partitions on Windows PCs and servers. Although you can repeat the steps in the guide above to create multiple partitions, we recommend that you make use of DISKPART.
Many server applications also recommend that you use this tool, and a reason is that it increases the I/O performance of hard disks that are added to a RAID array newly. Here’s how to create partitions using the DISKPART tool.
Open Command Prompt as an Administrator. In Command Prompt, enter the following command and press ENTER to invoke the tool:
diskpart
On the DISKPART prompt, run the following command to show all the disks found on your system:
list disk
Next, select one of the listed disks using the command below:
select disk 1
NOTE: In the command above, change the 1 part to the disk number from the list in DISKPART.
To create a partition from the selected disk, use this command:
create partition primary size=20000
NOTE: To create an extended partition instead of a primary one, replace primary with extended. Also, the size indicated in the above command (20000) should always be in MB. If you don’t set a size, then DISKPART will assign to the partition the entire available empty space.
Next, you have to assign a drive letter to the partition. In the example command below, we will give it the D letter, but you can use any unused letter:
assign letter=d
You can create more partitions by repeating the steps above. Finally, leave the DISKPART tool by running the EXIT command:
exit
Additional DISKPART commands
Now, you’ve learned how to create disk partition using the DISKPART tool. But it doesn’t end there. In this section, I’ll show you other useful commands for manipulating your disk partitions using this tool.
First, launch the elevated Command Prompt and enter the DISKPART tool, list out the partitions, and then select one using the commands in the previous section. With a partition selected, use the following commands to manipulate it.
Extend size=10000
NOTE: Replace 1000 with your preferred size in MB.
DELETE partition
clean all
This guide explains in detail how to re-partition a hard drive without losing your data. However, you must be cautious when using the DISKPART tool on dynamic disks.
Before running any command on this page, be sure to check with your disk vendor. If you’re not sure about the Windows Command Prompt and commands, you may make use of the Disk Manager. Otherwise, we recommend the DISKPART tool for these operations.