# Questions regarding bad block management

- From: Clemens Eisserer \<hidden\>
- Date: 2014-01-26 21:03:45 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2014/01/6626759
- Thread: https://ratatoskr.run/linux-raid/2014/01/6626759/t.md

```text
Hi,

I've seen several SD cards used in my raspberry pi develop bad blocks
which can not be read or written anymore.
I thought raid couldn't help here as it would flag the whole device as
"bad" once it can not write a block anymore, however recently I
learned linux-raid is now capable of handling bad blocks.

I've been searching a bit, however didn't find a lot of information,
so I would be greateful if somebody could answer the following
questions:

1. Is the badblock-code contained in the stable 3.12 kernel?

1. Using a raid1 with badblock management, is it possible for
linux-raid to automatially repair errors transparently?
So if a block goes bad, does linux-raid silently replace it without
user intervention.

2. What happens in case a replaced block fails again? Is this supported?

Any pointer to documentation about bad-block handling would be highly
appriciated.

Thanks, Clemens
```
