Find CentOS Hard Drive Serial Number

You can use the following command in the CentOS system to view the serial number of a hard drive:

  1. Open the terminal window.
  2. List all disks and partitions using sudo fdisk.
  3. The first SATA hard drive
  4. The device named /dev/sdb
  5. find the serial number of the device using the command sudo hdparm -I /dev/sdX | grep Serial
  6. The device /dev/sdX

This way, you can view the serial number information of the hard drive device.

bannerAds