Tuesday, October 11, 2022

Commands to verify if the attached disk in spinning disk(hdd) or Solid state drive (ssd)

 For any of the below commands if the output is 1 then its is hdd and if it 0 then it is ssd


$ lsblk -d -o name,rota

NAME ROTA

sda     0

sdb     0

sdc     0

(or) 

$ cat /sys/block/sd*/queue/rotational

0

0

0


Information: To find available storage you can do it with command "lsblk"

***