Posts

Showing posts from December, 2022

How to check Disk is SSD or HDD on Linux

Image
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: 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: