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 A226413877A for ; Sat, 26 Jul 2014 12:16:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 73945E0BAB; Sat, 26 Jul 2014 12:16:36 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (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 3AF07E0BA0 for ; Sat, 26 Jul 2014 12:16:35 +0000 (UTC) Received: from localhost ([84.133.163.187]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0M1nbu-1WLnC70B6g-00toa0 for ; Sat, 26 Jul 2014 14:16:33 +0200 Date: Sat, 26 Jul 2014 14:16:32 +0200 From: meino.cramer@gmx.de To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] [OT] Badblocks on my harddisk Message-ID: <20140726121632.GA5406@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:GjwQtIlwnsPt3EAy7j70b+bxA1J1lQa6qZopANbzXGpWpaaWCA+ Q7JisThZ1olKPFfkCStpfa9rtogPVg94+sSu4dv/Sn/52wWgg3Z1LaMOV2iS/4onFt2ejt4 0+8IKwngKPfOoAOxKBGMNbbhBP1plh9ggSwEaeutLTZAFri5gdLjGaHg9LiGlAM9TUYbk+9 7f7fP9Lwphll6cLpUohLQ== X-Archives-Salt: d5a609da-852b-4c54-b51b-0de711570eec X-Archives-Hash: 409890f6c922adb77d14892fed6ac24b 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 Hi Volker, what happens if swapped is used and the write access tapped on the bad area? Here is the output of smartctl: smartctl 6.1 2013-03-16 r3800 [x86_64-linux-3.14.13-RT] (local build) Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org =3D=3D=3D START OF INFORMATION SECTION =3D=3D=3D Model Family: Western Digital Caviar Green (AF) Device Model: WDC WD10EARS-00Y5B1 Serial Number: WD-WMAV51276611 LU WWN Device Id: 5 0014ee 001f5fb47 Firmware Version: 80.00A80 User Capacity: 1,000,204,886,016 bytes [1.00 TB] Sector Size: 512 bytes logical/physical Device is: In smartctl database [for details use: -P show] ATA Version is: ATA8-ACS (minor revision not indicated) SATA Version is: SATA 2.6, 3.0 Gb/s Local Time is: Sat Jul 26 14:16:19 2014 CEST SMART support is: Available - device has SMART capability. SMART support is: Enabled =3D=3D=3D START OF READ SMART DATA SECTION =3D=3D=3D SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x84) Offline data collection activity was suspended by an interrupting command from host. Auto Offline Data Collection: Enabled. Self-test execution status: ( 121) The previous self-test completed ha= ving the read element of the test failed. Total time to complete Offline=20 data collection: (19380) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine=20 recommended polling time: ( 2) minutes. Extended self-test routine recommended polling time: ( 223) minutes. Conveyance self-test routine recommended polling time: ( 5) minutes. SCT capabilities: (0x3031) SCT Status supported. SCT Feature Control supported. SCT Data Table supported. SMART Attributes Data Structure revision number: 16 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED = WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always = - 0 3 Spin_Up_Time 0x0027 129 113 021 Pre-fail Always = - 6508 4 Start_Stop_Count 0x0032 097 097 000 Old_age Always = - 3957 5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always = - 0 7 Seek_Error_Rate 0x002e 200 200 000 Old_age Always = - 0 9 Power_On_Hours 0x0032 081 081 000 Old_age Always = - 14476 10 Spin_Retry_Count 0x0032 100 100 000 Old_age Always = - 0 11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always = - 0 12 Power_Cycle_Count 0x0032 097 097 000 Old_age Always = - 3808 192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always = - 324 193 Load_Cycle_Count 0x0032 196 196 000 Old_age Always = - 14602 194 Temperature_Celsius 0x0022 115 101 000 Old_age Always = - 32 196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always = - 0 197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always = - 1 198 Offline_Uncorrectable 0x0030 200 200 000 Old_age Offline = - 1 199 UDMA_CRC_Error_Count 0x0032 200 197 000 Old_age Always = - 13300 200 Multi_Zone_Error_Rate 0x0008 200 200 000 Old_age Offline = - 1 SMART Error Log Version: 1 No Errors Logged SMART Self-test log structure revision number 1 Num Test_Description Status Remaining LifeTime(hours)= LBA_of_first_error # 1 Conveyance offline Completed: read failure 90% 14472 = 4288352511 # 2 Extended offline Completed: read failure 90% 14460 = 4288352511 # 3 Extended offline Completed without error 00% 13954 = - # 4 Short offline Completed without error 00% 13935 = - # 5 Extended offline Completed without error 00% 7051 = - # 6 Extended offline Completed without error 00% 2205 = - # 7 Short offline Completed without error 00% 463 = - SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay. Best regards, mcc