Windows提供了磁盘优化工具,可以帮助您提高系统性能。事实上,其中很多都是自动化的,也可以安排。也就是说,当您打开磁盘碎片整理程序或优化驱动器工具并注意到优化不可用(Optimization is not available)或它显示Never Run in Windows 10时,您可以执行以下操作。
优化(Optimize)驱动器显示从不运行(Never Run)或优化(Optimization)不可用
当您注意到上次分析和当前状态时,您应该看到上次分析或运行(Last analyzed on or run)可能显示“从不运行(Never run)”,当前状态(Current status) 可能显示“优化不可用(Optimization not available)”。除此之外,如果您注意到带有状态的驱动程序的媒体类型,它可能会显示Unknown。这也可能是优化不可用的原因,特别是如果驱动器(Drive)已加密。但是,我们在论坛中看到使用SSD(SSDs)和未加密驱动器的用户也面临同样问题的报告。
Windows 10 v2004 的用户已经注意到了这个问题,预计微软很快就会解决这个问题。(Microsoft)同时,您可以尝试以下一些方法来解决此问题:
- 点击优化按钮
- 从命令行进行碎片整理
- 第三部分碎片整理工具
- 从注册表(Registry)中删除碎片整理的统计键(Stats Keys)
- 在安全模式下(Safe Mode)删除IDE ATA/ATAPI控制器驱动程序
在我们继续之前,如果按钮可用,您可以尝试运行它,但它很可能不起作用。一些用户还报告说,重新启动完成后状态会更改回优化(Optimization)不可用。
1]点击优化按钮
首先是非常基础的。单击(Click)“优化(Optimize)”按钮以手动运行碎片整理并查看是否使消息消失。
2]从命令行进行碎片整理
按(Press)开始菜单(Start Menu),然后键入 cmd。当命令提示符(Command Prompt)出现时,右键单击它,然后从上下文菜单中单击以管理员身份(Administrator)运行。(Run)使用 /A 开关执行(Execute)碎片整理命令以对特定卷执行分析
defrag c: /a
根据分析,如果结果建议进行碎片整理,那么您可以使用HDD的 /U /V 开关和(HDDs)SSD的 /L /O 开关运行碎片整理命令。后者将在操作完成后运行 trim 命令。您还可以使用 /X 开关来整合您指定的卷上的可用磁盘空间
defrag c: /U /V
如果您可以从命令行运行碎片整理工具,但不能从用户界面运行,那么这可能是一个导致其不可用的错误。累积更新可能会修复它,但在那之前,您可以使用命令行选项。运行命令后,您应该会在该过程完成后看到更改。
3]第三方碎片整理工具
您可以使用UltraDefrag、MyDefrag、Piriform Defraggler、Auslogics Disk Defrag、Puran Defrag Free等第三方碎片整理工具(third-party defragment tools)对驱动器进行分析和碎片整理。如果它是SSD ,如果您应该对其(SSD)执行任何类型的性能分析, 请务必阅读指南。在Optimize Drive Tool显示Never Run或您无法运行它之前,请使用它们。
4]从注册表(Registry)中删除碎片整理的统计键(Stats Keys)
如果您在操作系统升级或驱动程序升级后遇到问题,您可以使用此提示。它将强制操作系统使用新信息重新创建密钥。确保(Make)在我们即将编辑注册表时创建系统还原点。
在运行(Run)提示中键入Regedit ( Win +R ),然后按Enter 键打开注册表编辑器( Enter key to open Registry editor)
导航 t:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\Statistics
删除统计下的所有子项(Statistics)
重新启动(Reboot)您的 PC 并打开Windows碎片整理工具。您现在应该启用了优化按钮。(Optimize)
正如您在上面的屏幕截图中看到的,我在 PC 上拥有的每个驱动器都在此处列出。
细节包括LastRunTime、MovableFiles、MFTSize和其他细节,这些细节对于碎片整理至关重要。当您删除密钥时,Windows会重新创建所有这些作为新的开始,这应该使优化选项可用。
4]在安全模式下(Safe Mode)删除(Remove)IDE ATA/ATAPI控制器驱动程序
众所周知,驱动程序会导致各种错误配置,这可能是媒体类型显示为Unknown的原因。为了解决这个问题,我们必须移除控制器并重新启动。
通过按 Shift启动进入安全模式(Safe Mode),然后单击菜单中的重新启动(Restart)选项。它将重新启动计算机进入 高级启动(Advanced Startup) 选项(Options)。从选项中选择安全模式。(Select Safe)
进入安全模式(Safe Mode)后,使用WIN + X打开设备管理器(Device Manager),然后按 M 键。展开IDE ATA/ATAPI控制器。右键单击每个列表,然后卸载设备。重新启动计算机,Windows将自动安装驱动程序。
现在,如果您尝试,优化按钮应该可用。
您是否应该从碎片整理计划中删除SSD(SSDs)?
该问题还可能导致另一个问题。由于它总是忘记驱动器何时优化,它会在SSD驱动器上重复修剪和碎片整理,这并不好。从自动维护功能中取消选中驱动器将是一个绝妙的主意。
- 在“开始(Start)”菜单中,键入碎片整理,然后在出现“优化驱动器(Optimize Drives)”工具时单击它。
- 单击(Click)更改设置(Change Settings)按钮,然后单击驱动器(Drive)旁边的选择(Choose)按钮。
- 从列表中取消选中所有SSD驱动器。如果有一个隐藏分区是SSD驱动器的一部分,也请取消选中它。
- 保存(Save),SSD驱动器将不再优化。
事实上,如果您启用了Trim 功能并使用OEM(OEMs)软件对其进行管理,则根本不需要优化 SSD 驱动器。
我希望这篇文章很容易理解,即使优化按钮在(Optimization)Windows 10中不可用,您也能够优化驱动器(Drive)
Optimize Drives Tool shows Never Run or Optimization not available
Windows offers disk optimizatіon tools that can help you speed up system performance. In fact, a lot of thіs is aυtomated аnd can be scheduled as well. That said when you open the Disk Defragmеnter or Optіmize Drives tool and notice that Optimization is not available or it shows Never Run in Windows 10, here’s what you can do about it.
Optimize Drives shows Never Run or Optimization not available
When you notice the last analyzed and current status, you should see Last analyzed on or run may show “Never run” and Current status may show “Optimization not available.” Along with this, if you notice the media type of the driver carrying the status, it could display Unknown. This could also be the reason why Optimization is not available, notably if the Drive is encrypted. However, we are seeing reports in forums where users with SSDs and drives with no encryption are also facing the same problem.
Users of Windows 10 v2004 have been noticing this issue, and Microsoft is expected to fix this soon. Meanwhile, here are a few things you could try to fix this problem:
- Click on the Optimize button
- Defrag from Command Line
- Third Part Defragger Tool
- Delete Defrags’s Stats Keys from Registry
- Remove the IDE ATA/ATAPI controllers driver in Safe Mode
Before we go ahead, if the button is available, you may try to run it, but chances are it will not work. Some users have also reported that the status changes back to Optimization not available after a restart is complete.
1] Click on the Optimize button
First the very basic. Click on the Optimize button to run the defragmentation manually and see if makes the message go away.
2] Defrag from Command Line
Press the Start Menu, and type cmd. When the Command Prompt appears, right-click on it, and click on Run as Administrator from the context menu. Execute defrag command with /A switch to perform analysis for the specific volume
defrag c: /a
Depending on the analysis, if the result suggests defragmenting, then you can run the defrag command with /U /V switch for HDDs and /L /O switch for SSD. The later will run the trim command after the operation completes. You can also use the /X switch to consolidate free disk space on the volumes you specify
defrag c: /U /V
If you can run the defragment tools from the command line, but not the user interface, then it could be a bug that is making it unavailable. A cumulative update will likely fix it, but until then, you can use use the command line option. Once you run the commands, you should see the changes once the process is complete.
3] Third-party Defragger Tool
You can use third-party defragment tools like UltraDefrag, MyDefrag, Piriform Defraggler, Auslogics Disk Defrag, Puran Defrag Free, and more to perform analysis and defragmentation of the drives. If its an SSD, make sure to read out the guide if you should be performing any sort of performance analysis on it. Until the Optimize Drive Tool shows Never Run or you cannot run it, use these.
4] Delete Defrags’s Stats Keys from Registry
You can use this tip if you have the problem after an OS upgrade or driver upgrade. It will force the OS to recreate the keys with new information. Make sure to create a system restore point as we are about to edit the registry.
Type Regedit in the Run prompt (Win +R) and press the Enter key to open Registry editor
Navigate t:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Dfrg\Statistics
Delete all subkeys under Statistics
Reboot your PC and open the Windows defragment tool. You should now have the Optimize button enabled.
As you can see in the above screenshot image, each of the drives I have on the PC is listed here.
The details include LastRunTime, MovableFiles, MFTSize, and other details, which are crucial when it comes to defragmentation. When you delete the keys, Windows creates all this again as a fresh start, and that should make the optimization option available.
4] Remove the IDE ATA/ATAPI controllers driver in Safe Mode
Drivers are known to cause all sorts of misconfiguration, and it could be the reason when a media type is displayed as Unknown. To resolve this, we will have to remove the controllers and reboot.
Boot into Safe Mode by pressing the Shift and then click on Restart option in the menu. It will reboot the computer into Advanced Startup Options. Select Safe mode from the option.
Once in the Safe Mode, open Device Manager using WIN + X, followed by the M key. Expand the IDE ATA/ATAPI controllers. Right-click on each of the listings, and uninstall the device. Reboot the computer, and Windows will automatically install the drivers.
Now, if you try, the optimize button should be available.
Should you remove SSDs from the defragmentation schedule?
The issue can also cause one more problem. Since it keeps forgetting when was the drives optimized, it will repeat the trimming and defrag on SSD drives, which is not good. It would be an excellent idea to uncheck the drives from the Automatic Maintenance feature.
- In the Start menu, type defragment, and then click on the Optimize Drives tool when it appears.
- Click on Change Settings button and then click on the Choose button next to Drive.
- Uncheck all SSD drives from the list. If there is a hidden partition that is a part fo SSD drive, uncheck that too.
- Save, and the SSD drives will not be optimized anymore.
In fact, you don’t need to optimize the SSD drive at all if you have enabled the Trim feature and using OEMs software to manage it.
I hope the post was easy to follow, and you were able to optimize the Drive even though the Optimization button was not available in Windows 10