缩小镜像体积_如何解决Windows的“缩小体积”不足问题

缩小镜像体积_如何解决Windows的“缩小体积”不足问题

缩小镜像体积

The Shrink Volume feature in Windows Vista and above has some serious limitations, which we’ll try and explain and then suggest a few workarounds that might help you out. Be careful when following these steps, because they could leave your system unable to boot… advanced geek level required.

Windows Vista及更高版本中的“ 收缩音量”功能存在一些严重的局限性,我们将尝试解释这些局限性,然后提出一些可能对您有所帮助的变通办法。 执行这些步骤时请小心,因为它们可能会使您的系统无法启动……需要高级怪胎级别。

I would also suggest that if you are trying to configure a dual-boot system, your best bet is to backup all your data, and setup a fresh new dual boot system, remembering to install the oldest OS first. (XP before Vista, and Linux last)

我还建议,如果要配置双启动系统,最好的选择是备份所有数据,并设置一个新的双启动系统,并记住首先安装最旧的操作系统。 (XP在Vista之前,而Linux在最后)

Problem Explanation

问题说明

The main problem that we encounter with the shrink volume feature is that you can’t shrink the volume even when there is clearly free space.

我们使用缩小体积功能时遇到的主要问题是,即使明显有可用空间,也无法缩小体积。

缩小镜像体积_如何解决Windows的“缩小体积”不足问题

You are unable to shrink the volume at all, since according to Windows you have no free space to shrink:

您根本无法缩小音量,因为根据Windows,您没有可用空间来缩小:

缩小镜像体积_如何解决Windows的“缩小体积”不足问题

The reason why Windows won’t let you shrink the volume is because there are immovable system files at the very end of the volume, as this screenshot from Auslogics defragment utility shows us. In this case, the immovable file is actually the MFT, or Master File Table for the volume.

Windows不允许您缩小卷的原因是,卷的末尾有不可移动的系统文件,如Auslogics碎片整理实用程序中的此屏幕截图所示。 在这种情况下,不可移动文件实际上是该卷的MFT或“主文件表”。

缩小镜像体积_如何解决Windows的“缩小体积”不足问题

Making Shrink Volume Work

使收缩体积起作用

To absolutely ensure that you can shrink the volume, you should disable as many of the system files as you can, at least temporarily. Here’s the list of steps:

为了绝对确保可以缩小音量,应至少暂时禁用尽可能多的系统文件。 以下是步骤列表:

  1. Run the Disk Cleanup Wizard, making sure to remove the hibernation file and all restore points.

    运行磁盘清理向导,确保删除Hibernate文件和所有还原点。
  2. Disable System Restore

    禁用系统还原

  3. Disable the pagefile ( Open up System in Control Panel, then Advanced System Settings \ Advanced \ Performance \ Advanced \ Change \ No Paging File.

    禁用页面文件(在“控制面板”中打开系统,然后选择“高级系统设置” \“高级” \“性能” \“高级” \“更改” \“无分页文件”。
  4. In the same Advanced Settings, go to Startup and Recovery \ Settings and then change the Write debugging information drop-down to “None” to disable the kernel memory dump.

    在相同的“高级设置”中,转到“启动和恢复\设置”,然后将“写入调试信息”下拉列表更改为“无”以禁用内核内存转储。
  5. Disable Hibernation mode in your power options \ advanced power options screen.

    在电源选项\高级电源选项屏幕中禁用Hibernate模式。
  6. Reboot the machine, and then delete your c:\pagefile.sys file, following these instructions if you are having issues.

    重新启动计算机,然后在遇到问题时按照以下说明删除c:\ pagefile.sys文件。

Now that we’ve deleted almost every system file that we can, you should run at least one of these free defrag utilities, but preferably all of them, in order to move all of the files to the beginning of the volume, so we can force the Shrink volume feature to work.

现在我们已经删除了几乎所有可以删除的系统文件,您应该至少运行这些免费的碎片整理实用程序之一,但是最好运行所有这些实用程序,以便将所有文件移动到卷的开头,因此我们可以强制“缩小音量”功能起作用。

  1. Power Defragmenter(GUI interface for sysinternals contig)

    电源碎片整理程序 (用于sysinternals contig的GUI界面)

  2. Auslogics Disk Defrag

    Auslogics磁盘碎片整理

If you are encountering the MFT problem, then you won’t have too much luck even after running those utilities. What you’ll need to do is use one of the non-free defrag utilities that is able to move the MFT files. If somebody can suggest a free way to move the MFT, leave a note in the comments.

如果您遇到MFT问题,那么即使运行这些实用程序,也不会有太大的运气。 您需要做的是使用一种能够移动MFT文件的非免费碎片整理实用程序。 如果有人可以建议一种自由的方式移动MFT,请在注释中留**释。

  1. You can download a 30-day free trial of Perfect Disk and then uninstall it when you are done. Or not.

    您可以下载Perfect Disk的30天免费试用版,然后在完成后将其卸载。 或不。

At this point you should be able to shrink the partition, at least a decent amount. Once you’ve gotten the partition shrunk, you should re-enable those important files:

在这一点上,您应该能够缩小分区,至少要缩小一个数量。 分区缩小后,应重新启用这些重要文件:

  1. Re-enable the Pagefile (Reverse instructions above)

    重新启用Pagefile(上面的相反说明)
  2. If you have issues re-enabling hibernate, follow these steps.

    如果您在重新启用Hibernate方面遇到问题,请按照以下步骤操作

  3. Enabling System Restore or kernel debugging information is entirely up to you.

    启用系统还原或内核调试信息完全取决于您。
  4. Reboot.

    重启。

Again, your best bet for dual-boot is backup, wipe, and reload, but these steps did work for me during testing.

同样,双重引导的最佳选择是备份,擦除和重新加载,但是这些步骤在测试期间确实对我有用。

Using Linux to Resize

使用Linux调整大小

You can also use the gparted live cd to resize your partitions. The problem with this is that it will definitely cause your system to not boot anymore unless you follow some very specific steps, because Vista can’t handle it.

您也可以使用gparted live cd调整分区大小。 这样做的问题是,除非您按照某些非常具体的步骤进行操作 ,否则它肯定会导致系统不再启动,因为Vista无法处理它。

Using Commercial Utilities

使用商业工具

There are a number of commercial software utilities that can handle this type of thing for you, like Partition Magic. We prefer free software here whenever possible.

有许多商业软件实用程序可以为您处理这种事情,例如Partition Magic。 我们尽可能在这里选择免费软件。

In summary, If you are lucky enough for Shrink Volume to work for you, great. If not, I’d recommend backing up, wiping, and installing fresh.

总而言之,如果您很幸运有收缩体积为您服务,那就太好了。 如果没有,我建议备份,擦除并重新安装。

翻译自: https://www.howtogeek.com/howto/windows-vista/working-around-windows-vistas-shrink-volume-inadequacy-problems/

缩小镜像体积