Why This Error Happens
Error 488 occurs when you attempt to delete, shrink, or format a partition (typically via diskpart or Disk Management) that still hosts critical system files such as pagefile.sys (virtual memory), hiberfil.sys (hibernation data), or a memory crash dump file. Windows locks these files at the OS level to prevent data loss or system instability, so any disk operation targeting that volume is blocked until the files are relocated or disabled. This is not disk corruption — it’s a protective restriction enforced by the Windows Volume Manager.
Step-by-Step Resolution Guide
- Disable the Paging File on that volume
- Go to Settings > System > About > Advanced system settings > Advanced tab > Performance Settings > Advanced tab > Virtual Memory > Change.
- Uncheck “Automatically manage paging file size for all drives”.
- Select the target drive, choose No paging file, click Set, then OK, and restart your PC.
- Disable Hibernation (removes hiberfil.sys)
- Open Command Prompt as Administrator.
- Run:
powercfg /hibernate off - This immediately deletes
hiberfil.sysfrom the volume.
- Disable Crash Dump / Memory Dump Settings
- Go to Advanced system settings > Advanced tab > Startup and Recovery > Settings.
- Under “Write debugging information,” set it to (none).
- Click OK and restart.
- Retry the Disk Operation
- Reopen
diskpart, select the disk/volume (select volume X), and re-run your intended command (e.g.,delete volumeorshrink). - If using Disk Management GUI, retry the shrink/delete action after reboot.
- If Files Persist, Boot from Windows Installation Media
- Boot into Windows Recovery Environment (WinRE) or a bootable USB.
- Open Command Prompt from the recovery menu and run
diskpart— since the OS isn’t fully loaded, the volume won’t lock these system files, allowing the operation to complete.
Alternative or Verification Steps
- Verify: After reboot, check the target drive in File Explorer (with hidden system files visible) to confirm
pagefile.sysandhiberfil.sysare no longer present, then retry the disk command. - Alternative: If you can’t disable these features (e.g., policy-restricted), use a bootable Windows PE/USB recovery drive to perform the disk operation entirely outside the live OS environment.