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 | tailIf 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/rotationalIf the result is 1, then the disk is an HDD. the output 0 ( zero) that disk is ssd.
The output terminal as below:
Thanks for reading How to check Disk is SSD or HDD on Linux My blog Effortless Zimbra Mail Management: Unleashing the Power of Linux Commands, How-To, and Bash Scripts I hope this is useful.