Is there a quick way to understand a type of the "storage" on Linux? Is it a HDD or SSD (or NVMe)?
It's already known that the host is a physical machine and not a VM.
The first thing I though about was
rotational flag under
/sys/block/<device>/queue/ directory. But in my experience even for SSD devices it may contain "1" value.
The second way and more realistic and truthful was a latency. It's a bit harder to measure (some work with /proc/diskstats), but looks more preferable.
Is there any other ways? It's important to mention that I don't need to know exact model of the "storage", just its type.