Wednesday, December 31, 2008

Find out serial / model number and vendor information for Serial ATA and IDE hard disks.


Question : How can i find out hard drive information in linux box.

Install smartmontools on linux box. On Debian & Ubuntu

Follow the instructions :

apt-get install smartmontools

vim /etc/defaults/smartmontools

Uncomment the follwing line

# uncomment to start smartd on system startup

start the service, /etc/init.d/smartmontools start

smartctl -i /dev/hda or dev/sda (Gives you information about harddrive model no, serial no/ vendor details)

If its showing any errors like this "SMART support is: Unavailable"

Run this smartctl -i -d /dev/hda or /dev/sda (This should work).

To know detailed information about harddrive smartctl --all /dev/hda

check man smartctl to know more.

No comments: