From: Jeremy Sanders <jss@ast.cam.ac.uk>
To: linux-raid@vger.kernel.org
Subject: Re: Raid and badblocks
Date: Tue, 26 May 2009 13:59:14 +0100 [thread overview]
Message-ID: <gvgp32$9se$1@ger.gmane.org> (raw)
In-Reply-To: 77f027ed892f0a37b3df63d574ae7955.squirrel@neil.brown.name
NeilBrown wrote:
> If you want to write to it which might make the drive think it isn't
> bad any more, you could
> dd if=/dev/zero of=/dev/sdj seek=1953103080 count=1
>
> But if it were me, I would do
> dd if=/dev/sdj of=/dev/null skip=1953103080 count=1
> and confirm that gives and error, just to double check the numbers.
Thanks very much for your help. I managed to get rid of the bad block.
However I had to write 4kB at once to the bad region (bs=4096) for the drive
to correct the block. Using bs=1 didn't seem able to get rid of the errors.
Strangely, the Reallocated_Sector_Ct is still zero on the drive even though
Current_Pending_Sector is now zero. This is a Samsung HD103UJ by the way.
Jeremy
--
Jeremy Sanders <jss@ast.cam.ac.uk> http://www-xray.ast.cam.ac.uk/~jss/
X-Ray Group, Institute of Astronomy, University of Cambridge, UK.
Public Key Server PGP Key ID: E1AAE053
next prev parent reply other threads:[~2009-05-26 12:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-22 9:09 Raid and badblocks Jeremy Sanders
2009-05-22 9:19 ` Jeremy Sanders
2009-05-22 11:50 ` NeilBrown
2009-05-26 12:59 ` Jeremy Sanders [this message]
2009-05-26 15:27 ` Andrew Burgess
2009-05-30 10:13 ` hank peng
2009-05-30 13:29 ` John Robinson
2009-05-30 14:21 ` Sujit Karataparambil
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='gvgp32$9se$1@ger.gmane.org' \
--to=jss@ast.cam.ac.uk \
--cc=linux-raid@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;
as well as URLs for NNTP newsgroup(s).