Create SD card from img file

 

Create SD card from img file

This is an archived documentation. It won't be updated anymore and it might not be accurate anymore.

General

  • The disk images we are providing are compressed ZIP files. You have to extract the image file first using an unzip program. It will extract a file with the extension “.img”.

Windows

  • Download Windiskimager.
  • Insert your SD Card and then run Win32DiskImager.exe. It may give an error message on startup, but you can often ignore it.
  • It should find your SD Card drive or if not select it.
  • Select the file ‘#.img’ image file you wish to use and then press write.
  • Once it completes, remove the SD card.

Linux

  • Insert the SD card.
  • Depending on your Linux distribution, you may need to unmount the file systems on the SD card. Consult the manual or check the specifics on how to do this with the developers of your Linux distribution.
  • Use the “dd” command:
    dd if=xxxx.img of=/dev/diskX (replace xxxx.img with the name of your image file and diskX with the correct disk)
  • Remove the SD card.

MacOS

  • Insert the SD card.
  • Find the SD card using diskutil
    diskutil list
  • Unmount SD card using diskutil
    diskutil unmountdisk diskX

    (replace X with the correct number you found in the last step)

  • Use dd to write the image to the SD card.
    Attention: Make sure you write to the correct device. Writing to the wrong device can destroy data on your computer!

    sudo dd if=xxxx.img of=/dev/diskX

    (replace xxxx.img with the name of your image file and diskX with the correct disk)
    Note that depending on the speed of your SD card, this can take a long time (with slow SD cards, even more than an hour).

  • Unmount SD card using diskutil
    diskutil unmountdisk diskX

    (replace X with the correct number you found in the last step)

  • Remove the SD card.
Last updated: October 4, 2019