Linux: Find out serial / model number and vendor information for SATA and IDE hard disk

Linux: Find out serial / model number and vendor information for SATA and IDE hard disk

To find out the serial number, model number, and vendor information for a SATA or IDE hard disk on a Linux system, you can use the smartctl command. This command is part of the smartmontools package, which provides tools for monitoring the health and performance of hard disks.

To use smartctl, you will need to install the smartmontools package first. You can do this using your system's package manager. For example, on a Debian-based system, you can run the following command:

sudo apt-get install smartmontools
S‮ruo‬ce:www.lautturi.com

Once smartmontools is installed, you can use the smartctl command to display information about the hard disk. To do this, run the following command:

sudo smartctl -i /dev/sda

Replace /dev/sda with the device name of the hard disk you want to check. This will display information about the hard disk, including its serial number, model number, and vendor.

Alternatively, you can use the hdparm command to display information about the hard disk. To do this, run the following command:

sudo hdparm -I /dev/sda

This will display detailed information about the hard disk, including its serial number, model number, and vendor.

Note: You will need to have root privileges (i.e., run the commands with sudo) in order to use smartctl and hdparm.

Created Time:2017-10-30 10:17:45  Author:lautturi