Date: Sun, 2 Oct 2022 00:45:37 +0100 From: Graham Perrin <grahamperrin@freebsd.org> To: freebsd-hackers@freebsd.org Subject: Re: Block sizes for dd(1) to USB memory sticks (flash drives) for installers for FreeBSD Message-ID: <49157a68-f015-d7fb-8b78-759e1b089359@freebsd.org> In-Reply-To: <3ea35f4d-8efa-cf93-d462-0d8ce997b7aa@freebsd.org> References: <1cede94a-c114-17fa-a81c-bb58c2b5879c@freebsd.org> <3ea35f4d-8efa-cf93-d462-0d8ce997b7aa@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------VdNCbriUloTrUNMwJK6b3QF9 Content-Type: multipart/mixed; boundary="------------dlbrzUWdMTjIlneUuu5O5HnO"; protected-headers="v1" From: Graham Perrin <grahamperrin@freebsd.org> To: freebsd-hackers@freebsd.org Message-ID: <49157a68-f015-d7fb-8b78-759e1b089359@freebsd.org> Subject: Re: Block sizes for dd(1) to USB memory sticks (flash drives) for installers for FreeBSD References: <1cede94a-c114-17fa-a81c-bb58c2b5879c@freebsd.org> <3ea35f4d-8efa-cf93-d462-0d8ce997b7aa@freebsd.org> In-Reply-To: <3ea35f4d-8efa-cf93-d462-0d8ce997b7aa@freebsd.org> --------------dlbrzUWdMTjIlneUuu5O5HnO Content-Type: multipart/alternative; boundary="------------3uXyoRfMS9Vn0oCCEsUCCNkk" --------------3uXyoRfMS9Vn0oCCEsUCCNkk Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 T24gMzAvMDkvMjAyMiAxNzozMywgQ3JhaWcgTGVyZXMgd3JvdGU6DQo+IE9uIDkvMzAvMjIg MDA6MjYsIEdyYWhhbSBQZXJyaW4gd3JvdGU6DQo+PiA8aHR0cHM6Ly93d3cuZnJlZWJzZC5v cmcvcmVsZWFzZXMvMTMuMVIvYW5ub3VuY2UvI19hdmFpbGFiaWxpdHk+IGFuZCANCj4+IGVs c2V3aGVyZToNCj4+DQo+PiBicz0xbQ0KPj4NCj4+IFdoeSBzbyBzbWFsbD8NCj4+DQo+PiBJ IGZpbmQgdGhpbmdzIG11Y2ggZmFzdGVyIHdpdGggYSBsYXJnZXIgYmxvY2sgc2l6ZS4gSXMg dGhpcyBteSANCj4+IGltYWdpbmF0aW9uPw0KPg0KPiBJIHJhcmVseSB1c2UgZGQgYWZ0ZXIg bGVhcm5pbmcgYWJvdXQgcmVjb3ZlcmRpc2soMSkuIEJ1dCBJIHNlZSB3aHkgZGQgDQo+IHdv dWxkIGJlIHJlZmVyZW5jZWQgaW4gaW5zdGFsbGF0aW9uIGluc3RydWN0aW9ucyAoZS5nLiBz d2l0Y2hpbmcgZnJvbSANCj4gYSBsaW51eCBkaXN0cm8pLg0KPg0KPiDCoMKgwqDCoMKgwqDC oCBDcmFpZw0KDQoNCkV2aWRlbnRseSwgdGhlIGRpZmZlcmVuY2UgaW4gc3BlZWQgd2FzIG15 IGltYWdpbmF0aW9uLg0KDQpJIGZvdW5kIGxlc3MgdGhhbiBvbmUgc2Vjb25kIGRpZmZlcmVu Y2UgYmV0d2VlbiB0aGVzZSB0d28gY29tbWFuZHM6DQoNCnRpbWUgcmVjb3ZlcmRpc2sgLXYg RnJlZUJTRC0xMy4xLVJFTEVBU0UtYW1kNjQtZHZkMS5pc28gL2Rldi9kYTMNCg0KdGltZSBn ZGQgaWY9RnJlZUJTRC0xMy4xLVJFTEVBU0UtYW1kNjQtZHZkMS5pc28gb2Y9L2Rldi9kYTMg DQpzdGF0dXM9cHJvZ3Jlc3MgY29udj1zeW5jIGJzPTEwTQ0KDQpyZWNvdmVyZGlzaygxKSBp cyBhIGdyZWF0IGhpbnQuIFRoYW5rcy4NCg0K --------------3uXyoRfMS9Vn0oCCEsUCCNkk Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <html data-lt-installed=3D"true"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF= -8"> </head> <body> <div class=3D"moz-cite-prefix">On 30/09/2022 17:33, Craig Leres wrote= :<br> </div> <blockquote type=3D"cite" cite=3D"mid:3ea35f4d-8efa-cf93-d462-0d8ce997b7aa@freebsd.org">On 9/30/22 00:26, Graham Perrin wrote: <br> <blockquote type=3D"cite"><a class=3D"moz-txt-link-rfc2396E" href=3D= "https://www.freebsd.org/releases/13.1R/announce/#_availability"><http= s://www.freebsd.org/releases/13.1R/announce/#_availability></a> and elsewhere: <br> <br> bs=3D1m <br> <br> Why so small? <br> <br> I find things much faster with a larger block size. Is this my imagination? <br> </blockquote> <br> I rarely use dd after learning about recoverdisk(1). But I see why dd would be referenced in installation instructions (e.g. switching from a linux distro). <br> <br> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Craig <br> </blockquote> <p><br> </p> <p>Evidently, the difference in speed was my imagination. <br> </p> <p>I found less than one second difference between these two commands: <br> </p> <p>time recoverdisk -v FreeBSD-13.1-RELEASE-amd64-dvd1.iso /dev/da3</= p> <p>time gdd if=3DFreeBSD-13.1-RELEASE-amd64-dvd1.iso of=3D/dev/da3 status=3Dprogress conv=3Dsync bs=3D10M</p> <p>recoverdisk(1) is a great hint. Thanks. <br> </p> </body> <lt-container></lt-container> </html> --------------3uXyoRfMS9Vn0oCCEsUCCNkk-- --------------dlbrzUWdMTjIlneUuu5O5HnO-- --------------VdNCbriUloTrUNMwJK6b3QF9 Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEWT/lssMHB+28ly8Kt2dIb0oY1AsFAmM40SEFAwAAAAAACgkQt2dIb0oY1AuC kA/+O6qLmn/LCKvj6qfGxFR5XsiM0La/Du5l4bZ8EU4mPwy+CnQcZqYdP7XAVnD5BqhjDye1ced5 /wAc0x/Yk1l/IBWkyf9Rs0GrNAo92O4SCH2AhYtiwrH5xpCa/1BvM3dVXaJcQYlpF1HrmFwkoDhB VNKxTBKqNCZuvZcXYM2nqiGhVhn016mWdqsMk7JqCJk486SBweh4PXHiJqIuCj8STdI/6E9hWFSk BSu8/dacx42ihRfnuosOOkm7kOTGKEiKeeVDMkaIRWA7UAxC5UfTIP3+bZk/tqN88DruRqAMv6Bz YilRpnShgu3sKA/S81esccBUJyTQEl5r2EMdzA6EB646xebe6lZ1tXjcz7ft8wAC3ZSu2MVaGwv7 XD7JFUy2ce7r308surYTXc1xDjbCrc02dcxKXwBKLmuOezFe7oPVirmwZ3jX43NUOg8m0FRzg9Zt ESAnXjYVdwQbk7E1foblniLcp7U1ixevXbJc6gWXaSdOPR1Y0fDwOD3oX/UC07vd/qabqGt+zaWU X4P5NN+DC7daOn6GP6lARQCUx6kpXeyZxfZpil9bqNhTFVXJtavuWcwHoUcsyVm/bar/Ow5K4Lmd eF89r7rmG6/PMZRXrFko5ex5cqns1p/KVV3EyYXsfWljB+UykJ7pKDuni1e+YihUCqSOAtwcuJhk 0wo= =d97j -----END PGP SIGNATURE----- --------------VdNCbriUloTrUNMwJK6b3QF9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49157a68-f015-d7fb-8b78-759e1b089359>