User:Esev/LinuxMCE Install Notes

From LinuxMCE
< User:Esev
Revision as of 16:32, 10 October 2010 by Esev (Talk | contribs) (New page: == Install DVD == I think the 0810 kernel is too old for my hardware. When booting from the DVD, change the kernel options to include "all_generic_ide" http://ubuntuforums.org/showpost.ph...)

(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

Install DVD

I think the 0810 kernel is too old for my hardware. When booting from the DVD, change the kernel options to include "all_generic_ide" http://ubuntuforums.org/showpost.php?p=5436513&postcount=7

Create four partitions

  1. 500MB ext3 for /boot
  2. 4GB swap
  3. 200GB ext3 for /
  4. Rest of the drive XFS for /home

First Boot

Get the primary network card (eth0) working

 # Using a USB drive, copy the drivers for r8168, r8169, e1000, and hid to /root/drivers
 # extract, compile, and install the r8168 driver
 depmod -a /lib/modules/`uname -r`/kernel/drivers/net/r8168.ko
 rmmod r8169
 modprobe r8168
 /etc/init.d/networking restart

Install sshd so I can complete the installation from the comfort of my couch.

 apt-get update
 apt-get install openssh-server

More driver installs

 # Replace the buggy r8169 module so it doesn't incorrectly auto detect my primary network card
   make
   cp r8169.ko /lib/modules/`uname -r`/kernel/drivers/net/
   depmod -a /lib/modules/`uname -r`/kernel/drivers/net/r8169.ko
 # Install the driver for the secondary network card (eth1) (e1000e driver)
   cd src && make install
   modprobe e1000e
 # Install the updated HID driver to support the Gyration_GYR4101US remote
   make
   cp hid.ko /lib/modules/`uname -r`/kernel/drivers/hid/
   depmod -a /lib/modules/`uname -r`/kernel/drivers/hid/hid.ko
 # Rebuild initramfs
   echo "r8168" >> /etc/initramfs-tools/modules
   update-initramfs -uvk `uname -r` | tee ~/updateinit.txt

Setup a RAID 1 across both drives.

First install mdadm

 apt-get install mdadm

Then follow the directions here making the changes noted below.

 # /dev/md0 is sd[ab]1 - /boot
   mdadm -C /dev/md0 -n2 -l1 -e1 missing /dev/sdb1
   mke2fs -j -L boot /dev/md0 
 # /dev/md1 is sd[ab]5 - swap
   mdadm -C /dev/md1 -n2 -l1 -e1 missing /dev/sdb5
   mkswap -L swap /dev/md1
 # /dev/md2 is sd[ab]6 - /
   mdadm -C /dev/md2 -n2 -l1 -e1 missing /dev/sdb6
   mke2fs -j -L root /dev/md2
 # /dev/md3 is sd[ab]7 - /home
   mdadm -C /dev/md3 -n2 -l1 -e1 missing /dev/sdb7
   mkfs.xfs -f -l size=64m -d agcount=4 -i attr=2,maxpct=5 -L home /dev/md3

Inside the /dev/md2 chroot, replace /etc/fstab with

 LABEL=root /               ext3    relatime,errors=remount-ro 0       1
 LABEL=boot /boot           ext3    relatime                   0       2
 LABEL=home /home           xfs     relatime,allocsize=512m    0       2
 LABEL=swap none            swap    sw                         0       0

Use the LABEL=root in the grub kernel arguments too

 title           Ubuntu 8.10, kernel 2.6.27-17-generic - drive 1
 root            (hd0,0)
 kernel          /vmlinuz-2.6.27-17-generic root=LABEL=root ro quiet splash                               
 initrd          /initrd.img-2.6.27-17-generic
 quiet
 title           Ubuntu 8.10, kernel 2.6.27-17-generic - drive 2
 root            (hd1,0)
 kernel          /vmlinuz-2.6.27-17-generic root=LABEL=root ro quiet splash
 initrd          /initrd.img-2.6.27-17-generic
 quiet

Adding /dev/sda to the RAID array takes several hours to complete