From b5f36e84d14a8ac695e306611340435ac448b7ed Mon Sep 17 00:00:00 2001 From: Jeppe Fihl-Pearson Date: Wed, 30 Mar 2022 21:07:20 +0100 Subject: [PATCH] Add block size to dd command Without configuring the block size a default of 512 bytes is used, which can slow down the transfer speed massively. In a test I've done with a semi-decent USB stick, I only get a transfer speed of around 180 KB/sec when not specifying the block size but see 27 MB/sec when setting the block size to 1 MB. This makes the transfer of the minimal installation ISO take half a minute instead of an hour. --- .../doc/manual/from_md/installation/installing-usb.section.xml | 2 +- nixos/doc/manual/installation/installing-usb.section.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/doc/manual/from_md/installation/installing-usb.section.xml b/nixos/doc/manual/from_md/installation/installing-usb.section.xml index b46a1d56555..df266eb1680 100644 --- a/nixos/doc/manual/from_md/installation/installing-usb.section.xml +++ b/nixos/doc/manual/from_md/installation/installing-usb.section.xml @@ -17,7 +17,7 @@ $ diskutil list [..] $ diskutil unmountDisk diskN Unmount of all volumes on diskN was successful -$ sudo dd if=nix.iso of=/dev/rdiskN +$ sudo dd if=nix.iso of=/dev/rdiskN bs=1M Using the 'raw' rdiskN device instead of diff --git a/nixos/doc/manual/installation/installing-usb.section.md b/nixos/doc/manual/installation/installing-usb.section.md index ae58c08e523..d893e22e638 100644 --- a/nixos/doc/manual/installation/installing-usb.section.md +++ b/nixos/doc/manual/installation/installing-usb.section.md @@ -18,7 +18,7 @@ $ diskutil list [..] $ diskutil unmountDisk diskN Unmount of all volumes on diskN was successful -$ sudo dd if=nix.iso of=/dev/rdiskN +$ sudo dd if=nix.iso of=/dev/rdiskN bs=1M ``` Using the \'raw\' `rdiskN` device instead of `diskN` completes in