Determine if the storage is SSD or HDD – using linux command

determine whether your storage is SSD or HDD using linux command

You’ve purchased a Cloud server or a Virtual server. The server provider says it comes with an SSD (Solid State Drive). Now you definitely would like to verify whether the storage is indeed SSD or is it simple HDD (Hard Disk Drive). If you’re server is running on any version of Linux OS (kernel version 2.6.29 onwards) – just run the following command:

cat /sys/block/sda/queue/rotational

Linux command to identify if a storage is ssd or hdd

The result will be Either 1 or 0 . If it is “0” – Congratulations – your storage is indeed an SSD one and if the result is “1” – your storage device is an HDD.

I ran the above command in one of my VPSs. The result is “1” – that is the storage device used here is an HDD.

Leave a Reply

Your email address will not be published. Required fields are marked *