From owner-freebsd-questions@freebsd.org Mon Jul 10 20:18:46 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EC077DB03A5 for ; Mon, 10 Jul 2017 20:18:46 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE70B76CD7 for ; Mon, 10 Jul 2017 20:18:46 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [88.217.115.188] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1dUf8l-0001Zd-55 for freebsd-questions@freebsd.org; Mon, 10 Jul 2017 22:18:43 +0200 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id v6AKIgfJ002311 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 10 Jul 2017 22:18:42 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id v6AKIgv3002310 for freebsd-questions@freebsd.org; Mon, 10 Jul 2017 22:18:42 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Mon, 10 Jul 2017 22:18:42 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Re: Fwd: Re: Unusual Question Message-ID: <20170710201842.GA2244@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-questions@freebsd.org References: <156b5695-1cbf-c5fa-be49-ff52da58ba0f@rogers.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.115.188 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jul 2017 20:18:47 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El d=C3=ADa lunes, julio 10, 2017 a las 03:16:31p. m. -0400, Mike Jeays esc= ribi=C3=B3: > On 17-07-10 01:38 PM, Polytropon wrote: >=20 > > On Mon, 10 Jul 2017 17:36:19 +0200, Matthias Apitz wrote: > >> The OP should just compile an own version of dd(1) which punches lets = say > >> every thousand blocks the current block number to see how far (or bett= er > >> how less) it will walk through before the kernel halts/crashes. > > To extend this idea: > > > > I'd add a few continuous diagnostic messages (comparable to > > the ^T status display), so when the SSH connection finally > > drops, it's possible to see how far the dd process went. :-) >=20 > dd can be made to report its status by sending the kill command USR1. >=20 > See man dd. You could send one every minute via cron. You can assume that I do know dd(1) and its man page. I just do not think that it will work on a system and kernel being overwritten with zeros, running somethings like cron jobs (as you suggest) or shell loops of sleep and kill pid. Adding a fprintf(stderr, ....) to the source of dd is better, don't you think so? matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ =E2=98=8E +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub 8. Mai 1945: Wer nicht feiert hat den Krieg verloren. 8 de mayo de 1945: Quien no festeja perdi=C3=B3 la Guerra. May 8, 1945: Who does not celebrate lost the War. --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAllj4RkACgkQR8z35Hb+ nRGQRg//RyOqkpbFQKcuhHFniJqStRclb6nRsK8qcPeFnQ/SZa10k9H5/yP9ypVP jiXNnwXPvmcdXQ4lFJr4jT8PNm2CS5t4Rb8tTjyvpeUyZ2nbHt+7zjAJehtm8YO1 vUV1COFnmj7gMqFUhQslCQOXdhradOpq4M025UerxgOSBukpDpHp23eHxdT1iPS0 dOA7SZBQdBYasaspuoasHc5yH7JAQlxYj802EjFMc3Q5XRjbmK0v1C+vK4NbqpEw USbyOZv9tdT9TrOvCENEurrhWNFM3D9uGZ/PJWqu+XJpvJisEiqFeNM0OKmOLmy1 hgCzl8NXwqG6q0LKczuLYBBDrWu4e8hzYJ81Nixw8R7DMuzn6eUc6X+5zqv/PTeO ENJUGpCDlxus7swek5kU6wFoOvG0QirVEP1lL5/20EXdv9rrLSC4kY5JjOrp/vYO 1Jh48WnljH4Bsf3Q6T3GW0Z4EG3uC7T+6JyuPOABkS1MRhoXyfqWGh5FD3d/4aHB nvOS+fPK4d7TrDxh7rELsJWirtRdPAMrn3jrx451mkpoHfdAfrIv2oU+ndR3cnsm p1rJAtaJ6wFJQ6V7+hjZ6bkW2lFQw85FmsMIwGlu0IYm+vrU+7Libnj7RuLu/LEp Q532CaAJXByyaYvbvfX69JIQCW9vvX8zJbh8JeEPxJmhfKQqmH8= =Y8cT -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--