如果您的一个驱动器上有一些可用空间并且其上的分区太小,您可能需要调整它们的大小以使其更大。或者,也许您想调整驱动器上某个分区的大小以使其更小,并在未占用的空间中创建一个新分区。尽管您可能认为您需要第三方工具来完成这些任务,但好消息是您不需要任何工具。Windows已经拥有您需要的一切。以下是在Windows(Windows)中调整分区大小的两种方法,仅使用内置工具:
注意:(NOTE:)此过程在所有现代版本的 Windows 中都适用:Windows 10、Windows 8.1 和Windows 7。
1. 如何在Windows中调整分区大小,使用磁盘管理(Disk Management)
您必须做的第一件事是打开磁盘管理(Disk Management)工具。如果您不知道,本指南将为您提供帮助:在Windows(所有版本)中打开磁盘管理工具的 9 种方法。(Disk Management tool)如果您赶时间并且也没有时间阅读,那么在所有最新版本的Windows中都可以使用的快速方法是使用搜索。在Windows 10中,在任务栏的搜索字段(search field)中输入单词“磁盘管理”("disk management"),在Windows 7中,在开始菜单的(Start Menu)搜索字段(search field)中键入它们,在Windows 8.1中,直接在开始屏幕上写入它们(Start Screen). 然后,在任何这些操作系统中,单击或点击(click or tap)“创建和格式化硬盘分区”。("Create and format hard disk partitions.")
在“磁盘管理(Disk Management)”窗口中,找到要调整大小的分区并右键单击或点击并按住它。请注意,您既可以在顶部区域的卷列表中执行此操作,也可以在底部的磁盘和分区的图形表示中执行此操作。
要调整您选择的分区大小,请在打开的上下文菜单中:
- 如果要增加分区大小(partition size),请单击或点击“扩展卷”("Extend Volume"),或
- 如果要缩小分区,请单击或点击“缩小卷” 。("Shrink Volume")
请注意,如果分区附近没有可用的未分配空间,则无法扩大它。在这种情况下,“扩展音量”("Extend Volume")选项显示为灰色。同样,如果要缩小的分区已满是数据,则不能将其缩小,因为没有剩余空间可以带走。在这种情况下,“缩小体积”("Shrink Volume")选项显示为灰色。
如果要使分区更大并且附近有可用空间,请单击/点击“扩展卷”("Extend Volume")选项后, “磁盘管理(Disk Management)”将打开“扩展卷向导”。("Extend Volume Wizard.")在其中,单击或点击Next。
接下来,您可以查看可以向分区添加多少空间。您可以添加的数量取决于分区附近有多少可用空间。默认情况下,向导会选择它可以使用的所有可用空间,您可以在Selected列表中看到这些可用空间。
如果您想为分区添加更少的空间,您可以在窗口底部的“选择以 MB 为单位的空间量”字段中指定它。("Select the amount of space in MB")做出决定后,单击或点击(click or tap)下一步(Next)继续。
最后,“扩展卷向导”("Extend Volume Wizard")会显示您所做设置的摘要。如果您对它们感到满意并想继续,请单击或点击“完成(Finish )”按钮。
向导关闭,您可以在“磁盘管理(Disk Management)”窗口中看到该分区已扩展。根据您的驱动器速度,此过程可能需要一秒钟或几分钟。
如果你想让分区比现在小怎么办?在这种情况下,在右键菜单中,您选择了“缩小体积”。("Shrink Volume.")该操作会触发一个名为“Shrink X:”的("Shrink X:")对话窗口(dialog window)的打开,其中X是该分区的字母。
在此对话框窗口(dialog window)的前两个字段中,磁盘管理(Disk Management)工具会告诉您当前分区的大小以及可以从中占用多少空间。该值显示在“可用收缩空间的大小(MB)”中("Size of available shrink space in MB,"),它是由Windows根据分区上的可用空间量和在该分区上找到的任何不可移动文件(unmovable files found on that partition)的位置来计算的。
唯一可编辑的字段称为“输入要缩小的空间量(以 MB 为单位)”("Enter the amount of space to shrink in MB,"),您必须在此处键入要从分区中占用的空间。您输入的值不能大于“可用收缩空间大小 (MB)”中指定的值。("Size of available shrink space in MB.")在第四个字段,即最后一个字段中,磁盘管理(Disk Management)会在您缩小分区后自动计算分区的大小。
下定决心并确定要从分区中占用的空间量后,单击或点击(click or tap)“收缩(Shrink )”按钮。
稍等(Wait)片刻,Windows会缩小分区。然后,您可以在磁盘管理(Disk Management)工具中看到它的新大小。
您从分区中获取的空间现在应该在它旁边可用,标记为未分配。如果需要,您可以使用此空间来创建新分区。
2. 如何在Windows中调整分区大小,使用PowerShell 或命令提示符(PowerShell or Command Prompt),以及DiskPart 工具(DiskPart tool)
如果您喜欢使用命令行(command line),您可能更喜欢使用命令提示符(Command Prompt)或PowerShell来调整分区大小。以管理员身份启动这两个应用程序中的任何一个,然后键入以下命令,然后按(Start)Enter:
-
diskpart - 该命令启动磁盘分区工具。
-
list volume - 列出Windows 计算机或设备(Windows computer or device)上存在的所有卷(分区) 。确定要调整大小的分区的卷号。(volume number)Volume ### 列中查找它。
-
select volume # - 将#替换为要调整大小的分区的实际数量。在下面的示例中,我们输入了“选择卷 3”("select volume 3"),因为我们想用字母 E 和卷号 3(volume number 3)调整分区的大小。
- 下一个命令根据您是否要使分区更大或更小而有所不同:
- 如果要扩展分区,请键入extend size=customsize。customsize值必须以 MB(兆字节)为单位输入。(customsize)
- 如果您想让它更小,请输入shrink desired=customsize。customsize值必须以 MB(兆字节)为单位指定。(customsize)
不幸的是,DiskPart工具比Disk Management更难使用。这是因为DiskPart不会告诉您可以从分区中添加或删除的可用空间量。您必须事先知道这一点,否则您可能需要进行一些反复试验(trial and error)。
调整分区大小后,您可以关闭命令提示符(Command Prompt )或PowerShell,具体取决于您使用的。如果您想了解有关diskpart命令行工具的更多信息,以及如何在Windows中使用它来管理分区和磁盘,请阅读本教程:命令提示符(Command Prompt)-您应该知道的6 个磁盘管理命令。(disk management)
您更喜欢哪种方法来调整分区大小?
现在您知道Windows拥有调整分区大小所需的一切,无需为此购买或尝试任何第三方工具。如果您在Windows 计算机(Windows computer)上缩小或扩展分区,这两种方法中您最喜欢哪一种?您喜欢带有图形界面的磁盘管理(Disk Management)工具,还是更喜欢极客的DiskPart命令行工具?您还有什么要补充或询问的吗?使用下面的评论部分让我们知道。
2 ways to resize a partition in Windows (all versions)
If you have some free space on one of your drives and the partitions on it are too ѕmall, yоu might want to resize them to make them larger. Or maybe you want to resize one of the partitions on your drive to make it smaller and create a new partition in the space left unoccupied. Although you might think that you need third-party tools to do these tasks, the good news is thаt you do not nеed anу. Windows already has еverything you need. Here are two ways to resize a partіtion in Windows, using only built-in tools:
NOTE: This procedure works the same in all modern versions of Windows: Windows 10, Windows 8.1 and Windows 7.
1. How to resize a partition in Windows, using Disk Management
The first thing you must do is to open the Disk Management tool. If you do not know, this guide will help you: 9 ways to open the Disk Management tool in Windows (all versions). If you are in a hurry and do not have the time to read that too, a fast method that works in all recent versions of Windows is to use the search. In Windows 10, enter the words "disk management" in the search field on the taskbar, in Windows 7 type them in the search field from the Start Menu, and in Windows 8.1 write them directly on the Start Screen. Then, in any of these operating systems, click or tap on "Create and format hard disk partitions."
In the Disk Management window, locate the partition that you want to resize and right-click or tap and hold on it. Note that you can do this both in the list of volumes from the top area or on the graphical representation of the disks and partitions from the bottom.
To resize the partition that you selected, in the contextual menu that opens:
- Click or tap on "Extend Volume" if you want to increase the partition size, or
- Click or tap on "Shrink Volume" if you want to make the partition smaller.
Note that, if there is no free unallocated space near the partition, then you cannot enlarge it. In this case, the "Extend Volume" option is greyed out. Similarly, if the partition you want to shrink is full of data, you cannot make it smaller as there is no space left on it to take away. In this case, the "Shrink Volume" option is greyed out.
If you want to make the partition bigger and there is free space near it to take, after you click/tap on the "Extend Volume" option, Disk Management opens the "Extend Volume Wizard." In it, click or tap Next.
Next, you can see how much space you can add to the partition. The amount you can add depends on how much free space is available near the partition. By default, the wizard selects all the free space it can use, which you can see in the Selected list.
If you want to add less space to the partition, you can specify it in the "Select the amount of space in MB" field, at the bottom of the window. Once you have made a decision, click or tap on Next to continue.
Finally, the "Extend Volume Wizard" shows a summary of the settings you made. If you are satisfied with them and want to continue, click or tap the Finish button.
The wizard closes, and you can see that the partition is extended, back in the Disk Management window. Depending on your drive's speed, this process could take a second or a few minutes.
What if you want to make the partition smaller than it currently is? In this case, in the right-click menu, you chose to "Shrink Volume." That action triggers the opening of a dialog window called "Shrink X:" where X is the letter of that partition.
In the first two fields from this dialog window, the Disk Management tool tells you the size of the partition right now and how much space you can take from it. This value is displayed in the "Size of available shrink space in MB," and it is calculated by Windows based on how much free space there is on the partition and the location of any unmovable files found on that partition.
The only field that is editable is called "Enter the amount of space to shrink in MB," and this is where you must type the space that you want to take from the partition. The value you enter cannot be larger than the one specified in the "Size of available shrink space in MB." In the fourth field, the last one, Disk Management automatically calculates the size of the partition after you shrink it.
Once you have made up your mind and decided the amount of space you want to take from the partition, click or tap on the Shrink button.
Wait for a few moments for the partition to be shrunk by Windows. Then, you can see its new size in the Disk Management tool.
The space you took from the partition should now be available next to it, marked as unallocated. If you want, you can use this space to create new partitions.
2. How to resize a partition in Windows, using PowerShell or Command Prompt, and the DiskPart tool
If you love using the command line, you might prefer the Command Prompt or the PowerShell to resize your partitions. Start any of these two apps as an administrator, and type the following commands, followed by Enter:
-
diskpart - the command starts the disk partitioning tool.
-
list volume - lists all the volumes (partitions) that exist on your Windows computer or device. Identify the volume number of the partition that you want to resize. Look for it in the Volume ### column.
-
select volume # - replace # with the actual number of the partition that you want to resize. In our example below, we typed "select volume 3" because we wanted to resize the partition with the letter E and the volume number 3.
- The next command differs depending on whether you want to make the partition larger or smaller:
- If you want to extend the partition, type extend size=customsize. The customsize value must be entered in MB (megabytes).
- If you want to make it smaller, type shrink desired=customsize. The customsize value must be specified in MB (megabytes).
Unfortunately, the DiskPart tool is trickier to use than the Disk Management. That is because DiskPart does not tell you the amount of available space that you can add or remove from a partition. You have to know that beforehand, or you might have to do some trial and error.
When you are done with resizing the partition, you can close the Command Prompt or PowerShell, depending on which you used. If you want to know more about the diskpart command-line tool, and how to use it in Windows to manage partitions and disks, read this tutorial: Command Prompt - 6 disk management commands you should know.
Which method do you prefer for resizing your partitions?
Now you know that Windows has everything you need for resizing your partitions, and there is no need to buy or try any third-party tools for that. If you shrink or extend partitions on your Windows computer, which of the two methods is your favorite? Do you like the Disk Management tool with its graphical interface, or do you prefer the geekier DiskPart command-line tool? Do you have anything else to add or ask? Use the comments section below to let us know.