Date: Mon, 10 Jul 2017 22:18:42 +0200 From: Matthias Apitz <guru@unixarea.de> To: freebsd-questions@freebsd.org Subject: Re: Fwd: Re: Unusual Question Message-ID: <20170710201842.GA2244@c720-r314251> In-Reply-To: <ec00a0f6-21ca-7c40-a62b-7df60ed8071e@rogers.com> References: <156b5695-1cbf-c5fa-be49-ff52da58ba0f@rogers.com> <ec00a0f6-21ca-7c40-a62b-7df60ed8071e@rogers.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170710201842.GA2244>