Home > Raspberry Pi > How to write an image out to SD card using DD

How to write an image out to SD card using DD

Here’s my quick n dirty reminder on how to write out an image for my Raspberry Pi to an SD card in my Mac (but should work for any version of Linux).

The steps are simple:

  1. Put the SD card in, and find out what device it has been assigned to
  2. Unmount it
  3. Write the image out to the SD card

Find out which disk device we should be writing to with:

diskutil list
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *250.1 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                  Apple_HFS Untitled                249.2 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *15.9 GB    disk1
   1:             Windows_FAT_32                         73.4 MB    disk1s1
   2:                      Linux                         7.9 GB     disk1s2

unmount the disk with something like this

diskutil umount /dev/disk1s1

Write the image to disk with the following.

sudo dd if=/Users/david/Desktop/raspxbmc.img of=/dev/rdisk1 bs=32m

You can monitor the progress by pressing ctrl+t (not command+t)

Note: We’re using rdisk (raw-disk) as our out file and not disk, and that we’re reading/writing blocks 32Mb at a time, instead of 1 byte to speed things up.

Categories: Raspberry Pi Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: