Check if Hard drive is SATA or SSD

[root@host.onlinesupport4u.in ~]# cat /sys/block/sda/queue/rotational

Result is 0 if the drive is SSD

[root@host.onlinesupport4u.in ~]# cat /sys/block/sda/queue/rotational

Result is 1 if drive isĀ  SATA