Post by aquamac on Aug 29, 2009 21:16:24 GMT
OK Guys time for another walkthrough!
This time it's:
OSX86 SNOW LEOPARD/CHAMELEON 2.0- RC2-r640 RAID!
WARNING - ADVANCED.
The walkthrough is similar to to the previous one but with different boot files to download and a few extra steps.
We will create a bootable Striped Raid Array to give your Hard Disks some welly.
You will need a MINIMUM of 2 identical Hard Disks.
This will be for 2 disks, but it can be for more.
Step 1.
I am assuming that you have installed OSX86 on a single USB or Internal HD already and that you have it running just the way you want it that has an Extra folder that is fully working.
You will need 2 further disks!
Step 2.
Open up Disk Utility and click on one of your newly installed Hard Drives in the LH pane. Then Select Raid from the top tab.
Drag your 2 new disks into the raid window as you would if you were using a real mac.
Name your array, I called mine "Macintosh Raid" then select Stripe from the dropdown box below.
Then click the "Create" button. A new disk called "Macintosh Raid" will pop up on your desktop.
OK, nothing too exiting so far.
Step 3.
Clone your existing working OSX86 drive with CCC or Superduper. Make sure you select not to reformat though, otherwise you will wipe the raid array you just made. You just want to copy the files.
You will now have a Raid drive that is a copy of your existing HD but it will not boot.
Step 4.
Open up Disk Utility and from the LH pane, right click "Macintosh Raid" Then select "Information".
Where you see Raid identifier which will look something like this:
RAID Identifier : 948357DD-2F47-4EE6-8F22-294C275C8A90.
Copy this by right clicking.
Drag your com.apple.boot.plist to your desktop and open it in text edit.
Copy the identifier you found in Disk Utility to the plist as below:
<key>Kernel</key>
<string>mach_kernel</string>
<key>Kernel Flags</key>
<string>boot-uuid=948357DD-2F47-4EE6-8F22-294C275C8A90</string>
<key>device-properties</key>
and replace the existing one. It must say: "boot-uuid="
(without quotation marks) in front of the identifier. You must replace your existing one at this stage or the whole project will be a waste of time.
Repair Permissions with disk Utility.
Step 5.
Download Chameleon boot-loader from here and copy all the files to your desktop.
rapidshare.com/files/273144179/Snow_Leopard_Chameleon_files.zip
Empty all the individual files onto your desktop.
While your at it, download this little program that toggles your hidden files:
rapidshare.com/files/273166181/ShowAllFiles.zip
Step 6.
Now, open the Terminal program from your utilities folder and type:
cd ~/desktop (hit return)
Then type:
sudo su (hit return and enter password)
Then type:
diskutil list (hit return)
which should show your disk partitions like this :
The first 2 disks shown each have an installation of OSX86 but the 2 disks we are interested in are /dev/disk2 & /dev/disk3. These are the 2 Raided disks. Depending on how your disks show up, change the /dev/rdisk2 information below to whatever information you need.
Step 7.
Into the terminal type:
fdisk -f boot0 -u -y /dev/rdisk2 (then hit return)
then type:
fdisk -f boot0 -u -y /dev/rdisk3 (then hit return)
then type:
dd if=boot1h of=/dev/rdisk2s3 (then hit return)
then type:
dd if=boot1h of=/dev/rdisk3s3 (then hit return)
OK so far..good, well carry on...
then type:
diskutil mount disk2s3 (then hit return)
then type:
cp boot /Volumes/Boot\ OSX (then hit return)
then type:
diskutil unmount disk2s3 (then hit return)
then type:
diskutil mount disk3s3 (then hit return)
then type:
cp boot /Volumes/Boot\ OSX (then hit return)
then type:
diskutil unmount disk3s3 (then hit return)
Copy your Chameleon "Extra" folder from your working drive to your desktop and update the com.apple.boot.plist UUID with a copy of the updated one you made earlier. You must do this otherwise when you boot from your raid, you will end up booting from another disk.
Copy this to your Library/Preferences/SystemConfiguration folder.
You are then going to have to place a copy of this in each of the hidden "Boot OS X" partitions of your 2 disks along with your dsdt.aml and a copy of your "Mach_kernel" too.
To do this, either login as root by enabling root user (you can do this in Snow Leopard by navigating to System/Library/CoreServices and opening Directory Utility. Click the padlock and from the menu bar click edit and"Enable Root User", choose a password you will remember, then log out of your account and back in as "root".
Then navigate to Users/youraccountname and drag the Extra folder to your root desktop. If you copy and paste it to an Empty folder the permissions will change to root:wheel.
In the Terminal, type:
diskutil mount disk2s3
The hidden "Boot OS X" disk will reappear, you can copy your "Extra folder into the drive along with your dsdt.aml and Mach Kernel.
Unmount the drive:
diskutil unmount disk2s3
Do the same again for the second drive:
diskutil mount disk3s3
drag the Extra folder, dsdt.aml and Mach_kernel in and then unmount the drive with:
diskutil unmount disk3s3
You are now finished and should have a bootable Raid drive. All you need to do now is reboot and select the first of the 2 raid drives that shows up in your bios and select that drive to boot from.
Scores for Hard Disks improve somewhat with Raid-see below:
This time it's:
OSX86 SNOW LEOPARD/CHAMELEON 2.0- RC2-r640 RAID!
WARNING - ADVANCED.
The walkthrough is similar to to the previous one but with different boot files to download and a few extra steps.
We will create a bootable Striped Raid Array to give your Hard Disks some welly.
You will need a MINIMUM of 2 identical Hard Disks.
This will be for 2 disks, but it can be for more.
Step 1.
I am assuming that you have installed OSX86 on a single USB or Internal HD already and that you have it running just the way you want it that has an Extra folder that is fully working.
You will need 2 further disks!
Step 2.
Open up Disk Utility and click on one of your newly installed Hard Drives in the LH pane. Then Select Raid from the top tab.
Drag your 2 new disks into the raid window as you would if you were using a real mac.
Name your array, I called mine "Macintosh Raid" then select Stripe from the dropdown box below.
Then click the "Create" button. A new disk called "Macintosh Raid" will pop up on your desktop.
OK, nothing too exiting so far.
Step 3.
Clone your existing working OSX86 drive with CCC or Superduper. Make sure you select not to reformat though, otherwise you will wipe the raid array you just made. You just want to copy the files.
You will now have a Raid drive that is a copy of your existing HD but it will not boot.
Step 4.
Open up Disk Utility and from the LH pane, right click "Macintosh Raid" Then select "Information".
Where you see Raid identifier which will look something like this:
RAID Identifier : 948357DD-2F47-4EE6-8F22-294C275C8A90.
Copy this by right clicking.
Drag your com.apple.boot.plist to your desktop and open it in text edit.
Copy the identifier you found in Disk Utility to the plist as below:
<key>Kernel</key>
<string>mach_kernel</string>
<key>Kernel Flags</key>
<string>boot-uuid=948357DD-2F47-4EE6-8F22-294C275C8A90</string>
<key>device-properties</key>
and replace the existing one. It must say: "boot-uuid="
(without quotation marks) in front of the identifier. You must replace your existing one at this stage or the whole project will be a waste of time.
Repair Permissions with disk Utility.
Step 5.
Download Chameleon boot-loader from here and copy all the files to your desktop.
rapidshare.com/files/273144179/Snow_Leopard_Chameleon_files.zip
Empty all the individual files onto your desktop.
While your at it, download this little program that toggles your hidden files:
rapidshare.com/files/273166181/ShowAllFiles.zip
Step 6.
Now, open the Terminal program from your utilities folder and type:
cd ~/desktop (hit return)
Then type:
sudo su (hit return and enter password)
Then type:
diskutil list (hit return)
which should show your disk partitions like this :
The first 2 disks shown each have an installation of OSX86 but the 2 disks we are interested in are /dev/disk2 & /dev/disk3. These are the 2 Raided disks. Depending on how your disks show up, change the /dev/rdisk2 information below to whatever information you need.
Step 7.
Into the terminal type:
fdisk -f boot0 -u -y /dev/rdisk2 (then hit return)
then type:
fdisk -f boot0 -u -y /dev/rdisk3 (then hit return)
then type:
dd if=boot1h of=/dev/rdisk2s3 (then hit return)
then type:
dd if=boot1h of=/dev/rdisk3s3 (then hit return)
OK so far..good, well carry on...
then type:
diskutil mount disk2s3 (then hit return)
then type:
cp boot /Volumes/Boot\ OSX (then hit return)
then type:
diskutil unmount disk2s3 (then hit return)
then type:
diskutil mount disk3s3 (then hit return)
then type:
cp boot /Volumes/Boot\ OSX (then hit return)
then type:
diskutil unmount disk3s3 (then hit return)
Copy your Chameleon "Extra" folder from your working drive to your desktop and update the com.apple.boot.plist UUID with a copy of the updated one you made earlier. You must do this otherwise when you boot from your raid, you will end up booting from another disk.
Copy this to your Library/Preferences/SystemConfiguration folder.
You are then going to have to place a copy of this in each of the hidden "Boot OS X" partitions of your 2 disks along with your dsdt.aml and a copy of your "Mach_kernel" too.
To do this, either login as root by enabling root user (you can do this in Snow Leopard by navigating to System/Library/CoreServices and opening Directory Utility. Click the padlock and from the menu bar click edit and"Enable Root User", choose a password you will remember, then log out of your account and back in as "root".
Then navigate to Users/youraccountname and drag the Extra folder to your root desktop. If you copy and paste it to an Empty folder the permissions will change to root:wheel.
In the Terminal, type:
diskutil mount disk2s3
The hidden "Boot OS X" disk will reappear, you can copy your "Extra folder into the drive along with your dsdt.aml and Mach Kernel.
Unmount the drive:
diskutil unmount disk2s3
Do the same again for the second drive:
diskutil mount disk3s3
drag the Extra folder, dsdt.aml and Mach_kernel in and then unmount the drive with:
diskutil unmount disk3s3
You are now finished and should have a bootable Raid drive. All you need to do now is reboot and select the first of the 2 raid drives that shows up in your bios and select that drive to boot from.
Scores for Hard Disks improve somewhat with Raid-see below: