Knowledge for the World

How to install Raspbian 'Wheezy' on the Raspberry Pi

Raspbian is a free Debian-based operating system optimized for the Raspberry Pi. It is the official supported operating system for the Raspberry Pi.

In these interests [?]
  • pi
    82 Subscribers Subscribe
1

Download Raspbian

Click here to find the latest Raspbian Wheezy download. For this guide, I'm going to download the zip file.

2

Put your Micro SD card into your computer

You will likely need to use an adapter.

Put your Micro SD card into your computer
3

Using OS X

If you're using a Mac, you can use the following steps. If you're on Windows, scroll below.

4

Open Disk Utility and find your SD card

To open Disk Utility you can type cmd + space bar and search. Or you can use Finder to navigate to Applications > Utilities > Disk Utility.

Open Disk Utility and find your SD card
5

Format the SD card

You'll need to format the SD card to FAT-32. To do so you'll need to click on the "Apple SDXC Reader" in the left column of Disk Utility.

Click the "Erase" tab.

Choose a name for the card (I chose Wheezy). For the format, choose MS-DOS (FAT).

Click "Erase" when you're finished.

Format the SD card
6

Determine the mount point

Using the df command we're going to determine the mount point.

Type:

df -h

In the output, under the Mounted on column look for the name of your SD card. I named my WHEEZY so I'm looking for /Volumes/WHEEZY.

Then take note of the filesystem name in the first column. Mine is /dev/disk2s1. This is actually the partition name, but what we're really concerned with is the device name which is disk2. Copy this device name.

7

Unmount the Volume

For this step you can use either Disk Utility or Finder. In either case look in the left column for the name of your SD card. In my case it's WHEEZY and click the eject symbol.

Unmount the Volume
8

Find the disk image

Hopefully by now the disk image is done downloading. By default, the disk image will download to your Downloads folder. Open up the Terminal application and type:

cd ~/Downloads

To locate the img type:

ls -lha | grep wheezy

You should see some output like this:

Downloads > ls -lha | grep wheezy
-rw-r--r--@   1 josephtyler  staff   990M Feb  2 14:59 2015-05-05-raspbian-wheezy.zip

Now unzip the image. Make sure to use the name of your file.

unzip 2015-05-05-raspbian-wheezy.zip

9

Flash the disk image

Go back to Terminal (ensuring you are in the same directory as before), and type:

sudo dd bs=1m if=DISK_IMAGE_NAME of=DEVICE_NAME

Make sure to replace the values for DISK_IMAGE_NAME and DEVICE_NAME. Mine looks like this:

sudo dd bs=1m if=2015-05-05-raspbian-wheezy.img of=/dev/rdisk2

Enter your password, wait until it finishes, and you're done.

10

Using Windows

If you're using Windows to format the Disk you can use the following steps.

11

Format the SD card

Open Windows Explorer and find your SD card. Right click on the icon and click Format.... Make sure Fat 32 (default) is selected and hit enter.

12

Download and launch Win32 Disk Imager

Go here and download the app called Win32 Disk Imager. After downloading the program, click to uncompress the files, and then click Win32DiskImager.exe to launch.

13

Flash the SD card

In the Win32 Disk Imager, click the blue folder icon and locate the Wheezy image you downloaded. Then in the Device box make sure the drive letter for your SD card is selected.

Click the Write button to begin.