How To Identify If Underlying Disk is HDD or SSD?

Problem

How to identify if the underlying disk on the system is HDD or SSD?

Environment

  • Platform9 Managed OpenStack - All Versions
  • Platform9 Managed Kubernetes - All Versions
  • CentOS
  • Ubuntu

Procedure

  1. Use thelsblk command to identify the type of disk attached to the server. In ROTA column the output '1' indicates the type of disk is HDD, for the SSD the value will be '0'.
Bash
Copy
  1. It can be also identified using the file rotational file in sys filesystem as below to confirm if the disk is hdd or ssd.
Bash
Copy

Additional Information

On a KVM guest virtual machine, the drive letter would be vda. The result will vary depend on the bus type selected during the virtual machine creation

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard