public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: dmesg output: impending hardware failure?
Date: Wed, 17 Aug 2005 09:33:46 -0700	[thread overview]
Message-ID: <430366EA.5010303@comarre.com> (raw)
In-Reply-To: <Pine.LNX.4.61.0508161249060.4989@localhost.localdomain>

James Miller wrote:
> On Mon, 15 Aug 2005, chuck gelm wrote:
> 
>> First: Backup your data on /dev/hdb! :-|
>> Second: I recommend editing /etc/smartd.conf to include
>> /dev/hdb -a
>> Then running
>> smartd
>> Then
>> tail -f /var/log/messages
>> and see whazzzup!  ;-)
> 
> 
> This doesn't reveal anything related to the drive. Some mouse messages 
> show up there, but that's another puzzle. Further investigation reveals 
> that, when I boot with the "old" 2.6.10 kernel, there are no dmesg 
> output errors related to /dev/hdb. Furthermore, with the 2.6.12 kernel I 
> got doing the dist-upgrade, I seem also to have gotten udev. Maybe this 
> is related somehow to udev? I notice I've got usb hotplug back with the 
> dist-upgrade, too. Probably the resolution to these and related issues 
> is compiling my own kernel and the learning associated with that. I've 
> actually compiled a kernel before semi-successfully. I don't remember 
> much about it though, and there's a special Debian way of doing it that 
> I'm not very familiar with, so it would be sort of like starting from 
> square one. If anyone has further input on the /dev/hdb errors 
> referenced, the 2.6.12 kernel, udev, or other related advice, please 
> offer it.

I can only offer a guess, James, but the guess is that this report is 
nothing to worry about. I guess this from a look at the details.

First, dmesg reports this:

> hdb: Host Protected Area detected.
>     current capacity is 39102336 sectors (20020 MB)
>     native  capacity is 39102337 sectors (20020 MB) 

Then it reports a bunch of seek errors, all involving the same sector:

> hdb: dma_intr: error=0x10 { SectorIdNotFound }, LBAsect=39102336, sector=39102336 

Now, note that the sector involved in ALL the seek errors is the last 
sector, the one included in "native capacity" but not in "current 
capacity". (Remember, sector numbers start at 0, not 1.) Since this 
sector is not part of the capacity of the drive as (for example) fdisk 
sees it, there will never be a call to read from or write to this 
sector, since no partition or filesystem will use it.

The errors are probably occurring because during boot/init, hard drives 
are told to seek the "last" sector. Or they used to be told this ... I'm 
not sure that they still are, but they might be.

All that said, I still don't know why the new kernel reports these seek 
failures but the old one doesn't. Since you use pre-compiled kernels, 
and I don't even know where you get them from (I've never heard of "the 
Synaptic equivalent" to a Debian dist-upgrade ... does this just mean 
you work at Synaptic and use a local cache in a proxy server?), they are 
a black box to both of us. If the drive is 4 years old, it may have been 
partitioned under a 2.4.x kernel (conceivably even a 2.2.x. kernel), so 
these reports could just reflect improvements in the IDE code over time.

Or it may be some wackiness specific to the IDE chipset in your machine 
(if you look at a kernel configuration ruleset, in "make menuconfig" or 
whatever is convenient for you, you will see a lot of choices involving 
specific IDE chipsets, with the number growing over time) and changes in 
what chipsets are supported in pre-compiled kernels.

Or it could be a "feature" of the BIOS or IDE hardware (the "Host 
Protected Area" part makes me think of laptop drives, which sometimes 
reserve an area for maintaining state while sleeping).

Or (most likely) it is some oddball thing I haven't thought of.

But I doubt it is a cause for concern.

Of course, if you are seeking more widespread reports of seek errors, 
involving other sectors and times other than boot/init, then you should 
immediately back up the contents of this drive on a new one.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  reply	other threads:[~2005-08-17 16:33 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-15 22:30 dmesg output: impending hardware failure? James Miller
2005-08-15 23:52 ` chuck gelm
2005-08-16 18:26   ` James Miller
2005-08-17 16:33     ` Ray Olszewski [this message]
2005-08-17 16:59       ` James Miller
2005-08-18  0:06         ` Ray Olszewski
2005-08-18  1:41           ` James Miller
2005-08-18  3:06             ` Vikas
2005-08-18  3:10               ` HOW TO HAVE GOOD KERNEL UNDERSTANDING Vikas
2005-08-19 13:07                 ` _z33
2005-08-19 13:17                 ` osk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=430366EA.5010303@comarre.com \
    --to=ray@comarre.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox