AHD is a high-performance, low-level disk diagnostic and repair utility for Windows. Developed by amazingb01 (Adiru), it is designed to push HDD, SSD, and NVMe (M.2) drives to their functional limits by identifying and refreshing weak or failing storage sectors.
- Maximum Treatment Logic: Uses
FILE_FLAG_NO_BUFFERINGto bypass Windows OS caching, ensuring direct hardware communication with the disk controller. - Real-Time Speed Graph: Oscilloscope-style visualization showing current read speeds in MB/s.
- Interactive Block Map: A 4,000-block visual grid representing the disk surface. Click any block to see its exact byte offset and sector address.
- Automatic Sector Refresh:
- Yellow Blocks: Detects "slow" sectors (>150ms) and forces a rewrite to refresh the electrical charge (SSD) or magnetic alignment (HDD).
- Red Blocks: Detects read errors and triggers the disk's internal Remapping logic to swap failed sectors with healthy spares.
- Multi-Drive Support: Automatically detects physical drives, their models, and associated volume letters.
- Acoustic Feedback: Contextual beeps (high/low pitch) when issues are found and addressed.
AHD is written in C# and is compatible with the legacy .NET Framework 4.0 compiler found by default in all Windows 10/11 installations. No heavy IDE like Visual Studio is required.
- Save the source code as
AHD.cs. - Open Command Prompt (CMD) as Administrator.
- Run the following command:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:winexe /r:System.Management.dll /out:AHD.exe AHD.cs