DiskInfoToolkit 2.2.0
dotnet add package DiskInfoToolkit --version 2.2.0
NuGet\Install-Package DiskInfoToolkit -Version 2.2.0
paket add DiskInfoToolkit --version 2.2.0
#r "nuget: DiskInfoToolkit, 2.2.0"
#:package DiskInfoToolkit@2.2.0
#addin nuget:?package=DiskInfoToolkit&version=2.2.0
#tool nuget:?package=DiskInfoToolkit&version=2.2.0
DiskInfoToolkit
A toolkit for Storage Device informations. Primarily used for reading S.M.A.R.T. data from storage devices.
Preview of DiskInfoViewer
Please click on an image to show its full size.
Note that the screenshots may not always represent the latest version of the app.
Project overview
| Project | .NET Version[s] |
|---|---|
| DiskInfoToolkit This library reads detailed information from various types of storage devices - including NVMe, SSD, HDD and USB drives. It provides a high level API to read device data, SMART attributes, Partitions and other hardware details directly from the system. |
.NET Framework 4.7.2 & 4.8.1 .NET Standard 2.0 .NET 8, 9 and 10 |
| ConsoleOutputTest Example Application to show how some library functionality can be used. |
.NET 8 |
| DiskInfoViewer Visualization of detected storage devices on your system. This supports adding / removing storage devices and updates data. UI is built using Avalonia UI. |
.NET 8 |
What platforms are supported ?
We currently support Windows and Linux.
There is currently no plan to support Mac / Apple Computers.
Where can I download it ?
You can download the latest release from here.
How can I help improve the project ?
Feel free to give feedback and contribute to our project !
Pull requests are welcome. Please include as much information as possible.
Developer information
Integrate the library in your own application
Sample code
using DiskInfoToolkit.Monitoring;
static class Program
{
static void Main(string[] args)
{
//You can enable logging and set level, if you need logging output
Logger.Instance.IsEnabled = true;
Logger.Instance.LogLevel = LogLevel.Trace;
//Get all storage devices
var disks = Storage.GetDisks();
//Go through all devices
foreach (var disk in disks)
{
//Output Model of storage device
Console.WriteLine($"Detected storage device '{disk.ProductName}' ('{disk.DisplayName}').");
}
//Register change event
Storage.DevicesChanged += DevicesChanged;
var secondsToWait = 10;
//Wait for specified amount of time and listen to device changes
Console.WriteLine($"Waiting {secondsToWait} seconds for device changes.");
Thread.Sleep(TimeSpan.FromSeconds(secondsToWait));
//Update devices once
foreach (var disk in Storage.CurrentDisks)
{
//Refresh device data and output if there were changes compared to cached data
if (Storage.Refresh(disk))
{
Console.WriteLine($"Refreshed - changes detected: '{disk.ProductName}' ('{disk.DisplayName}')");
}
else
{
Console.WriteLine($"Refreshed - no changes detected: '{disk.ProductName}' ('{disk.DisplayName}')");
}
}
//Unregister change event
Storage.DevicesChanged -= DevicesChanged;
//Save log file to current directory, if you enabled logging output
Logger.Instance.SaveToFile("Log.txt", false);
//All done
Console.WriteLine("Press enter to exit...");
Console.ReadLine();
}
static void DevicesChanged(object sender, StorageDevicesChangedEventArgs e)
{
//Check if there are changes, if not we can ignore this event
if (!e.HasChanges)
{
return;
}
//Simple output of added devices
if (e.Added != null)
{
foreach (var added in e.Added)
{
Console.WriteLine($"Added: '{added.ProductName}' ('{added.DisplayName}')");
}
}
//Simple output of removed devices
if (e.Removed != null)
{
foreach (var removed in e.Removed)
{
Console.WriteLine($"Removed: '{removed.ProductName}' ('{removed.DisplayName}')");
}
}
}
}
License
DiskInfoToolkit is free and open source software licensed under MPL 2.0.
You can use it in private and commercial projects.
Keep in mind that you must include a copy of the license in your project.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- BlackSharp.Core (>= 1.2.0)
- System.Memory (>= 4.6.3)
-
.NETFramework 4.8.1
- BlackSharp.Core (>= 1.2.0)
- System.Memory (>= 4.6.3)
-
.NETStandard 2.0
- BlackSharp.Core (>= 1.2.0)
- System.Memory (>= 4.6.3)
-
net10.0
- BlackSharp.Core (>= 1.2.0)
-
net8.0
- BlackSharp.Core (>= 1.2.0)
-
net9.0
- BlackSharp.Core (>= 1.2.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on DiskInfoToolkit:
| Package | Downloads |
|---|---|
|
LibreHardwareMonitorLib
Monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer. |
|
|
LLT.LibreHardwareMonitorLib
Monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer. |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on DiskInfoToolkit:
| Repository | Stars |
|---|---|
|
LibreHardwareMonitor/LibreHardwareMonitor
Libre Hardware Monitor is free software that can monitor the temperature sensors, fan speeds, voltages, load and clock speeds of your computer.
|
|
|
breadeding/OmenSuperHub
Control Omen laptop performance, fan speeds, and keyboard lighting, and unlock power limits.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 2.2.0 | 578 | 9/28/2026 |
| 2.1.4 | 3,498 | 8/30/2026 |
| 2.1.3 | 2,898 | 8/9/2026 |
| 2.1.2 | 2,126 | 7/19/2026 |
| 2.1.1 | 6,912 | 5/20/2026 |
| 2.1.0 | 2,875 | 5/3/2026 |
| 2.0.4 | 1,186 | 4/26/2026 |
| 2.0.3 | 756 | 4/19/2026 |
| 2.0.2 | 813 | 4/15/2026 |
| 2.0.1 | 599 | 4/10/2026 |
| 2.0.0 | 808 | 4/6/2026 |
| 1.2.1 | 971 | 3/24/2026 |
| 1.2.0 | 1,883 | 3/13/2026 |
| 1.1.3 | 1,664 | 2/26/2026 |
| 1.1.2 | 132,704 | 1/8/2026 |
| 1.1.1 | 7,396 | 1/5/2026 |
| 1.1.0 | 3,450 | 12/2/2025 |
| 1.0.9 | 987 | 12/1/2025 |
| 1.0.8 | 526 | 11/29/2025 |
| 1.0.7 | 550 | 11/28/2025 |