How to check Disk is SSD or HDD on Linux

In this tutorial, How to check Disk is SSD or HDD on Linux. Solid-state drives (SSDs) are fast, silent, and less prone to failure than traditional hard disk drives (HDDs).

  • HDD store information on a rotating disk known as a platter
  • SSD use flash memory to store and persist data.

Using lsblk command to check HDD or SSD

lsblk -o name,rota | tail
If you get a 1 then the disk is an HDD. A 0 (zero) on the column rota is SSD.

The output terminal as below:
How to check Disk is SSD or HDD on Linux

Using the cat Command

cat /sys/block/sda/queue/rotational
If the result is 1, then the disk is an HDD. the output 0 ( zero) that disk is ssd.

The output terminal as below:

Check Disk is SSD or HDD on Linux
 

Comments

Popular posts from this blog

zimbra some services are not running [Solve problem]

Bash script list all IP addresses connected to Server

How to install php7 on centos 6