nixCraft Poll

Topics

Linux smartd SATA drives support

Posted by Vivek Gite [Last updated: December 13, 2006]

smartd is SMART Disk Monitoring Daemon for Linux. Does smartd support SATA drives?

Yes and No.

This is one of the tricky situation - sometime smartd does support SATA drives and sometime it simply does not support smartd.

Smartmontools should work correctly with SATA drives under both Linux 2.4 and 2.6 kernels, if you use the standard IDE drivers in drivers/ide. If you use the new libata drivers, it won't work correctly because libata doesn't yet support the needed ATA-passthrough ioctl() calls. Jeff Garzik, the libata developer, says that this support will be added to libata in the future.

smartd does not support SATA drives. However you can try your luck by modifying smartd.conf file:
# vi /etc/smartd.conf

You can add support to smartmontools for a new SATA/libata device adding '-d sata'. Typically, to force an SATA disk to run using the standard (non-libata) drivers, you must use the BIOS to select "legacy mode" for the controller.
Look for line that read as follows:
/dev/sda -d ata -H -m notify-admin@idc.nixcraft.com
Replace with:
/dev/sda -d sata -H -m notify-admin@idc.nixcraft.com
Save and close file. Restart smartd:
# /etc/init.d/smartd restart

You may need to download and patch the system to use above hack.

Otherwise it is good idea to turn off samrtd. Under RHEL or CentOS or Fedora core type command:
# /etc/init.d/smartd stop
# chkconfig smartd off

See also

=> Monitoring hard disk health with smartd under Linux or UNIX operating systems

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.