How do I create the disk image for my SD Card or USB Stick?

While it might seem daunting at first to create the SD Card or USB Stick from the Embedded Disk Image provided on our downloads page, the following guides break down the process. You can use Windows, Mac OS X, or Linux to write the image.

Tip!: Please pick the appropriate guide depending on which operating system you are going to use to create the disk image

Using Windows

This walks you through the process of writing the Embedded Plex Media Player disk image to your USB stick / SD Card using Windows.

Requirements

Warning!: Your USB Stick or SD Card will be erased by this procedure as it writes the Embedded Plex Media Player Image onto it. Please ensure you know the correct drive letter for your SD Card or USB Stick and that there is nothing important on it.

Writing the Disk Image

  1. Extract the image using 7zip.
  2. Insert your USB Stick or SD Card into your system. It should appear as a new drive letter.
  3. Run Win32DiskImager and select the image file and verify the destination drive letter is correct, then click write.

When it is finished you can safely remove the USB stick or SD Card by right clicking on the drive in windows explorer and selecting eject.

Using Mac OS X

This walks you through the process of writing the Embedded Plex Media Player disk image to your USB stick or SD Card using Mac OS X.

Tip!: If you're planning to write the image to SD Card for your Raspberry Pi 2 you can use a simple app called ApplePi-Baker which allows you to prepare an SD-Card, and write the Plex Media Player Embedded disk image to an SD-Card.

Related Page: ApplePi-Baker Download Page

Extracting the Archive

Using the GUI

Simply double click on the PlexMediaPlayer-version-build.platform-architecture.img.gz file in the finder to let the OS X archive utility extract it for you.

Using the CLI (Command Line Interface)

Open the OS X Terminal application.

Change to the folder where you downloaded the release archive (let's assume the Downloads folder in your home directory):

cd ~/Downloads

Extract the archive. It will be named PlexMediaPlayer-version-build.platform-architecture.img.gz. We need to use gunzip to extract the archive.

gunzip -d PlexMediaPlayer-1.0.0.571-44dc3916.RPi2-arm.img.gz

Writing the Disk Image

Warning!: Your USB Stick or SD Card will be erased by this procedure as it installs Embedded Plex Media Player onto it. Please ensure you know the correct /dev/disk for your SD Card or USB Stick and that there is nothing important on it.

First, insert your USB stick and open a terminal window and run the following:

diskutil list

This will output something like this:

/dev/disk0
   #:                       TYPE NAME              SIZE       IDENTIFIER
   0:      GUID_partition_scheme                  *60.0 GB    disk0
   1:                        EFI                   209.7 MB   disk0s1
   2:                 Apple_RAID                   59.7 GB    disk0s2
   3:                 Apple_Boot Boot OS X         134.2 MB   disk0s3
/dev/disk1
   #:                       TYPE NAME              SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                  *8.0 GB     disk1
   1:                 DOS_FAT_32 UNTITLED          8.0 GB     disk1s1

Now find your SD Card or USB Stick in the list (in this case it is disk1)

You then need to use diskutil to unmount the disk

diskutil unmountDisk /dev/disk1

Next we need to zero out the partition map, OSX has an issue if you don't do this

sudo dd if=/dev/zero of=/dev/rdisk1 bs=1024 count=1

Now we need to write the disk image. You'll need superuser privileges to do this, whether you use the root user or sudo. Either way, you will need to execute the following command:

sudo dd if=PlexMediaPlayer-1.0.0.571-44dc3916.RPi2-arm.img of=/dev/rdisk1 bs=4m

Note: We need to use the OSX specific /dev/rdisk1

Lastly, to ensure the changes are synced to the SD Card or USB Stick before removing it, execute the following command in Terminal:

diskutil eject /dev/disk1

You can now safely remove your SD Card or USB Stick and connect to your Embedded Device

Using Linux

This walks you through the process of writing the Embedded Plex Media Player disk image to your USB stick or SD Card using Linux.

Extracting the Archive

Using the GUI

Open the folder where you downloaded the file (usually the Downloads folder in your home directory), find the PlexMediaPlayer-version-build.platform-architecture.img.gz file, then right-click on it and select Extract Files....

Using the CLI (Command Line Interface)

Each distro has a different way of getting to the Terminal, but it is usually called something like Terminal or Term. On Ubuntu it can be found in the Applications menu.

After opening the Terminal, change to the folder where you downloaded the release archive (let's assume the Downloads folder in your home directory):

cd ~/Downloads

Extract the archive. It will be named PlexMediaPlayer-version-build.platform-architecture.img.gz. We need to use gunzip to extract the archive.

gunzip -d PlexMediaPlayer-1.0.0.571-44dc3916.RPi2-arm.img.gz

Writing the Disk Image

Warning!: Your USB Stick or SD Card will be erased by this procedure as it installs Embedded Plex Media Player onto it. Please ensure you know the correct /dev/disk for your SD Card or USB Stick and that there is nothing important on it.

Insert your SD Card or USB Stick. After you've inserted it, use dmesg | tail to find out what /dev/device it is. (It should be something like /dev/sdX) You can also use parted or fdisk:

parted -l

This will output something like:

Disk /dev/sdb: 1016MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End     Size   Type     File system  Flags
 1      1049kB  1015MB  1015MB primary  ext4     

Now make sure the disk is unmounted.

umount /dev/sdb1

Next we need to write the disk image. You'll need superuser privileges to do this, whether you use the root user or sudo. Either way, you need to execute the following command:

sudo dd if=PlexMediaPlayer-1.0.0.571-44dc3916.RPi2-arm.img of=/dev/sdb bs=4M

Note: Make sure there's nothing important on your USB stick as the above command will wipe ALL data on it.

Lastly ensure the changes are synced to the USB Stick before removing it by excuting the following command:

sync

You can now safely remove your SD Card or USB Stick and connect to your Embedded Device

This article uses content from the OpenELEC wiki page Installing OpenELEC/Writing The Disk Image, which is shared under the Creative Commons Attribution-ShareAlike 3.0 Unported license