I searched and found 2 options, none of which I'm confident provided me the answer.
This output '1' to stdout. What does this mean?
lshw -class disc
but couldn't find anything that answers my question.
Let's try to read 1000 random 4k blocks from first 16GB of a disk:
This is something that should be very slow on rotating drive in comparison with SSD. On my desktop class SSD it ends in about a second. On desktop class 7200rpm rotating drive it ends in 10 seconds.
In a physical machine (not a VPS), you can get the type with
and grep for
It's quite likely you have no chance to identify the disk type inside a VPS, as the hypervisor abstracts the real hardware away from the guest machines.