在Windows 11(Windows 11)、Windows 10、Windows 8、Windows 7和Windows Vista中,您无需使用第 3 方分区管理器软件(Partition Manager Software)即可实现分区大小调整。该操作系统包含一个非常有用的磁盘管理工具(Disk Management Tool),可让您调整分区大小等。在这篇文章中,我们将看到如何使用内置的磁盘管理工具在(Disk Management Tool)Windows中调整分区大小。
要使用磁盘管理工具(Disk Management Tool),只需按照以下步骤操作。Click Start > Right Click计算机Computer > Select Manage。
在左窗格中的存储(Storage)类别下,单击磁盘管理(Disk Management)。现在选择并右键单击要修改的分区。在上下文菜单中,您将看到扩展、收缩(Shrink)或删除(Delete)分区的选项。选择您想要的选项。
您不能(cannot merge partitions)使用此实用程序在Windows中合并分区。(Windows)如果您的第二个分区是空的,您可以删除第二个分区,然后扩展第一个分区,以使用释放的空间。另外请注意,您只能向右延伸;如果您希望将分区向左扩展,则可能必须使用 3rd 方工具。您可以在此处阅读有关磁盘管理工具(Disk Management Tool)(Disk Management Tool)的更多信息。
有时,一个或多个选项可能会显示为灰色,因此不可用。如果发生这种情况,这可能意味着这样的步骤在物理上可能是不可能的。
即使磁盘管理(Disk Management)失败,您也可以使用Windows 10中(Windows 10)磁盘管理(Disk Management)的DISKPART和FSUTIL命令行工具调整分区(Partition)大小。
即使磁盘管理(Disk Management)失败也调整分区大小
磁盘管理(Disk Management)工具可能无法成功完成操作。但是,如果您想继续,请先备份您的重要数据,以防出现任何问题。您可能必须使用 diskpart.exe。
Diskpart 实用程序
Diskpart 实用程序(Diskpart utility )可以做磁盘管理(Disk Management)控制台可以做的所有事情,甚至更多! 对于编剧或任何喜欢在命令提示符下工作的人来说,它是无价的。
除其他几件事外,您还可以使用Diskpart执行以下操作:
- 将基本磁盘转换为动态磁盘
- 将动态磁盘转换为基本磁盘。
- 在显式磁盘偏移处创建分区。
- 删除丢失的动态磁盘。
在开始(Start) 搜索栏中输入diskpart并按(diskpart)Enter。将打开一个类似“命令提示符”的窗口。键入list disk并按Enter。这将向您显示所有硬盘的列表。现在键入select disk <disk number>以选择要使用的磁盘。
如果要创建分区。键入(Type)“ create ”,将出现一组选项。选择一个(Choose one),然后输入create <new option>。
您可以创建两种类型的分区:主分区和扩展(Primary and Extended)分区。只有主分区可以引导,因此如果您打算安装操作系统,则必须选择此选项。出于备份目的,您可以选择扩展分区。
现在,要查看与您计划使用的卷相关联的数字,请键入:list volume 。
你会得到一份清单。要选择一种类型:select volume <number>(或根据情况select partition <number>)。
根据您要对分区执行的操作,您可以选择以下任何命令。键入帮助(help)并按Enter会枚举选项。
例子 :
要将大小扩展 5GB,请键入Extend size=5000要将卷缩小至少 1GB,最大 5 GB,请键入Shrink desired=5000 minimum=1000您甚至可以通过键入Delete Partition并按 Enter来删除分区.
Fsutil 实用程序
Windows 还包括一个用于文件、系统和磁盘管理的附加命令行工具,称为Fsutil。此实用程序可帮助您更改文件的短名称、按SID(安全标识符)查找文件并执行其他复杂任务。
FSUtil和Diskpart功能强大,但不适合没有经验的Windows用户。所以请务必小心。
磁盘上没有足够的可用空间来完成此操作
如果您收到消息 -磁盘上没有足够的可用空间来完成此操作,您会怎么做?
大多数预装了OEM Windows的新计算机都带有 4 个分区。(OEM Windows)配置为基本盘的硬盘限制为 4 个主分区或 3 个主分区和 1 个扩展分区和多个逻辑驱动器。(Hard)因此,如果您尝试缩小 OS 分区,您可能会发现由于此限制,您无法创建第 5 个分区。
此问题可能有两种可能的解决方案:(There could be two possible solutions for this issue:)
- 由于OEM(OEM)预配置的磁盘可能与Windows中的磁盘管理工具有冲突,您应该尝试使用一些 3rd 方工具重新分区磁盘。
- 您可以尝试删除已经创建的不太重要的分区并合并空间以创建具有正确驱动器号的新分区。
由于OEM(OEMs)配置分区的方式,通常无法删除OEM创建的分区。(OEM)因此,选择将操作系统分区扩展回原始大小以重新使用未分配的空间。如果需要额外的存储空间,请考虑添加外部USB硬盘。
DISKPART and FSUTIL command line tools for Disk Management
You don’t need to have 3rd Party Partition Manager Software to achieve resize partitions in Windows 11, Windows 10, Windows 8, Windows 7 & Windows Vista. The operating system includes a very useful Disk Management Tool that lets you resize partitions and more. In this post we will see how to resize a partition in Windows, using the built-in Disk Management Tool.
To use the Disk Management Tool, simply follow these steps. Click Start > Right Click on Computer > Select Manage.
In the left pane, under Storage category, click on Disk Management. Now select and right-click on the partition you wish to modify. In the context menu, you will see options to Extend, Shrink, or Delete the partition. Select the option you want.
You cannot merge partitions in Windows with this utility. If your 2nd partition is empty, you can delete the 2nd partition and then extend the 1st partition, to use the freed-up space. Also, note that you can extend only to the right; if you are desirous of extending the partition to the left, you may have to use a 3rd party tool. You can read more here about the Disk Management Tool.
Sometimes one or more options may be grayed out and thus unavailable. If this happens, it could mean that such a step may not be physically possible.
You can resize a Partition even if Disk Management fails using DISKPART and FSUTIL command-line tools for Disk Management in Windows 10.
Resize a Partition in even if Disk Management fails
It may happen that the Disk Management tool may fail to complete an operation successfully. Should you wish to continue, nevertheless, please first backup your important data should anything go wrong. You may have to use diskpart.exe.
Diskpart Utility
The Diskpart utility can do everything that the Disk Management console can do, and more! It’s invaluable for scriptwriters or anyone who simply prefers working at a command prompt.
Among several other things, you can use Diskpart to do the following:
- Convert a basic disk to a dynamic disk
- Convert a dynamic disk to a basic disk.
- Create a partition at an explicit disk offset.
- Delete missing dynamic disks.
Enter diskpart in the Start search bar and hit Enter. A ‘command prompt’ like window will open. Type list disk and hit Enter. This will show you a list of all your hard disks. Now type select disk <disk number> to select the disk you want to work with.
If you want to create a partition. Type ‘create‘ and a set of options will appear. Choose one, and type create <new option>.
There are two types of partitions you can create: Primary and Extended. Only a Primary partition can be made bootable, so if you are planning to install an OS, you will have to select this option. For backup purposes, you may opt for Extended partitions.
Now, to see which number is associated with the volume you are planning to work with, type: list volume.
You will get a list. To select one type: select volume <number> (or select partition <number> as the case may be).
Depending on what you want to do to the partition you can select any of the following commands. Typing help and hitting Enter enumerates the options.
Example :
To extend size by 5GB, type Extend size=5000 To shrink the volume by minimum 1GB, up to a maximum of 5 GB, type, Shrink desired=5000 minimum=1000 You can even delete a partition by typing, Delete Partition and hitting Enter.
Fsutil Utility
Windows also includes an additional command-line tool for file, system, and disk management, called Fsutil. This utility helps you to change the short name of a file, find files by SID’s (Security Identifier) and perform other complex tasks.
FSUtil and Diskpart are powerful, but not for inexperienced Windows user. So do be careful, please.
There is not enough space available on the disk(s) to complete this operation
What do you do if you get the message – There is not enough space available on the disk(s) to complete this operation?
Most new computers with OEM Windows pre-installs come with 4 partitions. Hard disks configured as basic disks are limited to 4 primary partitions or 3 primary partitions and 1 extended partition and multiple logical drives. And as such, if you try to shrink the OS partition, you may find that you cannot create a 5th partition due to this limit.
There could be two possible solutions for this issue:
- As the disk pre-configured by OEM may have conflicts with the disk management tool in Windows, you should try some 3rd party tool to re-partition the disk.
- You may try to delete a less important partition created already and merge the space to create a new partition with a proper drive letter.
Deleting the partitions created by the OEM is often not possible due to the way the OEMs configure the partitions. Therefore the option then is to extend the operating system partition back to the original size to regain use of the unallocated space. If additional storage is needed, consider adding an external USB hard disk.