HOW-TO:Installing OpenELEC/Writing The Disk Image

From OpenELEC
Jump to: navigation, search


Installing OpenELEC:
1. Introduction
2. Setting Up Your BIOS
3. Writing The Disk Image
4. Installing OpenELEC
5. Enjoy!

The first thing you need to do is download the latest stable build of OpenELEC

Download the current release image from here:

http://openelec.tv/get-openelec




[edit]

Extracting the archive using the GUI

Just open the folder where you downloaded the file, find the OpenELEC-build-architecture-version.img.gz file, right-click on it and select 'Extract Files...'.

Extracting the archive using the CLI (Command Line Interface)

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

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

cd ~/Downloads

Then extract the archive. It will be named OpenELEC-build-architecture-version.img.gz. We need to use gunzip to extract the archive.

gunzip -d OpenELEC-Generic.x86_64-5.0.0-efi.img.gz

Creating the USB Stick

Now pop your USB Stick in. After you've inserted the USB Stick 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
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     

First 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=OpenELEC-Generic.x86_64-5.0.0-efi.img of=/dev/sdb bs=4M


Lastly ensure the changes are synced to the USB Stick before removing it:

sync

Extracting the archive using the GUI

Simple double click the OpenELEC-build-architecture-version.img.gz file in the finder to let archive utility extract it for you.

Extracting the archive using the CLI (Command Line Interface)

Open the Terminal.

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

cd ~/Downloads

Then extract the archive. It will be named OpenELEC-build-architecture-version.img.gz. We need to use gunzip to extract the archive.

gunzip -d OpenELEC-Generic.x86_64-5.0.0-efi.img.gz

Creating the USB Stick

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

Find your USB Stick, in this case it is disk1

You 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

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=OpenELEC-Generic.x86_64-5.0.0-efi.img of=/dev/rdisk1 bs=4m



Lastly ensure the changes are synced to the USB Stick before removing it:

sync

This will install the OpenELEC disk image to your USB stick / SDcard using Windows.

Requirements

  1. Windows XP/7/8.x
  2. 7zip
  3. Win32DiskImager



Instructions

  1. Extract the image using 7zip.
  2. Insert your USB Stick / SDcard into your system. It should appear as a new drive letter.
  3. Run Win32DiskImager
  4. 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 / SDcard by right clicking on the drive in windows explorer and selecting eject.

Safely remove your USB key.