Carlos Aguni

Highly motivated self-taught IT analyst. Always learning and ready to explore new skills. An eternal apprentice.


Hdinfo

03 Jun 2022 »

get serial number

https://unix.stackexchange.com/questions/121757/harddisk-serial-number-from-terminal

lshw -class disk | grep "logical name" -A2

[root@deluge ~]# lshw -class disk | grep "logical name" -A2
       logical name: /dev/cdrom
       logical name: /dev/sr0
       version: 1.00
       capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
--
       logical name: /dev/sda
       version: 2.0
       size: 64GiB (68GB)
--
       logical name: /dev/sdb
       version: 1901
       serial: 00000000NAC5Q63J
--
       logical name: /dev/sdc
       version: 0712
       serial: NAAXKTRD

duf