mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Eric D. Mudama" <edmudama@mail.bounceswoosh.org>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: Chip Salzenberg <chip@pobox.com>,
	Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>,
	Linux Kernel <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: Linux 2.6.3-rc3 - IDE DMA errors on Thinkpad A30
Date: Mon, 16 Feb 2004 12:27:41 -0700	[thread overview]
Message-ID: <20040216192741.GA22218@bounceswoosh.org> (raw)
In-Reply-To: <40303D59.4030605@pobox.com>

On Sun, Feb 15 at 22:47, Jeff Garzik wrote:
>Chip Salzenberg wrote:
>>Still: I wonder if the occasional bad sector is really that bad.
>>Shirley, at the unreal densities of today's drives, the development of
>>bad sectors is inevitable?  (Especially in a laptop drive that's
>>bounced around in normal use.)
>
>Open argument :)
>
>A lot of smart people will argue that a bad sector every now and again 
>occurs, and "I've run my server's disks that way for years."
>
>Other equally smart people argue that modern IDE disks reserve space for 
>remapping bad sectors.  If you run out of sectors that the drive is 
>willing to silently remap for you, you should toss the disk and buy a 
>new one.

Yes, definitely.  There are a *lot* of spare sectors on a modern IDE
drive -- Running out of spares is an extremely rare event, and usually
indicates that the drive has been operating in severe conditions for
its lifetime.  (>55C + vibe sorts of things)

>There is of course the caveat that it is impossible to avoid the drive 
>returning "bad sector", instead of silently remapping, on reads.

Yes, because at that point, there's nothing to remap.  If the drive
couldn't read it, and knows it isn't in its 2/8MB cache, remapping is
pointless until there is known-good data to apply.  Therefore, only on
the write is there a good reason to examine and possibly remap an LBA.

>Oh, and I just thought of something else.  Current Linux filesystems 
>will, on a read error, usually mark it as a bad sector and move on. 
>Really, they should attempt to write to the bad sector before 
>considering it bad.
>
>As a result, current kernels will AFAICT assume a sector is bad even 
>when the drive politely swaps a good sector in place for you.
>
>One for the todo list, I suppose...  a useable workaround for this is 
>probably good ole 'e2fsck -c', i.e. badblocks...  That says "check again 
>to see if this sector is bad", and -hopefully- will unmark bad blocks 
>that were incorrectly marked bad.

Agreed.

In most cases, a simpe write to the supposedly-defective LBA will get
the drive to resolve whether it is a permanent media defect that needs
to be remapped, or else functional media that has gone bad for some
other reason. (of which there are several... excessive cold/heat,
vibration, poor power, etc)


-- 
Eric D. Mudama
edmudama@mail.bounceswoosh.org


      parent reply	other threads:[~2004-02-16 19:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1pliv-6ya-5@gated-at.bofh.it>
2004-02-15 15:22 ` Linux 2.6.3-rc3 - missing IDE hunk from bk4; good or bad? Chip Salzenberg
2004-02-15 15:58   ` Bartlomiej Zolnierkiewicz
2004-02-15 16:34     ` Linux 2.6.3-rc3 - IDE DMA errors on Thinkpad A30 Chip Salzenberg
2004-02-15 17:08       ` Bartlomiej Zolnierkiewicz
2004-02-16  0:55         ` Chip Salzenberg
2004-02-16  2:14           ` Jeff Garzik
2004-02-16  3:37             ` Chip Salzenberg
2004-02-16  3:47               ` Jeff Garzik
2004-02-16  3:58                 ` Valdis.Kletnieks
2004-02-16  4:09                   ` Jeff Garzik
2004-02-16  4:29                     ` Valdis.Kletnieks
2004-02-16 12:06                     ` Bill Davidsen
2004-02-16  4:08                 ` Chip Salzenberg
2004-02-16  4:24                   ` Bartlomiej Zolnierkiewicz
2004-02-16 19:27                 ` Eric D. Mudama [this message]

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=20040216192741.GA22218@bounceswoosh.org \
    --to=edmudama@mail.bounceswoosh.org \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=akpm@osdl.org \
    --cc=chip@pobox.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®