boot

Mac OS X: Boot and other things

This is my first post about Mac OS. I’ve followed these instruction to solve my issues with boot (dual boot Mac vs Windows) and I was sometime successful. You can use one of these to solve your problems. One more thing, I have to thanks the guys who made these.

1st: Dual boot using Vista boot Manager

DISCLAIMER:

This guide is for information purposes only. The author of the blog is not responsible for any of the unforeseen damages that may result to your system/PC or data after following the instructions on this blog. Also Leopard 10.5 is registered trademark of Apple and for legal usage please obtain a Leopard OS X 10.5 dvd from www.apple.com

Acknowledgements:

This guide wouldn’t have been possible, if not for the following great sites, which I read for almost a month to get this guide up. Not in any particular order

Things you need

  1. Desktop/Laptop running Windows Vista. (May run with XP..but not tested.)
  2. iATKOS v1.0 DVD image available from any popular torrent site or google it.(Approx size 2.16 GB)
  3. Windows Vista boot DVD
  4. Optical DVD drive

Before you start…..

  1. InstallWindows OS on your C drive. (primary partition 1)
  2. Create an empty primary partition to use for OS X (Say Partition 2)

Steps : (Follow these steps exactly..in the same order..)

  • Right click on My Computer and Click on Manage. Select Disk Management. Now Create a new Volume for OSX by shrinking an existing volume. You need atleast 5GB of space and the new volume should show up as Unallocated.
  • Make sure that the partition shows up as Unallocated, else repeat the previous step.
  • Now restart the machine and boot into the Leopard DVD that you burned using the iATKOS v1.0 DVD Image.
  • Press F8 as the countdown begins and type -v at the prompt and hit enter.
  • You should see scrolling text on the screen now. If it stops anywhere then drop a comment and I’ll try to help you out.
  • After a while you should be looking at the Leopard Installer. Follow the instructions on Screen.
  • Once the Loading Bar vanishes Select Utilities -> Disk Utility .
  • Select the Volume you created previously and format it as MAC OSX Journaled Extended. Once the formatting is done the volume is ready for installation.
  • Now Close Disk Utility and Select Utilities -> Darwin Boot. Type Y at the prompt.
  • At the prompt when it asks for the Disk Number enter 0. For the Partition Number if your Leopard Partition is 2nd on the disk, then enter 2 and so on.
  • Accept the following prompts and you should see a success prompt saying that so many block of data were written successfully.
  • Now get back to the Leopard Install Screen. Choose the partition that you made in the beginning and follow the instructions on screen.

Please don’t select any patches etc during the installation, this is normally the reason for most failed installations. Just the plain install would do.

  • Once the Install is done, reboot with the DVD in the drive. Press F8 at Darwin Boot Loader and type -s and press enter.
  • Execute the following commands :

fdisk -e /dev/rdisk0
flag 1
quit
reboot

  • Now before the PC restarts remove the DVD. At this point you should be able to boot into Vista normally.

Note: If you are unable to log into windows, because there is an error which says “winload.exe” corrupted.! Relax. Just insert the Windows VISTA boot DVD into the drive and restart. Click on “Repair computer” once you are inside the DVD and it will automatically detect if a problem exists and suggest “Repair and Restart”. Press the same, and remove the DVD once the PC is about to restart. You should now be able to log in to vista without any problem.

  • Now that we have almost everything running fine, lets proceed with the dual boot setup.
  • Boot into Vista. Copy the chain0 file from the Leopard DVD to C:
  • Open the “Command prompt” with “Elevated Admin” privileges from the Start Menu.
  • Type the following into the prompt

bcdedit /copy {current} /d “Mac OS X”
bcdedit /enum active
bcdedit /set {GUID} PATH \chain0

In the first command type {current} as it is, literally..nothing else..just {current} with the brackets. In the 3rd command however, replace the {GUID} with the alphanumeric GUID you see in the enumerated list under MAC OS X. You can see this list on your terminal as soon as you type the 2nd command above.

  • Close the Command Prompt and Restart Vista.
  • You Should now be looking at a screen with two options to boot into Mac OSX or Vista.
  • Select Mac OSX to see if you can boot into it. You should see the familiar Darwin boot Loading screen with the timer going down. If you dont do anything, then it counts to zero and again shows the menu screen with Vista and MAC OSX options. Dont panic!

Again select MAC OS X, and now as the timer counts down, Press F8. You would see a list of partitions on your disk with their names. Select the partition with MAC OSX installed by using up/down arrows and press ENTER.

  • Voila!! your Mac should be booting up as you read this..

See it was that simple. No more HFS+ and Blinking Cursor errors. Just follow this guide step by step and you should be able to dual boot Windows Vista and Leopard in no time. If you have any questions just drop in a comment, I’ll reply at the earliest.

