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 8841313877A for ; Sat, 26 Jul 2014 15:36:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9B227E0E5B; Sat, 26 Jul 2014 15:36:31 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4BFA9E0E1E for ; Sat, 26 Jul 2014 15:36:30 +0000 (UTC) Received: from localhost ([84.133.163.187]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MKYsh-1XBLGl1xwN-0021gv for ; Sat, 26 Jul 2014 17:36:28 +0200 Date: Sat, 26 Jul 2014 17:36:27 +0200 From: meino.cramer@gmx.de To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] Badblocks on my harddisk Message-ID: <20140726153627.GB5406@solfire> References: <20140726014915.GA3845@solfire> <201407261025.55867.michaelkintzios@gmail.com> <20140726102654.GD3835@solfire> <53D399AA.8050908@googlemail.com> 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: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <53D399AA.8050908@googlemail.com> User-Agent: mutt-ng/devel-r804 (Linux) X-Provags-ID: V03:K0:JlSrvNBC9X5arMsmfGNBJk2kAAIIWMGi9/YqhdZACFSEXYkBY8g ypp29sxuWSxDl0QyOO+cTzrn6hU3keglNo2FGpfsnXr8evfrN2t4iPc+wc9cTfjQtJioQi1 DLKiORGhIU5c43BG1mwClwFDhIOvmPoLMpRlS/N88B+yW/hU9KSwIN5lHSAe3tKh+mie2Jc TbB0Px3uaCxRtE/hLqWYg== X-Archives-Salt: b2ab41b7-6513-4f26-bf79-22c9b72b85ec X-Archives-Hash: 9efd1a167ded16784cba847693dc52d8 Volker Armin Hemmann [14-07-26 14:08]: > Am 26.07.2014 12:26, schrieb meino.cramer@gmx.de: > > Mick [14-07-26 11:28]: > >> On Saturday 26 Jul 2014 02:49:15 meino.cramer@gmx.de wrote: > >>> Hi, > >>> > >>> After running smartctl for an extended offline test I got > >>> a badblock (information extracted from the report): > >>> > >>> SMART Self-test log structure revision number 1 > >>> Num Test_Description Status Remaining LifeTime(= hours) > >>> 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 > >>> > >>> I found a explanation to map the LBA to a partition here: > >>> http://smartmontools.sourceforge.net/badblockhowto.html > >>> > >>> My partition layout is: > >>> #> sudo fdisk -lu /dev/sda > >>> > >>> 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 > >>> > >>> Device Boot Start End Blocks Id System > >>> /dev/sda1 * 2048 104447 51200 83 Linux > >>> /dev/sda2 104448 12687359 6291456 82 Linux swap / Sola= ris > >>> /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 > >>> > >>> > >>> Following the linked document... > >>> It seems the bad LBA is not on the checked harddisk. > >>> > >>> Or (more obvious) I did something wrong... > >> You are probably comparing different units. The Start and End of fdis= k 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. > >> > >> --=20 > >> Regards, > >> Mick > > > > Sorry for stuutering postings...overlocked this one: > > #>dd if=3D/dev/zero of=3D/dev/sda2 bs=3D512 conv=3Dnotrunc > > dd: error writing =E2=80=98/dev/sda2=E2=80=99: Input/output error > > > > Hrrrmpfff... > > > > Why does it nt remap those ones? > > > > Best regards, > > mcc > > > > > > > > > > > > > > > smartctl -a /dev/sda >=20 > without those information: crystal ball. >=20 > that said: it is swap. You shouldn't have to do anything. Don't touch dd. >=20 >=20 >=20 I ask since only the FIRST bad sector is reported...: =2E..Since I have a read error in te very beginning of my hardisk... Does this mean, that all coming smartcontrol tests will fail early and the rest of the disc is NOT tested then? best regards, mcc