How to fix ERROR_FILE_LEVEL_TRIM_NOT_SUPPORTED
Code:326 (0x146)
Description
Device does not support file-level TRIM.
Causes
This error occurs when an attempt is made to perform a file-level TRIM operation on a storage device that does not support this feature:
- Storage device does not support TRIM operations.
- File system does not support TRIM at the file level.
- Older SSD firmware lacking TRIM support.
- TRIM disabled in device or system settings.
- Virtual or network storage not supporting TRIM.
- RAID configurations that don't support TRIM pass-through.
Solutions
Verify Device Support
Check if the storage device supports TRIM operations:
- Use disk management utilities to verify TRIM support.
- Check the device manufacturer's specifications.
- Use command-line tools to query TRIM support (
fsutil behavior query DisableDeleteNotify).
Update Device Firmware and Drivers
Ensure the storage device has the latest firmware and drivers:
- Check the manufacturer's website for firmware updates.
- Download and install the latest storage device drivers.
- Update the SSD firmware following manufacturer instructions.
- Restart the system after updates.
Enable TRIM Support
Verify that TRIM is enabled on the system:
- Check Windows TRIM settings using
fsutil behavior query DisableDeleteNotify. - A return value of
0means TRIM is enabled. - Enable TRIM if disabled using
fsutil behavior set DisableDeleteNotify 0. - Run as administrator when executing these commands.
Check File System Compatibility
Ensure the file system supports TRIM operations:
- NTFS and ReFS support TRIM on supported devices.
- Older file systems may not support file-level TRIM.
- Consider reformatting with a modern file system if necessary.
Use Alternative Optimization Methods
If TRIM is not supported, use alternative methods:
- Use disk optimization tools that work without TRIM.
- Manually optimize the drive using Windows Disk Optimizer.
- Consider using manufacturer-specific optimization utilities.
Avoid File-Level TRIM Operations
Modify application logic to handle devices without TRIM support:
- Detect TRIM support before attempting operations.
- Skip TRIM operations gracefully when not supported.
- Use alternative methods for space reclamation.
Review RAID Configuration
For RAID arrays, verify TRIM support:
- Check if the RAID controller supports TRIM pass-through.
- Update RAID controller firmware and drivers.
- Consider RAID configurations that support TRIM (e.g., RAID 0).