From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DCFAA13877A for ; Sat, 26 Jul 2014 09:26:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 823A5E0921; Sat, 26 Jul 2014 09:26:32 +0000 (UTC) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 52F9CE0871 for ; Sat, 26 Jul 2014 09:26:31 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id d1so2125512wiv.1 for ; Sat, 26 Jul 2014 02:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=AAFNZOQCFi5zmcH1VLXm0YecUkZLds/hWbiDda6IMGg=; b=sFEBXuQOgA5JMSf7XixjFyBpUrNYmSvSoGjBFmE+WlH9tIE/+1EaglrbPjZJlRuldn DTuPnZX3c3aDEwMUqZaYDfYdekwgiNwZc6MKfAQxrE7mIGKaBrLnZ2V6J3pL4mT3TaXd BdGaqhzs9sQikfQgRIFo7wdmIrQvR2Mq8SQl+eP98jkPvMTZM74qp4+udfaj4hFsTMI4 LgXumVf5Kz4IWY3tguHMzhbNhnuYyJK0qZNT77MkETa/p5j8mCb3YUwJT4GVurXBPvEb yNqw4Y+k0HJ0HgFfD5WiRsN1flLQpfNQoFMJxfbH0kicVpJ6HFyJTeULCuEI9lyLveSB jIkQ== X-Received: by 10.180.81.103 with SMTP id z7mr12030881wix.23.1406366789831; Sat, 26 Jul 2014 02:26:29 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by mx.google.com with ESMTPSA id cd1sm32335142wjc.19.2014.07.26.02.26.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 26 Jul 2014 02:26:28 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] Badblocks on my harddisk Date: Sat, 26 Jul 2014 10:25:44 +0100 User-Agent: KMail/1.13.7 (Linux/3.12.21-gentoo-r1; KDE/4.12.5; x86_64; ; ) References: <20140726014915.GA3845@solfire> In-Reply-To: <20140726014915.GA3845@solfire> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3142735.CnFzbfJg1S"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201407261025.55867.michaelkintzios@gmail.com> X-Archives-Salt: 84b0db62-cfe2-4959-8e76-9ee3ba0b1533 X-Archives-Hash: 016f1c542a6673234d8cd90fc51fdd1d --nextPart3142735.CnFzbfJg1S Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Saturday 26 Jul 2014 02:49:15 meino.cramer@gmx.de wrote: > Hi, >=20 > After running smartctl for an extended offline test I got > a badblock (information extracted from the report): >=20 > SMART Self-test log structure revision number 1 > Num Test_Description Status Remaining LifeTime(hour= s) > LBA_of_first_error # 1 Extended offline Completed: read failure = =20 > 90% 14460 4288352511 197 Current_Pending_Sector 0x0032 200= =20 > 200 000 Old_age Always - 1 >=20 > I found a explanation to map the LBA to a partition here: > http://smartmontools.sourceforge.net/badblockhowto.html >=20 > My partition layout is: > #> sudo fdisk -lu /dev/sda >=20 > Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors > Units: sectors of 1 * 512 =3D 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disklabel type: dos > Disk identifier: 0x07ec16a2 >=20 > Device Boot Start End Blocks Id System > /dev/sda1 * 2048 104447 51200 83 Linux > /dev/sda2 104448 12687359 6291456 82 Linux swap / Solaris > /dev/sda3 12687360 222402559 104857600 83 Linux > /dev/sda4 222402560 1953525167 865561304 5 Extended > /dev/sda5 222404608 232890367 5242880 83 Linux > /dev/sda6 232892416 442607615 104857600 83 Linux > /dev/sda7 442609664 652324863 104857600 83 Linux > /dev/sda8 652326912 862042111 104857600 83 Linux > /dev/sda9 862044160 1071759359 104857600 83 Linux > /dev/sda10 1071761408 1281476607 104857600 83 Linux > /dev/sda11 1281478656 1491193855 104857600 83 Linux > /dev/sda12 1491195904 1953525167 231164632 83 Linux > 4288352511 <<< The number reported by smartctl >=20 >=20 > Following the linked document... > It seems the bad LBA is not on the checked harddisk. >=20 > Or (more obvious) I did something wrong... You are probably comparing different units. The Start and End of fdisk are= =20 reporting sectors, each sector being 512 bytes. Therefore if the LBA is=20 reported by smartctl in bytes, you have: 4,288,352,511 =C3=B7 512 =3D 8,375,688.5 which would place it within your swap partition. I would do this: swapoff /dev/sda2 dd if=3D/dev/zero of=3D/dev/sda2 bs=3D512 conv=3Dnotrunc mkswap -L swap -c /dev/sda2 swapon /dev/sda2 and hopefully the problem will be gone when you run the next smartctl test. =2D-=20 Regards, Mick --nextPart3142735.CnFzbfJg1S Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJT03QjAAoJELAdA+zwE4YeTe4H/1ZwPGEP/vxowCwYkdIFaWyu RIAMWdq3Tlm6gb9b+DKRtAELgvr2lJ5zhRj0PNQcYtJR6IOSb+w26C2o/GaiyYV4 OYXWE2YFLVsHBWz2d8iRc9rW0jFKTa95gfeE4firzJxaNyjxu8fAXeakLGvjxrhq bIjpkSuNsKTWqGax7ywK0SSrKUFSVgF3HxGZeI6wg4kq0YEFpBbK0sMeSLNHvvro KjE4mnZ/zVsSmbrWtPKmH9cMBpa0pXFEM9SoBo28oPY953b4HRXX4/MFVqHcSTsW olkkz1ospf68C0gZWJNHii+KM8/QeJrYfQrT6CT63QTe+Z+LYwNBOsxf1sZdSfY= =9WJK -----END PGP SIGNATURE----- --nextPart3142735.CnFzbfJg1S--