Saturday, April 16, 2011

Current Projects

My current projects:

OS X Snow Leopard on my PC and my Netbook:
It's coming along pretty well, my netbook can chain grub2 to chameleon, but my desktop requires me to boot off a different disk. I need to compare these two and figure out how to chain from my desktop using a seperate partition (consider putting /boot in a non-raid, non-lvm partition)

JTAG'd XB360:
I managed to install the newest XBReboot on it, allowing me to access my fuse set, giving me my CPU key. I messaged the guy who JTAG'd my system, hoping he still has my NAND stored. If he doesn't I just need to learn about the donor NAND and using BestPig to create a substitute NAND. I'm going to wait on this until I get a response from him.

Tuesday, April 12, 2011

Milestone

I have OSX up and running with sound, video rendering, wireless, time machine, and a few keyboard shortcuts. Awesome.

Monday, April 11, 2011

Install OSX Snow Leopard onto GA-X48T-DQ6

Get a copy of Snow Leopard install disc in form of .dmg
In Linux: Install dmg2img
$dmg2img ./snowleopard.dmg ./snowleopard.img
$mv ./snowleopard.img ./snowleopard.iso
Burn snowleopard.iso to DVD+DL
Download Empire EFI and burn .iso to disc
Boot PC with AHCI enabled in BIOS and Empire EFI in disc tray
Wait for EEFI to boot and give instruction
Eject disc, put in burned snowleopard.iso
Wait, hit F5
Enter on Install OSX to begin
Follow install instructions
On failed boot, put EEFI back in and restart
Choose Installation to boot
Google DSDT and motherboard name to find dsdt.aml file and place it on desktop
Download and use Multibeast or similar program to tweak and install necessary modules
-UserDSDT
-nvenabler

(Re)Install grub lvm raid

Assume: Reinstalled grub after windows to boot a raid called Linux

1. Boot into a live disc
2. Install mdadm and lvm2
3. Probe modules
  • $sudo modprobe raid5 dm-mod
4. Assemble raid array
  • $sudo mdadm --assemble --scan
5. Mount array from either /dev/*RAIDNAME* or /dev/mapper/*PARTITIONNAMES*
  • $sudo mount /dev/Linux/UbuntuRoot /mnt
  • #If you have a seperate /boot
  • $sudo mount /dev/Linux/UbuntuBoot /mnt/boot
6. Mount and bind system resources
  • $sudo mount --bind /dev /mnt/dev
  • $sudo mount --bind /proc /mnt/proc
  • $sudo mount --bind /var /mnt/var
  • $sudo mount --bind /sys /mnt/sys
  • $sudo mount --bind /dev/pts /mnt/dev/pts
7. Copy Internet connection settings to mnt
  • $sudo cp /etc/resolv.conf /mnt/etc/
8. Chroot into existing raid/lvm
  • $sudo chroot /mnt
9. Update and remove grub
  • $sudo apt-get update
  • $sudo apt-get remove grub-pc --purge
10. When finished install grub-pc which will scan for partitions
  • $sudo apt-get install grub-pc
It will try to ask for email information, just hit enter for default.

11. Pick which drives to install grub onto
12. $exit
$exit

Mdadm and LVM2

In order to create a software raid array on linux you must install mdadm. This can be done during the install of the distro using either an alternative install disc, a live disc, or ubiquity.

To mount an existing linux raid array:
1. Make sure mdadm is installed by using your package manager
  • In Ubuntu: $sudo apt-get install mdadm
2. Probe necessary modules
  • $sudo modprobe raid5 dm-mod
3. Scan and mount any detected arrays
  • $sudo mdadm --assemble --scan

If LVM is involved just make sure to install it first
  • $sudo apt-get install lvm2

Introduction

Wow, I used to be a whiny pussy as a kid. I still am, but at least now I've learned not to cry on the internet. Anyway...this is just going to serve as a place to collect some of the processes I've implemented to accomplish various installations/setups/hacks/mods/etc.