For Drivers and Patches I suggest you look at the InsanelyMac Forums.

2nd: How to install Chameleon Bootloader (Download the newest bootloader from here)

As we know Chameleon 2.0 first GUI bootloader is now available in the wild check here. Latest Chameleon has many new features like themes, UI, EFI support and many more. If you are looking for installing and testing the all new chameleon you are, remember it’s a RC release not a final release. Last night i have digging the forums and collected some useful information for you. Please go through the process twice o thrice before doing anything. It may have some issues right now so before starting please take backup of your important Files and Kexts. If you wish to have your system load the Chameleon bootloader from the MBR and wish to keep all files on your Leopard partition use this method. This assumes your install is on /dev/disk0s1

1. Extract the Chameleon archive and open a Terminal window there.

2. Use sudo -s to assume root privileges.

3. Install boot0 to the MBR:

fdisk -f boot0 -u -y /dev/rdisk0

4. Install boot1h to the bootsector of your OS X partition:

dd if=boot1h of=/dev/rdisk0s2

5. Copy the ‘boot’ file to your root partition:

cp boot /

6. Make sure your OS X partition is flagged as active.

7. Copy Themes and smbios.plist to your Extra folder:

cp -R smbios.plist Themes /Extra

7. Finally add any kexts you wish to /Extra/Extensions like you usually would.

_____________________________________________________________________________________

Installation guide for to EFI Partition.

If you’ve been using Munky’s EFI partition booting method or wish to keep Chameleon in it’s own partition out of the way you can use the EFI partition as OS X makes no use of this. This assumes you are using one disk which is GPT formatted with OS X on /dev/disk0s2.

1. Extract the Chameleon archive and open a Terminal window there.

2. Use sudo -s to own root privileges.

3. Mount the EFI partition:

mkdir /Volumes/EFI && mount_hfs /dev/disk0s1 /Volumes/EFI

4. Install boot0 to the MBR:

fdisk -f boot0 -u -y /dev/rdisk0

5. Install boot1h to the bootsector of your EFI partition:

dd if=boot1h of=/dev/rdisk0s1

6. Copy the ‘boot’ file to your root partition:

cp boot /Volumes/EFI

7. Make sure your EFI partition is flagged as active.

8. Copy Themes and smbios.plist to your Extra folder:

cp -R smbios.plist Themes /Volumes/EFI/Extra

9. Copy any kexts to /Volumes/EFI/Extra/Extensions and your com.apple. Boot.plist to /Volumes/EFI/Extra and DSDT.aml to /Volumes/EFI/DSDT.aml

____________________________________________________________________________________

Install Chameleon 2.0 RC1 on a USB stick.  [ Guide by JASON ]

Open Terminal and Type

sudo -s

Enter your password and Type

diskutil list

Make note of the /dev/diskX where your USB stick is located (ex. mine is /dev/disk7)

Keep terminal open and open Disk Utility (fyi, you can most likely create an MBR partioning scheme with diskutil, I just don’t know how)

  • click on your USB stick and click “Partition”
  • click the ‘+’
  • click Options and choose MBR
  • Name it whatever you want (I named mine EFIUSB)
  • Click Apply
  • Go back to terminal

Type “diskutil list” and make sure your USB device is still listed the same as it was before (“disk 7” in my example)

Type the following string

diskutil eraseVolume “HFS+” “EFIUSB” /dev/diskXs1

Where ‘X’ is the number of your USB drive you got before

cd to your Chameleon/i386 directory

Run the following commands:

./fdisk -f boot0 -u -y /dev/rdiskX         (where X is your disk – loads the stage 0 bootloader)

dd if=boot1h of=/dev/rdiskXs1          (where X is your disk – loads the stage 1 bootloader)

cp boot /Volumes/EFIUSB                 (copies the Chameleon ‘boot’ file over to your usb)

mkdir /Volumes/EFIUSB/Extra          (makes the Extra directory on the USB stick)

Now from here, you can copy your Extensions.mkext, com.apple.Boot.plist, smbios.plist, & Themes directory using Finder over to your /Volumes/EFIUSB/Extra directory

____________________________________________________________________________________

For adding theme add the following strings to Boot.plist

<key>Theme</key>

<string>THEME_NAME</string>

For default boot partition add this to Boot.plist

<key>Default Partition</key>

<string>hd(x,y)</string>

whereas x is your hdd number and y is your partition number (you will get this info in Disk Utility and in Terminal with: diskutil list)

_____________________________________________________________________________________

For Changing timeout and resolution of Chameleon.

Set the resolution of Chameleon width, height, depth and refresh rate (for VESA 3.0 only)

Graphics Mode1024×768×32@75

Change the timeout before the default partition boots. Where X is the timeout in seconds

TimeoutX