Installing RetroPie on Raspberry Pi

Home / Installing RetroPie on Raspberry Pi

Installing RetroPie on Raspberry Pi

December 9, 2015 | Article | No Comments

Raspberry Pi, a small computer powered by ARM architecture is a very interesting board for learning embedded system. From Media center into a simple server, Raspberry Pi has opened wide possibility to be explored. Who knows, Pi now can also be used as “Game Console“? What we talk here is Raspberry Pi now can be used as a Game Emulator to play many game console platform.

For this article I use following:

  1. Slackware64 14.0
  2. Windows 8
  3. Raspberry Pi model B
  4. RetroPie image

You can use either Linux (in this article, Slackware) or Windows (in this article Windows 8). Just pick one and follow the rest of article for your choice.

Obtain the Materials

The Operating System images I used is RetroPie, which can be downloaded from RetroPie site. This is huge image, around 1.3GB for it. When extracted, it occupy around 3.2 GB storage space. Be prepared!

The RetroPie software is basically EmulationStation and a stripped down version of Raspbian.

Prepare the Disk (SD Card)

To boot the Raspberry Pi, an installation media and storage media is needed. All we need is a single SD card. The bigger space, the better. You need space for OS and additional space to hold your ROMS. On this article I use my 8GB SD card. You can use any SD card you want, but I recommend to use at least 4GB SD card. The image we download on previous section will be stored on this card and later installed. Make sure you have a way to write on SD card.

Windows-based Instruction

For Windows user, you can follow this section to “burn” the image. For this purpose you need additional software for writing to SD card, such as Win32DiskImager utility.

  1. Extract the image (in this case so you will get an .img file.
  2. Insert SD card into SD card reader and check what drive letter it assigned to. For example G:\
  3. If it is not new, format it. Or at least make sure there is only one partition (FAT32 is recommended).
  4. Run the Win32DiskImager with administrator privileges.
  5. Select the image we have extracted.
  6. Select the drive letter of the SD card on our machine. Make sure you have the correct drive, or you will destroy data on that drive.
  7. Click Write and wait. The process should be not long.
  8. Exit the imager and eject the SD card

Beside Win32DiskImager, you can also use other tool such as Flashnul.

  1. Follow step 1 to step 3 for Win32DiskImager’s solution
  2. Extract Flashnul from the archive
  3. Open command prompt with elevated privilege (administrator privilege).
  4. Go to your extracted directory and run flashnul with argument “-p”. For example: flashnul -p
  5. You will get list of physical drive attached on your machine, and list of drive. Make sure the drive is correct. At time of writing this article, the SD card is detected as device number 1 with and mounted to drive G:
  6. Load the image to flashnul: flashnul 1 -L RetroPieImage_v1.7.img
  7. If you get an access denied error, try re-plugging the SD card and make sure to close all explorer windows or folders open for the device. If still get denial, try substitute the device number with its drive letter: flashnul G: -L RetroPieImage_v1.7.img

At this point, you have successfully written image to your SD card. And I assume you are. You can proceed to next stage.

Linux-based Instruction

Writing image on Linux is easier, in my opinion. The utility we use is “dd” which is already bundled on most distro. Make sure you know the correct device file for your SD card. In my machine I use a built in card reader and detect my SD card as /dev/sdb. It might be different on your system so better check it. For this article I use /dev/sdb to refer to SD card.

  1. Extract the image (in this case so you will get an .img file.
  2. Insert SD card into SD card reader .
  3. If it is not new, format it. Or at least make sure there is only one partition (FAT32 is recommended).
  4. Unmount the SD card if it is mounted. We need the whole SD card so if you see partition such as /dev/sdb1, etc its better you unmount them all.
  5. Write the image to SD card. Make sure you replace the input file after if= argument with correct path to .img file and “/dev/sdb” in the output file of= argument with your device. Also make sure to use whole SD drive and not their partition (i.e. not use /dev/sdb1, /dev/sdb1, etc). The command: dd bs=4M if=RetroPieImage_v1.7.img of=/dev/sdb
  6. Run sync as root. This will ensure the write cache is flushed and safe to unmount SD card.
  7. Remove SD card from card reader.

If you hesitate to use terminal and prefer to use GUI method, here is the tutorial. Note that we

  1. Do step 1 to step 3 for previous tutorial. Make sure your directory or image file doesn’t contain any spaces.
  2. Install the ImageWriter tool from
  3. Launch the ImageWriter tool (needs administrative privileges)
  4. Select the image file (in this case RetroPieImage_v1.7.img) to be written to the SD card (note: because you started ImageWriter as administrator the starting point when selecting the image file is the administrator’s home folder so you need to change to your own home folder to select the image file)
  5. Select the target device to write the image to. In my case, it’s /dev/sdb
  6. Click the “Write to device” button
  7. Wait for the process to finish and then insert the SD card in the Raspberry Pi

At this point, you have successfully written image to your SD card. And I assume you are. You can proceed to next stage.

Booting Up and Configuring

RetroPie differs from other distribution I have written so far. The connection for audio and video are same to other, the difference comes to the configuration it has.

You will be asked to configure your controller. This isn’t the calibration that is needed to control the various games that you will be playing, this is to configure your retro controller, joystick or even keyboard to navigate the EmulationStation software.

Once you are done, tap the button or key you set as Menu, and select Exit. This will quit out of EmulationStation and go back to the command line. From there, it’s like other OSes, you should enter GUI manually using


The GUI will be launched, enabling us to make necessary changes to controller configuration. In the file manager, open RetroPie\Configs\all and runretroarch.cfg in the text editor. Things might different for each controller available in the market, adjust with your needs.

Running the Pi

To resize the SD card after installation, you can follow this article.

To log in on your Raspberry pi you can use the default login, which is:

Username: root
Password: raspberrypi

Have fun 😀


About Author

about author


A man who is obsessed to low level technology.

Leave a Reply

Your email address will not be published. Required fields are marked *

Social media & sharing icons powered by UltimatelySocial