If you need to know the model number and/or serial number of a hard disk drive (HDD) in a Linux system, one tool that you can use to obtain that information as well as other information on the drive is the lsblk utility, which is included in the util-linux package. E.g.:
# lsblk -o MODEL,SERIAL,SIZE,STATE --nodeps MODEL SERIAL SIZE STATE WDC WD10EZEX-00W WD-WCC6Y4ZYE4Y3 931.5G running DVD A DH16ACSHR 238229911623 1024M running vmDisk-CD 13043003455 1024M running
You can see the list of arguments you can provide to the program with
lsblk -h
.
[ More Info ]