-
Notifications
You must be signed in to change notification settings - Fork 2
Manual Installation of OS
First off all boot your Linux System or download and boot Ubuntu Live CD.
If u use a live cd, remember to enable the needed universe repository for the extlinux installation.
In my case /dev/sdb.
sudo fdisk -l
If you have a small disk and problems with the alignment of partitions refer to this thread.
Or use Gparted and set the partition size option to cluster.
sudo fdisk /dev/sdb
o
- create DOS partition table
n
- new partition
p
- primary
1
- partition number
ENTER
- use default start point
200
- for 200 MB System Disk
n
- new partition
p
- primary
2
- partition number
ENTER
- use default start after partition 1
ENTER
- use default end for all free space usage of partition 2
a
- set partition boot flag
1
- partition 1
p
- show partitions
...Device...boot.....Start........End......Blocks...Id..System
/dev/sdb1....*............2..........261.......48976+..83..Linux
/dev/sdb2.............261........1021......730991+..83..Linux
sudo mkfs.ext4 -m0 /dev/sdb1
sudo mkfs.ext4 -m0 /dev/sdb2
sudo e2label /dev/sdb1 System
sudo e2label /dev/sdb2 Storage
sudo tune2fs -O ^has_journal /dev/sdb1
sudo tune2fs -O ^has_journal /dev/sdb2
sudo mkfs.ext4 -v -m0 -O ^has_journal -L System /dev/sdb1
sudo mkfs.ext4 -v -m0 -O ^has_journal -L Storage /dev/sdb2
`sudo hdparm -I /dev/sdb1 | grep TRIM``
sudo tune2fs -o discard /dev/sdb1
sudo tune2fs -o discard /dev/sdb2
sudo apt-get install extlinux
sudo dd if=/usr/lib/extlinux/mbr.bin of=/dev/sdb bs=440 count=1
sudo mkdir -p /media/System
sudo mount /dev/sdb1 /media/System
sudo extlinux -i /media/System/
sudo gedit /media/System/extlinux.conf
And paste the following lines.
In case of problems with the Partition Labels use APPEND boot=/dev/sdb1 disk=/dev/sdb2 quiet
DEFAULT linux
PROMPT 0
LABEL linux
KERNEL /KERNEL
APPEND boot=LABEL=System disk=LABEL=Storage quiet
sudo cp ./OpenELEC.tv/target/KERNEL /media/System/
sudo cp ./OpenELEC.tv/target/SYSTEM /media/System/
sudo umount /dev/sdb1