Return-Path: Received: from mx1-v2.alinto.net (mx1-v2.alinto.net [83.145.109.31]) by mail.saout.de (Postfix) with ESMTP for ; Thu, 7 Oct 2010 22:28:28 +0200 (CEST) Received: from http4alinto.alinto.net (http4alinto.alinto.net [83.145.109.64]) by mx1-v2.alinto.net (Postfix) with ESMTP id F3A745803B1 for ; Thu, 7 Oct 2010 22:20:10 +0200 (CEST) Message-ID: <1286482810.4cae2b7ae099c@www.inmano.com> Date: Thu, 07 Oct 2010 22:20:10 +0200 From: octane indice MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: [dm-crypt] What happen if hard drive has a read error? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt Hello It's just a theorical question. I encrypted some data with dm-crypt on an hard drive. But what happens if the hard drive has an error? Not a kind of a big error which cause the hard drive hangs, but just a small error that make the system doesn't read the bytes all right? Obviously, dm-crypt won't decrypt the data. But what happens next? -dm-crypt will panic() the kernel -Only a block won't be decrypted, so it means that at best, only a file is corrupted, and at worst all of the filesystem is trashed, depending the location of the error? -Or everything beyond the point of the read error will be trash? -Or it depends of the crypto layer choosen as CBC, or else? That's just a theorical question, thank you Envoy=E9 avec Inmano, ma messagerie renversante et gratuite : http://www.in= mano.com