LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-13-2008, 11:10 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Smartmontools Tid Bits


With my new box I decided to enable the smart daemon that is packaged with smartmontools. I quickly noticed error messages regarding my primary IDE drive. Allegedly I had at least one bad sector.

Running fsck at boot cured nothing and manually testing with smartctl always passed.

I next read the Bad block HOWTO for smartmontools and learned about the debugfs tool.

When I calculated the location of the bad block and queried with debugfs, I received a "file not found" message. I scratched my head for several moments and then realized that no files were stored on that block. So what to do to eliminate the smartd error messages?

Well, a little further into the HOWTO was the hat trick. I could have copied the /dev/zero device to the bad block, but the solution was much simpler. I copied a DVD ISO image, which was about the same size as the remaining space in the partition (7.4 GB). The hard drive firmware remedied the problem nicely. I don't know whether the block remains bad or whether the firmware marked the block as unusable, but I think the latter as the error messages changed thereafter.

After I restarted the smartd I no longer received any error messages. No errors from the smartctl long test either. Very nice trick.

Through this journey this afternoon, I also noticed that the version of smartmontools packaged with Slackware 12.0 (and 12.1) did not support my new WD3200AAKS SE16 Caviar SATA hard drive. I could use the -d ata option to work with the drive, but I preferred otherwise.

I downloaded the 5.38 version, compiled with the stock Slackware build script (updated for the new version), and then installed version 5.38. The new database recognized my new drive. I emailed PV and asked him to consider updating smartmontools in 12.1.

I also modified /etc/syslog.conf to create a separate log for smartd:

# Route smartd messages
local3.* /var/log/smartd


I then modified the /etc/rc.d/rc.smartd:
SMARTD_OPTIONS="-l local3"

I like separate logs as much as possible and this trick was nice.

One last observation, not directly related to smartmontools. When I was trying to troubleshoot the smartmontools error messages, I naturally ran a full fsck at boot (through touch /etc/forcefsck). The console screen was mildly discomforting to watch. With two hard drives, the primary an IDE and the secondary the new SATA, fsck seemed confused about displaying the progress bar results, or perhaps the two drives were fighting for time, or both. In /etc/rc.d/rc.S, in the section for checking all non-root partitions with fsck, I added the -s option. That solved the problem. Perhaps the -s option is slower, but I could not really tell. Perhaps later I'll time the results with a stop watch, but the on screen console display behaved thereafter and provided me some peace of mind.

Just some tid bits I thought somebody might find useful. With my schedule these days I don't get much chance to participate in the forum as I would like and hope this info helps.
 
Old 04-14-2008, 09:29 PM   #2
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Thanks for the info. -- one Q:
What was the ver. of smartmontools orig. installed on your Slack 12?

I have smartmontools "5.33+5.34cvs20050802-3ubuntu1"
available in SimplyMEPIS 6.0 (& presumably 6.5.02 -- both use Dapper repos.)
OTOH, Debian Etch (& presumably MEPIS 7.0) offers
smartmontools "5.36-8"

I'm installing a WD4000KSRTL on a new box & I'm concerned about whether my current vers. of MEPIS have new enough vers. of smartmontools to accommodate that HD.

If your ver. was older than 5.33/4, then I may not have to go to MEPIS 7.0 until I am ready.
 
Old 04-16-2008, 06:59 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637

Rep: Reputation: Disabled
For some suggestions about graphic analysis of smart data I suggest

http://www.linuxquestions.org/questi...eports-559184/
 
Old 04-18-2008, 11:26 PM   #4
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
What was the ver. of smartmontools orig. installed on your Slack 12?
5.36

This week PV updated to version 5.38 in 12.1 RC1.

Quote:
I'm installing a WD4000KSRTL on a new box
The SRTL suffix is actually the retail version of the AAKS suffix. Your drive is listed in the knowndrives.cpp source file in the 5.38 version. Watch your boot BIOS screen and you should see AAKS rather than SRTL. My new drive is model WD3200AAKS although the box listed WD3200SRTL. Same family (SE16 Caviar) as your drive. My boot screen shows AAKS. I get the same result when I run smartctl -i /dev/sda.
 
Old 04-20-2008, 06:05 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Thanks for the add'l info.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change MAC address from 48 bits to 32 bits? cywong.digi Linux - Networking 1 09-05-2007 10:28 AM
smartmontools shawniecas Linux - Software 1 06-11-2007 10:54 AM
32 bits version distros running 64 bits CPU javb Linux - General 4 04-02-2006 08:21 AM
Java 64 bits and applications of 32 bits RGB_mdk Linux - Software 3 06-13-2005 10:05 AM
pthread_create creates a number of threads with same tid!!!! dravya Programming 5 08-11-2004 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration