Is there any way of detecting if a drive is a SSD?

前端 未结 9 2051
面向向阳花
面向向阳花 2020-11-30 03:02

I\'m getting ready to release a tool that is only effective with regular hard drives, not SSD (solid state drive). In fact, it shouldn\'t be used with SSD\'s because it will

9条回答
  •  暖寄归人
    2020-11-30 03:54

    This command lsblk -d -o name,rota lists your drives and has a 1 at ROTA if it's a rotational disk and a 0 if it's an SSD. Example output :

    NAME ROTA
    sda     1
    sdb     0
    

提交回复
热议问题