Thursday, July 30, 2020

How to check the Hard Disk Serial Number in Linux

Check the hard drive serial number using lshw.
lshw is a tool used to display the list of hardware installed on your computer. This tool has been installed by default on the vast majority of Linux. To use this tool to display the hard drive serial number, you can type the following command.

lshw -class disk

if not logged in through root user then type the following command.

sudo lshw -class disk