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.
- To use the hdparm command, type the following command in the terminal:
- Use the “sudo hdparm -I /dev/sda” command to display information about the solid state drive.
- 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.
- Use the lsblk command: type the following command in the terminal:
- Use sudo to display a list of block devices showing only their names and rotational status.
- If the “rota” column in the output is “0”, then it indicates that the hard disk is a solid-state drive.
- Use the smartctl command: Type the following command in the terminal.
- Use the command “sudo smartctl -a /dev/sda | grep “Solid State””
- 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.