How to check if the disk is SSD?

Most of the data centers and hosting providers are now offering SSD (Solid-state drive). If you run the fdisk command to check the drives it’s still going to show as sda/hda. Since kernel 2.6.29 Linux automatically detects SSD. Now to verify sda for SDD. Simple cat the /sys/block/sda/queue/rotational file. If the output is “0” then that¬† means it’s a SSD.

root@host [~]# cat /sys/block/sda/queue/rotational
0
root@host [~]#

If the result is
1 -> Regular SATA disk
0 -> SDD

About 

Sreejit is the founder of Server Management Plus. His motto is "If there's an easier way, Why do it any other way" and following it, he has created a lots of automation scripts for the company using which we are able to resolve issue at an extremely fast rate and save lots of time. He has a very keen interest in new technologies and spend most of his free time online researching about it apart from listening music and watching movies.