From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 31C951382C5 for ; Mon, 22 Jun 2020 01:52:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB72EE0898; Mon, 22 Jun 2020 01:52:20 +0000 (UTC) Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7CAADE0872 for ; Mon, 22 Jun 2020 01:52:20 +0000 (UTC) Received: by mail-pl1-x634.google.com with SMTP id n2so6871239pld.13 for ; Sun, 21 Jun 2020 18:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jsteward.moe; s=google; h=from:to:references:in-reply-to:subject:date:message-id:thread-index :content-language:mime-version; bh=TKzKrl9QED8eleNmq6eDwmJg0Fmg8i7w0JRwWBRoD+8=; b=fQs1/jzM3RroCFnPq2DpR+hMIMj/q6/65IJfHKw8UR6T7nGHTg3+aKuL7v5mNzs4gW R1W5UJ1QbmsFG/0k9KdUuOMLWzafKknXpzmW8W9Z29QwTIdFcAFCCNW/v1aPiCjxVMos G2L4+DoXYaXWxGzdvZjNDqKUPpioukfCrzbvamc2OQ2cHp67r+ZV0moPBYXOczKM0zR7 380AsGQtS3rjLWoyew2gvsvfQmTbJDNX4FxyFgSWPmqR+0Fu8g8cPZID10L8A0idoooX 8se5/UBAAD8QQVSDDmVevJRwLX1Iy8cNKc1DbvcLbAagaNyuk8N3JbpnILFZnOW+SFtj Rs7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:thread-index:content-language:mime-version; bh=TKzKrl9QED8eleNmq6eDwmJg0Fmg8i7w0JRwWBRoD+8=; b=Zb/uHVVHMrjqH9Y/QHL2oZDSgpO5EXdK8JkaZE7OQaJWkWsQy1lkoTrUjz5y7Bti+Y RRfjZacVWq1/sEQLoK3UVPWqi8xQjv+UF0eC3gi7UUmdQbGvN5kttuaHhXmcpsYLVD9h 6j90H0LbSvlxTq9mmSJcUEfVjX4XrN/sEFPdc1EEE1VH000y8nd+q7EAEMxXZdW2b0iV Srsf47tUf1N48Wz60STgqOymZZPuGRY8k5pmEp3fTJQeyKbetWIw3jbfsh/0fvJnjUkv P9quPZ/tNiMYYYf6fuVL7J/J0G1jBgxNEYG4iPe6UiYkVEHWEomH9avVovjESc4s7mAU 1c0g== X-Gm-Message-State: AOAM532hfgougDXWyYXrkalhH2QGOqsc3zLZs33XWUQaFJbAy8TWVUsw NEL5ELL4d08tvlFuAUvdQXqPfqCeXapSeX45 X-Google-Smtp-Source: ABdhPJy46Zm07bWbm3hwC41jxm2P+UfQX0LxAkWIgT08r0Kyz5BwmMJI2dv84ZLlmuULNeAdc3tAXg== X-Received: by 2002:a17:902:6b87:: with SMTP id p7mr16176163plk.275.1592790739033; Sun, 21 Jun 2020 18:52:19 -0700 (PDT) Received: from KAGE ([2400:8901:e001:ab:4c2a:f0f0:ee00:3]) by smtp.gmail.com with ESMTPSA id s41sm12483120pjc.51.2020.06.21.18.52.17 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Jun 2020 18:52:18 -0700 (PDT) From: "Pengcheng Xu" To: References: <6d77acb3-5754-06cb-b8ef-2f1a5d7d8084@gmail.com> <20200615231836.xje3kkkihsxrvhaz@grusum.endjinn.de> <91bbab90-88b1-47ac-3c80-a8a842b5b48f@gmail.com> In-Reply-To: <91bbab90-88b1-47ac-3c80-a8a842b5b48f@gmail.com> Subject: RE: [gentoo-user] Testing a used hard drive to make SURE it is good. Date: Mon, 22 Jun 2020 09:52:15 +0800 Message-ID: <00f401d64837$c28efc00$47acf400$@jsteward.moe> X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQEHZfGtLoFzK2elGnTDsl9bGmQQYwImy70/Ah0oDFaqX4MUcA== Content-Language: ja 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 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=0rhcBAteTJWNAQ=-="; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Archives-Salt: 0b998ac2-a71f-4eb5-91ca-510fc8e82ae4 X-Archives-Hash: 289bb3b303cca883b363e4195ca4799e This is a multipart message in MIME format. --=-=0rhcBAteTJWNAQ=-= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I'm wondering that who's email client is broken, yours or mine? I'm seeing= a lot of U+FFFD replacement characters in this email, like, behind every s= top punctuation ("?", ".", and ")"), but not in your other emails on the li= st. Regards, --=20 Pengcheng Xu https://jsteward.moe > -----Original Message----- > From: Dale > Sent: Thursday, June 18, 2020 5:14 PM > To: gentoo-user@lists.gentoo.org > Subject: Re: [gentoo-user] Testing a used hard drive to make SURE it is g= ood. >=20 > David Haller wrote: >=20 >=20 > Hello, >=20 > On Mon, 15 Jun 2020, Dale wrote: > [..] >=20 > While I'm at it, when running dd, I have zero and random in /dev.=EF=BF= =BD > Where > does a person obtain a one?=EF=BF=BD In other words, I can write all ze= ros, > I > can write all random but I can't write all ones since it isn't > in /dev.=EF=BF=BD > Does that even exist?=EF=BF=BD Can I create it myself somehow?=EF=BF=BD= Can I > download > it or install it somehow?=EF=BF=BD I been curious about that for a good > long > while now.=EF=BF=BD I just never remember to ask.=EF=BF=BD >=20 >=20 > I've wondered that too. So I just hacked one up just now. >=20 > =3D=3D=3D=3D ones.c =3D=3D=3D=3D > #include > #include > #include > static unsigned int buf[BUFSIZ]; > int main(void) { > unsigned int i; > for(i =3D 0; i < BUFSIZ; i++) { buf[i] =3D (unsigned int)-1; } > while( write(STDOUT_FILENO, buf, sizeof(buf)) ); > exit(0); > } > =3D=3D=3D=3D >=20 > Compile with: > gcc $CFLAGS -o ones ones.c > or > gcc $(portageq envvar CFLAGS) -o ones ones.c >=20 > and use/test e.g. like >=20 > ./ones | dd of=3D/dev/null bs=3D8M count=3D1000 iflag=3Dfullblock >=20 > Here, it's about as fast as >=20 > cat /dev/zero | dd of=3D/dev/null bs=3D8M count=3D1000 iflag=3Dfullb= lock >=20 > (but only about ~25% as fast as > dd if=3D/dev/zero of=3D/dev/null bs=3D8M count=3D1000 iflag=3Dfullbl= ock > for whatever reason ever, but the implementation of /dev/zero is > non-trivial ...) >=20 > HTH, > -dnh >=20 >=20 >=20 > I got it to compile, at least it created a file named ones anyway.=EF=BF= =BD What I'm > unclear about, where is the if=3D for dd in the command?=EF=BF=BD All the= commands I've > seen before has a if=3D and a of=3D.=EF=BF=BD The if for input and of for= output or target.=EF=BF=BD > I'm assuming that if I want to target sdb, I'd replace null with /dev/sdb= .=EF=BF=BD >=20 > As I've posted before, even my scripting skills are minimal.=EF=BF=BD Sur= prised I got > it to compile even.=EF=BF=BD lol=EF=BF=BD Just trying to make sure I don'= t mess up something.=EF=BF=BD > I placed all this in the /root directory.=EF=BF=BD I'm assuming I can cop= y paste the > commands above while in /root to make it work?=EF=BF=BD I'm asking becaus= e I haven't > tried it yet.=EF=BF=BD >=20 > Thanks. >=20 > Dale >=20 > :-)=EF=BF=BD :-)=EF=BF=BD >=20 >=20 --=-=0rhcBAteTJWNAQ=-= Content-Type: application/pgp-signature; name="openpgp-digital-signature.asc" Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEDwqrvuDZbn+NMYrRObYNsFSJJP8FAl7wDsgACgkQObYNsFSJ JP/H+RAAphozic5wlSaqw2Z0p4ShoX71ZCcHhBfRRK1JdGL26+WP7ADrYRqQ65hy thOIK2noJEpwcu/GE0mRM57G15pJ0ebxDiAi5ABfbGoD8Up5L8muiqpm0bRzGdhl cBrWMKCySky2f+stY+QF5HYADg6Ju07c2coHbYCxDQ/yhVqtRLyz1yXAgMG4lL+z lXcVrCiscN3mmHgwtyF+5QCQJvCzv7YajPSGCkArvRO1XB8ZcxWRLO63nocNDRg4 SLiqd9TspMpynrkjDThapzRZL6Bzjbmt36ixpVC+xvSULXQBZRb2OBBBa4iH/bD5 7xQ1nV8v6wm7yj/tAFfho0/xRVLXaKELjByFrmymOkveywxPObeD/08VClZ4yfta r5sst9UY2BNEBTktIGlHfT54YPKyXv44Sx9rVkiQw5wxRmhCU5jX2+kpfgDp2S7I 6iUpbHYfMwP607fBDjinScMkZlizeijpZUaJMdYKcYY8XkyA+D0casonkvmAEJDf R+jAWsh8RbDo+kqofVS/5xWsd/VZ7kG55MZNMaGww4IIjI6ef1MQjetWTxTJ2qNu ucb79EZTcbom+7hJ3SR0Y9Fdo18wXWUa1JVS1dKiolgpltQjafmhMzG6toMHTxwU R3NXmmQ98pWvL+L1sgMG0XHZyU9K/De3UDe/DWWUm4C+RhR6hEg= =itCg -----END PGP SIGNATURE----- --=-=0rhcBAteTJWNAQ=-=--