Friday, May 20, 2022

Solution : how to check if the drive is ssd or hdd ?

Command :  lsblk -o NAME,ROTA

Result: 

NAME   ROTA
sda       0
└─sda1    0
sdb       1
├─sdb1    1
├─sdb2    1
├─sdb3    1
├─sdb4    1
nvmep1    1


 1 for hard drive and 0 for ssd.

No comments: