SSD or spinning disk?

sudo apt install smartmontools
sudo smartctl -a /dev/sda

or

cat /sys/block/sda/queue/rotational