/
/

How to Read Shrink Volume Logs in Event Viewer in Windows 10

How to Read Shrink Volume Logs in Event Viewer blog banner image

When you attempt to shrink a volume or partition, logs are created in the Event Viewer, which you can utilize later for debugging and troubleshooting if the operation fails. These records usually include diagnostic data that is very useful for IT management and power users. In this guide, we’ll go over how you can read shrink volume logs in Event Viewer.

Access the shrink volume logs in Event Viewer

To start, let’s recap how you can access the Event Viewer.

  1. Press Win + R, type eventvwr.msc, and click OK to open the Event Viewer.
  2. Expand Windows Logs and select Application.
  3. Click Filter Current Log… and input 258,259 in the <All Event IDs> field.
  4. Click OK to apply this filter.

The Application pane will now display events related to volume shrink operations.

Open Event Viewer (Win + R > eventvwr.msc), go to Application under Windows Logs, filter by Event IDs 258,259.

If you haven’t yet modified your storage volume, we have a guide on how to shrink a partition that can help you get started.

Read the content of Event Viewer logs

To analyze a log or event data, double-click on it to view additional information like:

  • The specific unmovable file is causing an error or limitation.
  • Diagnostic details such as the last cluster of the file and NTFS file flags.
  • Recommendations for further analysis using fsutil or volume querycluster.

These records, typically gathered from the “defrag” application, contain valuable insights about why a shrink operation may have failed or been limited.

Troubleshooting common issues with shrink volume logs

Now that you can view the relevant logs, here are some common issues that the records might indicate and possible troubleshooting steps.

Issue: Cannot shrink volume beyond a certain point

This issue is typically due to unmovable files such as pagefile.sys, hiberfil.sys, or

system restore points. Here are some instructions on how you can remove or disable these file types moving forward.

Disable page files (pagefile.sys)

Page files are created to help your PC use some disk space in place of RAM. It’s not recommended to disable page files unless you’re troubleshooting or in dire straits about your storage space.

On that note, here’s how you can disable it.

  1. Press Win + R, type sysdm.cpl, and tap OK to open System Properties.
  2. Navigate to Advanced → Performance → Settings to view Performance Options.
  3. In the Advanced tab, click Change… to open the Virtual Memory panel.
  4. Select No paging file and click OK to apply.

Open System Properties (Win + R > sysdm.cpl), go to Advanced > Performance Settings > Advanced > Change, select No paging file, and click OK.

Make sure that ☐ Automatically manage paging file size for all drivers is toggled off, so that No paging file will not be grayed out.

Watch our quick video tutorial on how to reduce or delete pagefile.sys, or check out the full guide to learn more about managing your page file.

Disable hibernation

Hibernation files are created to allow fast boot. But you can disable this feature using the Command Prompt:

  1. In Windows Search, select Command Prompt  Run as Administrator.
  2. Type powercfg.exe /hibernate off to disable and remove Hibernation in the power options.

Hibernation files will also be removed after running this command.

If you want to learn more about hibernation settings, check out our guide on specifying hibernation file type in Windows 10.

Delete system restore points

  1. Press Win + R, type sysdm.cpl, and tap OK to open System Properties.
  2. Under System Protection, select the drive you want to modify and click Configure.
  3. Press Delete under Disk Space Usage to delete restore points for the selected drive.

Having system restore points is almost second nature to any established tech stack. If you wish to learn how to make the most of this feature, take a look at our guide on how to enable or disable System Restore.

Issue: Event Viewer does not display shrink volume events

This issue indicates that the shrink operation may not have been logged because it didn’t proceed far enough, or if logging was previously disabled.

To diagnose this issue, ensure that the Virtual Disk Service and Defragment and Optimize

Drives services are running. You can then repeat the shrink operation to generate new logs.

Key learnings on interpreting shrink volume logs

Understanding how Event Viewer operates is essential for properly reading shrink volume logs—or any record. In this particular case, remember that shrink operations are recorded under Event IDs 258 and 259, which you can filter for efficiency.

With that in mind, shrinking the partition or volume typically has more value for power users and IT personnel. Particularly those who may need to reallocate space for better disk utilization, assign a dedicated volume for a virtual machine (VM), or create new partitions for dual-boot setups.

You might also like

Ready to simplify the hardest parts of IT?
×

See NinjaOne in action!

By submitting this form, I accept NinjaOne's privacy policy.

NinjaOne Terms & Conditions

By clicking the “I Accept” button below, you indicate your acceptance of the following legal terms as well as our Terms of Use:

  • Ownership Rights: NinjaOne owns and will continue to own all right, title, and interest in and to the script (including the copyright). NinjaOne is giving you a limited license to use the script in accordance with these legal terms.
  • Use Limitation: You may only use the script for your legitimate personal or internal business purposes, and you may not share the script with another party.
  • Republication Prohibition: Under no circumstances are you permitted to re-publish the script in any script library belonging to or under the control of any other software provider.
  • Warranty Disclaimer: The script is provided “as is” and “as available”, without warranty of any kind. NinjaOne makes no promise or guarantee that the script will be free from defects or that it will meet your specific needs or expectations.
  • Assumption of Risk: Your use of the script is at your own risk. You acknowledge that there are certain inherent risks in using the script, and you understand and assume each of those risks.
  • Waiver and Release: You will not hold NinjaOne responsible for any adverse or unintended consequences resulting from your use of the script, and you waive any legal or equitable rights or remedies you may have against NinjaOne relating to your use of the script.
  • EULA: If you are a NinjaOne customer, your use of the script is subject to the End User License Agreement applicable to you (EULA).