Test if disk is SSD or HDD
mouse 377 · person cloud · link
Last update
2018-02-17
2018
02-17
« — »

Test the value for rotational disk (1 = HDD, 0 = SSD):

1
2
3
4
5
6
cat /sys/block/sdX/queue/rotational

# or

apt install util-linux
lsblk -d -o name,rota # 1=HDD, 0=SSD

Source: Stackexchange