swanwish / blog

My blog website
0 stars 0 forks source link

Copy raspberry img file to SD card #40

Open swanwish opened 7 years ago

swanwish commented 7 years ago

where disk is your BSD name e.g. sudo dd bs=1m if=2017-09-07-raspbian-stretch.img of=/dev/rdisk4 conv=sync

This may result in a dd: invalid number '1m' error if you have GNU coreutils installed. In that case, you need to use a block size of 1M in the bs= section, as follows:

sudo dd bs=1M if=image.img of=/dev/rdisk<disk# from diskutil> conv=sync

This will take a few minutes, depending on the image file size. You can check the progress by sending a SIGINFO signal (press Ctrl+T).

If this command still fails, try using disk instead of rdisk, for example:

sudo dd bs=1m if=2017-09-07-raspbian-stretch.img of=/dev/disk4 conv=sync

or

sudo dd bs=1M if=2017-09-07-raspbian-stretch.img of=/dev/disk4 conv=sync