CLI Knowledge Base

Get storage device model info

lsblk Example #1

$ lsblk -o MODEL
MODEL
KINGSTON_SUV400S37240G


ST2000DM008-2FR102

ASUS_DRW-24B1ST_j
Samsung SSD 970 PRO 512GB

lsblk Example #2

$ lsblk -o NAME,MODEL,SIZE,STATE -d |grep -v loop
NAME    MODEL                       SIZE STATE
sda     ST2000DM008-2FR102          1.8T running
nvme0n1 Samsung SSD 990 PRO 2TB     1.8T live
nvme1n1 Samsung SSD 970 PRO 512GB 476.9G live

hwinfo

$ hwinfo --block --short
disk:                                                           
  /dev/nvme0n1         Samsung Electronics NVMe SSD Controller SM981/PM981
  /dev/sdb             ST2000DM008-2FR1
  /dev/sda             KINGSTON SUV400S
partition:
  /dev/nvme0n1p1       Partition
  /dev/nvme0n1p2       Partition
  /dev/nvme0n1p3       Partition
  /dev/sdb1            Partition
  /dev/sda1            Partition
  /dev/sda2            Partition
cdrom:
  /dev/sr0             ASUS DRW-24B1ST   j