public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] Badblocks on my harddisk
Date: Sat, 26 Jul 2014 13:27:35 +0100	[thread overview]
Message-ID: <201407261327.44441.michaelkintzios@gmail.com> (raw)
In-Reply-To: <20140726102654.GD3835@solfire>

[-- Attachment #1: Type: Text/Plain, Size: 788 bytes --]

On Saturday 26 Jul 2014 11:26:54 meino.cramer@gmx.de wrote:

> got this:
> 
> #> /root>mkswap -L swap -c /dev/sda2
> 1 bad page

OK, so we know for sure now that the bad block was on your swap.  :-)


> Sorry for stuutering postings...overlocked this one:
> #>dd if=/dev/zero of=/dev/sda2 bs=512 conv=notrunc
> dd: error writing ‘/dev/sda2’: Input/output error
> 
> Hrrrmpfff...
> 
> Why does it nt remap those ones?


As Volker posted since you don't even get a "records in" / "records out" from 
dd, it seems that it is the first block.  You can verify with badblocks -c 1  
-e 1 -o my_bad_blocks.txt if this is so.

The mkswap -c command will identify and mark the badblock so that this is not 
used again for allocating data to it.

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  parent reply	other threads:[~2014-07-26 12:28 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-26  1:49 [gentoo-user] [OT] Badblocks on my harddisk meino.cramer
2014-07-26  3:39 ` Dale
2014-07-26  8:13   ` meino.cramer
2014-07-31 16:58     ` Frank Steinmetzger
2014-08-01 22:12       ` Stroller
2014-07-26  9:25 ` Mick
2014-07-26 10:11   ` meino.cramer
2014-07-26 10:23   ` meino.cramer
2014-07-26 10:26   ` meino.cramer
2014-07-26 12:06     ` Volker Armin Hemmann
2014-07-26 12:16       ` meino.cramer
2014-07-26 15:56         ` Volker Armin Hemmann
2014-07-26 16:09           ` meino.cramer
2014-07-26 17:18             ` Volker Armin Hemmann
2014-07-26 15:36       ` meino.cramer
2014-07-26 12:27     ` Mick [this message]
2014-07-26 12:04 ` Volker Armin Hemmann
2014-07-26 12:11   ` Dale

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=201407261327.44441.michaelkintzios@gmail.com \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.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