Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I got myself a hard drive that is making funny noises.

I want to check for errors, I want to use smartctl,

This command

[root@defiant ~]# smartctl -V

produces an error:

bash: smartctl: command not found...

yum install smartctl doesn't work. How do I yum install smartctl?

share|improve this question

3 Answers 3

up vote 3 down vote accepted

Find out which package it's contained in:

yum provides */smartctl

Then install the package indicated, which should be smartmontools.

share|improve this answer

I found it out. You don't install smartctl, you do this:

yum install smartmontools

I found this helpful:

https://help.ubuntu.com/community/Smartmontools

share|improve this answer

You can find that it's in the smartmontools package with

yum search all smartctl

and it happens you can install the package directly if you know the full path name to a file in the package, which in this case is:

sudo yum install /usr/sbin/smartctl

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.