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 D580813877A for ; Tue, 29 Jul 2014 10:28:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 278A2E0904; Tue, 29 Jul 2014 10:28:03 +0000 (UTC) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E1387E08BF for ; Tue, 29 Jul 2014 10:28:01 +0000 (UTC) Received: by mail-wg0-f50.google.com with SMTP id n12so8702239wgh.9 for ; Tue, 29 Jul 2014 03:27:58 -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:cc :mime-version:content-type:content-transfer-encoding:message-id; bh=n/tWcL15/3WsIPzh1XpTUGUcZ8BghfZShei3SuzDrLg=; b=YSB+hc/EG+t0tPduRmJ++7LY1tCdRyqGDo+D5gRCGllp1FJ3Fz9nuhPytmeMssYSbt hVxBVKT8sFLVlex3IFdvn2jX0vff56Gg+MHlnbRfKji5T/yUD3klOjsTSDAOtVLqX+DE ZL3U100vWT71RHFBsPKAap/mmUvvrl6cY/QNPbVZp1DJrsksB31M8LRCAKGXccJUNcaV o9+1HUo53jHTXAxexreE10fvGB0xjFlFa61glrACmbXnSrKvkmTwBC24MBibPaNspxsR aTQGAA4TRHE340HJjNrlry7dGIvM+zJ26ixUl8Cg92XknGQb5kOvdVzvWSBn42PhB0GV akww== X-Received: by 10.194.5.103 with SMTP id r7mr1731025wjr.41.1406629678519; Tue, 29 Jul 2014 03:27:58 -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 20sm56465734wjt.42.2014.07.29.03.27.56 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 29 Jul 2014 03:27:57 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Contradictionary behaviour of SMART on hds ?!? Date: Tue, 29 Jul 2014 11:27:37 +0100 User-Agent: KMail/1.13.7 (Linux/3.12.21-gentoo-r1; KDE/4.12.5; x86_64; ; ) References: <20140727101247.GA3817@solfire> <201407271534.18932.michaelkintzios@gmail.com> <20140727165049.GD16178@solfire> In-Reply-To: <20140727165049.GD16178@solfire> Cc: meino.cramer@gmx.de 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="nextPart1618145.dKIOLPzXrn"; protocol="application/pgp-signature"; micalg=pgp-sha256 Content-Transfer-Encoding: 7bit Message-Id: <201407291127.50651.michaelkintzios@gmail.com> X-Archives-Salt: f42b3c4a-da42-4c35-bb05-2ea33063f9e8 X-Archives-Hash: 38b9080726050f7487aa49fcf7ba5126 --nextPart1618145.dKIOLPzXrn Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Sunday 27 Jul 2014 17:50:49 meino.cramer@gmx.de wrote: > I executed the mkswap/dd combo a several times today. Since I have > no logs I repeated again. Here are the results: >=20 > solfire:/home/user>mkswap -L swap -f -c /dev/sda2 > 1 bad page > mkswap: /dev/sda2: warning: wiping old swap signature. > Setting up swapspace version 1, size =3D 6291448 KiB > LABEL=3Dswap, UUID=3De742c0a6-862c-41e9-be4b-698b33c5a236 > solfire:/home/user>dd if=3D/dev/zero of=3D/dev/sda2 bs=3D512 conv=3Dnotru= nc > dd: error writing =E2=80=98/dev/sda2=E2=80=99: Input/output error > 1669369+0 records in > 1669368+0 records out > 854716416 bytes (855 MB) copied, 28.4799 s, 30.0 MB/s > [1] 24047 exit 1 dd if=3D/dev/zero of=3D/dev/sda2 bs=3D512 conv=3D= notrunc > solfire:/home/user> Ahh! This is a different result to what you showed previously, unless you= =20 chopped off the output last time. It now shows that it was able to write: 1669368 x 512 =3D 854,716,416 bytes=20 out of a total sda2 partition size of 6.29 GiB. > I am a little anxious about the hdparm command... > For me it is unclear what sector is meant: >=20 > smartclt says: > Num Test_Description Status Remaining LifeTime(hour= s) > LBA_of_first_error # 1 Selective offline Completed: read failure = =20 > 90% 14500 4288352511 >=20 > From a previous posting I learned that "LBA" in this case is the byte > counter. >=20 > The sector is therefore 4288352511/512=3D8375688 OK, let's not confuse ourselves: LBA counting starts from zero. Therefore, if you subtract the start of the sda2 partition it becomes: 4288352511 - 104448 =3D 4288248063 / 512 =3D 8,375,484.5 bytes, within the = sda2=20 partition. Unless my maths failed me above, I can't say I understand why dd bailed out= =20 after writing 854,716,416 bytes, but smartctl failed earlier than that read= ing=20 just 8,375,484.5 bytes. Perhaps dd can write further, than what smartctl c= an=20 read without error, because these are two different mechanisms - but I am=20 guessing wildly. :-) Someone more knowledgeable should chime in here. PS. I'm copying you in just in case this is lost in your Inbox - I had to=20 resend it because I used the wrong From address by mistake and I suspect it= =20 never made it to the list. =2D-=20 Regards, Mick --nextPart1618145.dKIOLPzXrn Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAABCAAGBQJT13cmAAoJELAdA+zwE4YeJTMIAIkw/tePt873zu8mo/WExZoc Mtsbb7nyo8897WwHPQKLIBru0VJkqGj5DEB3huLupo3knMMmIoMCdHbK7eacZ626 dCLsOdv9YaFGf90JM4NCSRW0GLQEc6Nsme3LKscdaItu6UWWae8p9Cptw2NIcCF9 /decp5OA0EoL04iZ18EqxuK87tue2l9xcLMSC6jUwJfZmVJEaUuSk14wGU2SveqY oT3G1TKgrJ22IVPAnssDzQ/6LkkQqcNJMLgWxPPqqAoyvy84icjQDBJjKe/mGwEv vQrORW3qB5vy83pO5zj0FdiV0MUhfStKxaL8qpiBnUhnwFJ6G161/WIygRhJ9Yc= =hIG6 -----END PGP SIGNATURE----- --nextPart1618145.dKIOLPzXrn--