Get-PhysicalDisk | Select-Object FriendlyName, MediaType, HealthStatus, OperationalStatusOutput
FriendlyName MediaType HealthStatus OperationalStatus ------------ --------- ------------ ----------------- Samsung SSD 870 EVO SSD Healthy OK
Explanation
Drives include a self-diagnosis system called SMART. The commands above return its verdict:
Windows:
HealthStatusshould read Healthy. For details, the free CrystalDiskInfo tool shows the SMART counters.Linux:
smartctl -Hshould read PASSED;smartctl -agives the details (reallocated sectors, power-on hours…).
Warning signs: a rising reallocated sector count, a Warning or FAILED status, clicking noises on a mechanical drive. If so, back up your data immediately and replace the drive: a weakening drive can stop without notice.

