I thought I would write some clear and easy to follow instructions for how to easily get openELEC running stable and fast on a Raspberry Pi. This will be done by getting the Pi to boot the OS from the SD card but use the USB drive for all your library information. The Pi is, unfortunately, renowned for corrupting SD cards when they are read from or wrote to too often. This makes it so that it only reads from the SD card and any writing back to it is minimal.
Most of the instructions I have found online assume you know how to SSH into your Pi or just generally over complicate things. Hopefully this short guide will help anyone who wants it broken down into basic steps.
Things you will need:-
HARDWARE
Raspberry Pi (Obviously!)
SD Card or Micro SD for Model B+ or Rpi2.
USB 3 pen drive
Note: you can use USB 2, but they vary in data transfer rates so by using even a cheap USB 3 you are maxing out the USB data transfer speed.
SOFTWARE
Latest build of OpenELEC for your model of Pi (DiskImage).
SDFormatter
MiniTool Partition Wizard
Win32 Disk Imager
INSTRUCTIONS
1). Use 'SDFormatter' to format the SD card. Make sure you are pointing to the correct drive and change the 'Format Size Adjustment' to ON - this ensures that any hidden partitions are removed from the drive.
2). Use winrar or similar software to extract your OpenELEC version so that you can see the actual Disk Image file.
3). Open 'Win32 Disk Imager' and select the OpenELEC image file, select the SD card from under Device and then Write the image to the SD card.
This will create a 256MB FAT32 partition on the SD card with the OpenELEC OS files on. It will also create an Ext4 partition for storing your library information, like fanart and settings etc. we will swap this though so your Pi stores this info on the USB stick.
4). Open 'MiniTool Partition Wizard' and ensure that both your SD card and your USB stick are visible. Then right click on the ext4 partition of the SD card and delete it. Next Right click on the FAT32 partition of the SD card and click Move/Resize. You may as well use the whole SD card as I can't see any point in leaving partitions in place! Name the FAT32 partition to "SYSTEM", make sure it's set to primary and active and hit the Apply button.
5). 'Still in MiniTool Partition Wizard' select the USB drive, format it to Ext4, set as primary and active and label as "STORAGE". Apply these actions.
6). Using windows explorer open the SD card to see the OS files. Use notepad to open the text file called cmdline.txt and replace any text with the follwoing:-
boot=/dev/mmcblk0p1 disk=LABEL=STORAGE quiet
Save the cmdline.txt file.
That's it - pop the SD card and the USB stick into the Pi and boot it up.
Now if your SD card does become corrupted or you download a newer version of OpenELEC you only have to follow the instructions above for the SD card and all of your library info and settings will still be intact on the USB stick.
You should see a noticeable performance boost while browsing through your movies etc. too.
Most of the instructions I have found online assume you know how to SSH into your Pi or just generally over complicate things. Hopefully this short guide will help anyone who wants it broken down into basic steps.
Things you will need:-
HARDWARE
Raspberry Pi (Obviously!)
SD Card or Micro SD for Model B+ or Rpi2.
USB 3 pen drive
Note: you can use USB 2, but they vary in data transfer rates so by using even a cheap USB 3 you are maxing out the USB data transfer speed.
SOFTWARE
Latest build of OpenELEC for your model of Pi (DiskImage).
SDFormatter
MiniTool Partition Wizard
Win32 Disk Imager
INSTRUCTIONS
1). Use 'SDFormatter' to format the SD card. Make sure you are pointing to the correct drive and change the 'Format Size Adjustment' to ON - this ensures that any hidden partitions are removed from the drive.
2). Use winrar or similar software to extract your OpenELEC version so that you can see the actual Disk Image file.
3). Open 'Win32 Disk Imager' and select the OpenELEC image file, select the SD card from under Device and then Write the image to the SD card.
This will create a 256MB FAT32 partition on the SD card with the OpenELEC OS files on. It will also create an Ext4 partition for storing your library information, like fanart and settings etc. we will swap this though so your Pi stores this info on the USB stick.
4). Open 'MiniTool Partition Wizard' and ensure that both your SD card and your USB stick are visible. Then right click on the ext4 partition of the SD card and delete it. Next Right click on the FAT32 partition of the SD card and click Move/Resize. You may as well use the whole SD card as I can't see any point in leaving partitions in place! Name the FAT32 partition to "SYSTEM", make sure it's set to primary and active and hit the Apply button.
5). 'Still in MiniTool Partition Wizard' select the USB drive, format it to Ext4, set as primary and active and label as "STORAGE". Apply these actions.
6). Using windows explorer open the SD card to see the OS files. Use notepad to open the text file called cmdline.txt and replace any text with the follwoing:-
boot=/dev/mmcblk0p1 disk=LABEL=STORAGE quiet
Save the cmdline.txt file.
That's it - pop the SD card and the USB stick into the Pi and boot it up.
Now if your SD card does become corrupted or you download a newer version of OpenELEC you only have to follow the instructions above for the SD card and all of your library info and settings will still be intact on the USB stick.
You should see a noticeable performance boost while browsing through your movies etc. too.
Last edited: