How to Check SSD on Linux: Complete Guide

There are several methods available in Linux to check if a hard drive is a solid-state drive.

  1. To use the hdparm command, type the following command in the terminal:
  2. Use the “sudo hdparm -I /dev/sda” command to display information about the solid state drive.
  3. Replace /dev/sda with the hard disk device you want to check. If the output includes the words “Solid State”, it means the hard disk is a solid-state drive.
  4. Use the lsblk command: type the following command in the terminal:
  5. Use sudo to display a list of block devices showing only their names and rotational status.
  6. If the “rota” column in the output is “0”, then it indicates that the hard disk is a solid-state drive.
  7. Use the smartctl command: Type the following command in the terminal.
  8. Use the command “sudo smartctl -a /dev/sda | grep “Solid State””
  9. Replace /dev/sda with the hard drive device you want to check. If the output contains the words “Solid State,” it means the hard drive is a solid-state drive.

The above are several common ways to check if a hard drive is solid state.

bannerAds