This tutorial describes how to set up a multi boot environment for any kind of PC using small and efficient syslinux/extlinux bootloader.
The advantage over any other tutorials is that with this method you don't need to install Ubuntu or any other Bloatware for this.
At the end of this you will have a machine just with Windowns and Openelec instaled with a simple menu to choice what system do you want to boot, and much more disk space (due the advantage that don't will be necessary Ubuntu install) to use XBMC.
We started our scenario with 1 HD with already installed Windows 7 in a single NTFS partition.
Step 1. PREPARATION:
First of all you need a bootable pen/cd with a linux distribution like Ubuntu and Gparted installed inside it. Latest Ubuntu Live CD/PEN (11.04) can be used for this, its already have all necessary tools for this tutorial, including Gparted. Download here.
http://www.ubuntu.com/download/ubuntu/download 32 Bits version is highly recommended.
Tip: In the same url that you download Ubuntu ISO file there is a simple tutorial that explains how to create a USB bootable Pen/CD.
Step 2. CREATE PARTITIONS:
Boot your machine with Ubuntu Live Pen/CD. And starts Gparted (System -> Administration -> GParted).
The objective of this step is resize the Windows 7 NTFS partition to open space to install Openelec. If you don't have experience with Gparted search google for a
good reference, It isn't objective of this tutorial.
You will need a minimal of 256Mb for OpenElec Boot partition and some more space that you think necessary for OpenElec Storage.
- Reduce first partition (/dev/sda1 - windows 7 NTFS)
- Create 2 ext3 partitions:
- /dev/sda2 - (ext3) size: (256Mb) - primary - boot - Label = BOOT
- /dev/sda3 - (ext3) size: (XXXGb) - primary - - Label = STORAGE
At the final of this steep your layout partition will be like this:
After create these 2 partitions, open Ubuntu File manager in click on BOOT partition to mount it.
Step 3: INSTALL EXTLINUX BOOTLOADER:
Acess the BOOT partition that you created and mounted in step above then download this file:
$ cd /media/BOOT
$ sudo wget http://dl.dropbox.com/u/1381863/openelec_tut/ope_extlinux.zip
Note: this file has 4.04 version of extlinux, if you need a updated version download it from site.
Unzip it:
Installing extlinux: (EXTLINUX is a syslinux derivative, which boots from a Linux ext2/ext3/ext4 filesystem).
It works the same way as SYSLINUX, with a few slight modifications
$ sudo mv ./extlinux /usr/bin/extlinux
$ sudo chmod +x /usr/bin/extlinux
try if extlinux was sucessfull instaled simple typing:
Now, we will install extlinux inside root of BOOT partition:
$ sudo extlinux --install /media/BOOT/
Note: after sucessfull instaled you will see a new file called
ldlinux.sys. Don't touch it.
Install the bootloader in MBR partition of the HD: (note it is /dev/sda not sda1, sda2...)
$ sudo dd if=/media/BOOT/mbr.bin of=/dev/sda
After install mbr.bin isn't more necessary, you can delete it:
$ sudo rm -rf /media/BOOT/mbr.bin
STEP 4: COPY OPENELEC FILES:
It's a simple step, just download latest Openelecs version from official site (you can do it by using Firefox browser, it's already installed in your Ubuntu Live Pen/CD).
After downloaded extract it
Copy all files (KERNEL, SYSTEM) from Openelecs extracted ../target folder to /media/BOOT
* Don't create any subdirectory inside /media/BOOT all files need to be in the root.
At the final of this steep your /media/BOOT need exactly these files:
Step 5: FINAL ROUND:
Reeboot your machine in remove the Pen/CD from the drive.
Make sure that system boot from HD
When boot starts Extlinux menu will shown
Choose OpenElec or Windows7 to boot
Have fun!
Notes:
- extlinux.conf is your menu configuration. If necessary alter options that you like. Syslinux is a simple but powerfull menu system, you can learn more about in here:
syslinux.zytor.com
- OpenElec can boot from IDE HD, but it needs specific drivers for this. Not all IDE controlers have your compiled drivers inside Openelec kernel, if you have troubles, contact me.
- If this tutorial was useful for you, thankful the author, and donate to Openelec to help him to make this ever better.
----------------------------------------------------------------------------------------
***
EXTRA AND OPTIONAL STEP: How to manage your ext3 (OpenELEC BOOT/STORAGE) partitions under Windows ***
It's a optional step for basic++ users.

that will allow you to manage your ext3 partitions inside Windows. It's usefulll mainly when you need to update your OpenELEC distro.
Natively Windows can't see and manage the ext3 partitions, to make it possible you will need to install a Ext2Fsd driver.
Point to:
www.ext2fsd.com and download the latest version
Install it over windows and follow the setup wizard pages to install and configure Ext2Fsd.
After installation completed, execute the Ext2 Volume Manager and select the ext3 partition that you like to mount:
Type F4 to add a drive letter for this partition.
Click Add Button and set these options:
Click OK, and Done to back to main screen of Ext2 Volume Manager.
Next step is enable write permissions on this driver. Type F7 and change the settings like this image below:
RESTART YOUR COMPUTER and your OpenELEC ext3 driver will be mounted automatically.
* Use Ext2Fsd with carefull. Never happened with me, but some people say that the files can be corrupted during copying. Use at your own risk.