Jump to content

[Guide] USB Flash Drive-Based Chameleon / Retail Install


  • Please log in to reply
74 replies to this topic

#41
Gabriel Simőes

Gabriel Simőes

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts
PS/2 working again!
Now I need to figure out why Chameleon does not wana boot my windows XP (first partition of the same HD charmeleon is installed).
Part 1: Win XP
Part 2: Extended
Part3: Chameleon
Part4: Leopard
Part5: NTFS Backup (logic)

.... the saga goes on...

#42
dougaa

dougaa

    InsanelyMac Geek

  • Donators
  • 179 posts

PS/2 working again!
Now I need to figure out why Chameleon does not wana boot my windows XP (first partition of the same HD charmeleon is installed).
Part 1: Win XP
Part 2: Extended
Part3: Chameleon
Part4: Leopard
Part5: NTFS Backup (logic)

.... the saga goes on...


Glad to hear you got PS/2 working. I haven't tried using Chameleon with Windows, but from what I've read it normally works. Do you still have some way to boot Windows? If so, how are you booting it? I'm wondering whether it's a Chameleon problem, or whether something got corrupted so that nothing can boot Windows now.

#43
Gabriel Simőes

Gabriel Simőes

    InsanelyMac Protégé

  • Members
  • Pip
  • 34 posts
Partition 1 is still set as active so I`m booting Leopard always from the pendrive.
I won`t install the bootloader in my disc before I figure out why Windows is not being started by Chameleon 2.0 rc2

Updating to 10.5.8 right now.

#44
wlan_master_29

wlan_master_29

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts

USB Flash Drive-Based Chameleon 2.0RC2 / Retail Install

This tutorial is for installing OS X Leopard 10.5.6 on a PC using a USB flash drive. The end result is a flash drive which can be used to boot your PC using Chameleon and do maintenance on OS X (eliminating the need for an extra OS X partition), and Chameleon and OS X installed on your hard drive. The flash drive offers several advantages over a DVD. It is easier to set up, boots much faster than a DVD, and makes it easy to try different kexts or other changes. At the time of this writing, the required 8GB USB flash drive costs less than $20.

These steps are based on my experience doing installs using an Intel D915GUX motherboard with a Pentium 530J processor, and also an Intel D975XBX2 motherboard (Bad Axe 2) with a Core 2 Quad Q6600 processor. I've tried to generalize what worked well for me into a tutorial. The information here comes from a variety of sources, but munky's tutorial at http://www.insanelym...howtopic=127330 was particularly helpful. I've concentrated on the steps to get an initial install of OS X running, even if some hardware, such as sound, may not work initially. These steps and Chameleon are compatible with using EFI, but setting up EFI is not covered.

While the retail DVD installs 10.5.6, this method works for 10.5.8. After installing 10.5.6, Software Update can be used to update to 10.5.8 without taking any special precautions (thanks to Chameleon).

Please let me know about any problems with this tutorial and I'll make updates as needed.

Change Log
2009-05-15: Minor updates for 10.5.8 and Chameleon RC2
2009-05-15: Added a note that this works for 10.5.7
2009-05-15: Added a note about hard drive installation with RAID
2009-05-09: Initial version

Requirements

* The BIOS in your motherboard must support booting from a USB drive

* Leopard 10.5.6 retail DVD
This may also work with the original 10.5.0 DVD, but I haven't tested that.

* An 8GB or larger USB drive which can be completely erased
I assume most people will use a flash drive, but any drive separate from the one you are installing on will work.

* Access to an existing installation of 10.5.6
Access is only needed long enough to get the USB drive set up.

Before starting you need to know what modifications are needed for OS X to run on your system. At a minimum, some number of kernel extensions (kexts) need to be replaced. You may also need a replacement kernel such as the excellent Voodoo kernel. Also, you may need to add device strings to com.apple.Boot.plist. If you already know what changes need to be made for your hardware this should go very smoothly. If not, do an initial install using one of the Leopard distributions. The distributions are a source of kexts and kernels, and by changing installer options you can determine what works best on your hardware. Also, the Leopard system you install using the distribution can be used to perform these steps. Once the flash drive is set up the distribution install can be replaced by the retail install.

Partition the USB Drive

These steps create a 512MB partition on the USB drive for Chameleon and any files needed to customize your OS X installation. They also create a 6.66 GB or larger partition for a copy of the OS X retail install DVD.

1. Connect the USB drive to the OS X machine. If a window comes up that says the disk is not readable, click on Ignore.

2. Open Disk Utility (under Utilities in the Finder's Go menu.) Locate the USB drive in the left section of the Disk Utility window and click (once) on the drive itself. Info about the drive should appear at the bottom of the window, and you can verify it's the correct drive. BE CAREFUL to select the correct drive, because the next steps will delete all the data on the drive you select.

3. Click on Partition to the top right and under Volume Scheme select 2 Partitions. Click on Options... at the bottom and select GUID Partition Table, then click on OK.

4. Click on the Untitled 1 partition, then set its name to usbboot, the Format to Mac OS Extended (Journaled), and the size to .5 GB.

5. Click on the Untitled 2 partition and set its name to "OS X Install Image" and the Format to Mac OS Extended (Journaled). Its size should be the remaining space available on the drive. For my 8GB flash drive its size is 6.98 GB. Click on the usbboot partition again and verify its size is 512MB.

6. Click on Apply. A window will appear asking you to confirm partitioning the disk. Verify that it names the correct disk. Once again, BE CAREFUL. Then click on Partition. When the partitioning is complete, the new partitions, "usbboot" and "OS X Install Image", will appear on the desktop. Quit from Disk Utility.

7. For each partition on the USB drive, "usbboot" and "OS X Install Image", right click or control click on it and select Get Info. In the info window, if necessary expand Sharing & Permissions by clicking on the arrow on the left. Click on the lock at the bottom and enter your password to unlock it. Then uncheck the box that says "Ignore ownership on this volume" and close the info window.

Copy the Retail Image to the USB Drive

These steps copy the contents of the retail DVD to the USB drive partition. To save space, the Xcode Tools optional install is not copied. After OS X is installed, the original retail DVD can be used to install Xcode Tools. Also, the latest version of Xcode Tools can be downloaded from Apple after getting a free ADC membership.

8. At this point we need to switch to the command line using the Terminal application. Open Terminal (under Utilities in the Finder's Go menu.) Then enter:
sudo -s
and enter your password. This provides root privileges for commands.

9. Execute these commands to prepare for copying the retail DVD. They create a file where the "Xcode Tools" directory would be copied. The copy command we'll use won't replace a file with a directory, thus the file prevents the "Xcode Tools" directory from being copied, saving almost 1GB. Enter:
install -d "/Volumes/OS X Install Image/Optional Installs.localized"
touch "/Volumes/OS X Install Image/Optional Installs.localized/Xcode Tools"

This can be skipped if the USB drive is 9GB or larger.

10. Insert the retail DVD into your DVD drive. "Mac OS X Install DVD" should appear on the desktop. Then copy the contents of the DVD to the USB drive partition. Enter:
ditto -V "/Volumes/Mac OS X Install DVD" "/Volumes/OS X Install Image"
-V is just to show detailed progress information. That's useful, because this takes a long time.

Customize the Retail Image

Because Chameleon is being used, little or no customization of the retail image is normally needed. If you can't use the vanilla kernel, you'll need to add a replacement kernel to the retail image. For my P4 install I need to use the Voodoo kernel. For my Core 2 install the vanilla kernel works.

11. (If you need it.) Get the replacement kernel on the OS X machine, so you can access it in the Finder. It should be named something other than mach_kernel. For Voodoo, it's provided as the file mach_kernel.voodoo. In the Finder, drag the kernel file to "OS X Install Image", so that it's copied to the root of the image partition. Experienced people may want to make additional changes to the retail image at this point.

Add Additional Terminal Commands to the Retail Image

The OS X installation disk contains only a subset of all the Terminal commands included in a full install of OS X. This step makes all the commands available when Terminal is run from the installation disk, so it can more easily be used to setup or repair a hard disk installation. For example, this makes the "more", "emacs", and "vi" commands available. While the rest of these commands can be done from either an Intel or PowerPC machine running Leopard, these additional commands must be copied using an Intel OS X machine. While the additional commands can be very useful, they are not required for the other steps listed here.

12. Issue this command:
cp -npv /usr/bin/* /Volumes/"OS X Install Image"/usr/bin
This copies only the commands not already present.

Install Chameleon on the USB Drive

13. Download the current version of Chameleon from the Chameleon Boot Loader web site. Download the bin.tar.gz version. As I write this, the current file is Chameleon-2.0-RC2-r640-bin.tar.gz. Double-click on the file to expand it and create a Chameleon folder. Back now in Terminal, make the Chameleon folder the current directory. Enter "cd" followed by a space, then drag the Chameleon folder to the Terminal window to paste the path, and press return. If this worked correctly, the "ls" command output will include "i386". Enter:
cd i386
to switch to the directory with the files to install.

14. Determine the device number for the USB drive. Issue the command "diskutil list". The output will show sections beginning with "/dev/diskX", and then the disk partitions. Determine what X is for the USB drive with the usbboot partition. The usbboot partition should be displayed with IDENTIFIER diskXs2, and diskXs3 should be "OS X Install Image". BE CAREFUL to identify the correct disk, because we will be writing to the disk MBR and the boot area of a partition.

15. Issue these command to install Chameleon in the MBR and the usbboot partition. Replace X by the number you determined. Enter:
fdisk -f boot0 -u /dev/rdiskX
dd if=boot1h of=/dev/rdiskXs2
cp -p boot boot0 boot1h /Volumes/usbboot

Fdisk will ask you to confirm that you want to write the MBR. Enter "y" after verifying X is correct. The boot0 and boot1h files are copied to /Volumes/usbboot not because they are needed now, but so it will be easy to set up a hard drive with Chameleon later.

16. (Thanks to munky.) Flag the first MBR partition on the USB drive as active This stage may not be necessary for some motherboards, but it's harmless in any case. Enter the fdisk command and then each line as shown:
fdisk -e /dev/rdiskX (NB: Ignore any fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory error)
f 1
w
q

At this point the USB drive is bootable and will run Chameleon, but customization is needed before it can boot OS X successfully.

Add Customizations for Chameleon to Load

These steps install the kernel extensions and com.apple.Boot.plist files needed for your hardware. If you added a replacement kernel in step 11, you should have a com.apple.Boot.plist file which specifies the name of the replacement kernel. For my P4 install, com.apple.Boot.plist contains:

<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
   <dict>
	 <key>Kernel</key>
	 <string>mach_kernel.voodoo</string>
	 <key>Kernel Flags</key>
	 <string></string>
   </dict>
 </plist>

17. Setup the Extra and Extensions folders. Enter:
install -d /Volumes/usbboot/Extra/Extensions
to create the folders. Using the Finder, copy the kernel extensions your hardware needs into the Extensions folder in usbboot/Extra. Copy com.apple.Boot.plist into usbboot/Extra. Authenticate to the Finder when asked to.

For people installing with one of my motherboards, for my D915GUX P4 install I used dsmos.kext, IOATAFamily.kext, IONetworkingFamily.kext, and System.kext from Voodoo. For the D975XBX2 Core 2 install I used dsmos.kext, IntelCPUPMDisabler.kext, and three kexts from the Chameleon Optional Extras folder: AHCIPortInjector.kext, ATAPortInjector.kext, and IOAHCIBlockStorageInjector.kext.

18. Set permissions. Enter:
chown -R root:wheel /Volumes/usbboot/Extra
chmod -R 755 /Volumes/usbboot/Extra


19. Create the kernel extension cache. Enter:
kextcache -a i386 -m /Volumes/usbboot/Extra/Extensions.mkext /Volumes/usbboot/Extra/Extensions
chown root:wheel /Volumes/usbboot/Extra/Extensions.mkext
chmod 644 /Volumes/usbboot/Extra/Extensions.mkext

Warning messages are normal for the kextcache command.

Disconnect the USB Drive

20. Disconnect the USB drive from the machine used to set it up. Enter:
sync
and if the activity light on the USB drive indicates any activity, wait for it to stop. Then enter:
exit
and quit from Terminal. Drag the two partitions for the USB drive to the trash to eject them. When both no longer appear on the deskop, disconnect the USB drive. If the Finder says the volumes cannot be ejected because they are in use, provided you entered the sync command and waited for disk activity to stop, it's safe to remove the drive. The device removal error that is displayed can be ignored.

Boot the USB Drive and Install OS X

We're ready to boot the USB drive. With the USB drive connected to the PC, boot or reboot it and go into the BIOS settings. Make sure the BIOS is set to allow booting from USB drives, and that the USB drive comes before any hard drives in the boot order. Don't forget to save any changes. If you've carefully followed the above steps, the most likely reason the USB drive won't boot is the BIOS settings. Just getting the USB drive to boot should work even if it turns out there is a problem getting OS X to run.

21. Boot from the USB drive. The Chameleon boot screen should appear. It should have Apple icons for usbboot and OS X Install Image, and may have icons for partitions on hard drives in the machine. Use the left and right arrow keys to select OS X Install Image. To enable verbose boot messages, type -v, which should appear at the bottom left. Then press return. The install image should then boot. If this hangs or fails in some way, it's likely due to not having the correct kernel or kexts for your hardware.

22. Continue to the screen which says "Select a Destination", and select the hard drive or partition you want to use for OS X. Notice that there is an Options button which provides options you may want to use. Also, you can run Disk Utility at this time to partition the drive. To do that, select Disk Utility from the Utilities menu. If you partition a drive for OS X, be sure to select a GUID partition table as in step 3 above. When you quit from Disk Utility you will be back at Select a Destination, and any new partitions you created should be displayed.

23. The installation should proceed and take a while. At the end, you may get an "Install Failed" warning message due to not being able to set the startup disk. That can be ignored provided the reason given is setting the startup disk.

Finish the Installation

If you didn't need to make any changes to the retail disk image (step 11), and you always want to boot OS X using the USB drive, you're done! When booting just select the version of OS X you just installed on the Chameleon boot screen. After booting, the usbboot and OS X Install Image partitions can be ejected by dragging them to the trash.

If you did make changes to the retail disk image, continue with the next step. Otherwise, skip to step 26.

24. When the computer restarts after the install, once again boot from OS X Install Image. At the Welcome screen, select Terminal from Utilities. In Terminal you already have root privileges.

25. Make the same changes to the newly-installed OS X as were made in step 11. To install the Voodoo kernel enter:
cp -p /mach_kernel.voodoo /Volumes/"xxx"
where xxx is the name of the partition you installed OS X on. Any files on the usbboot partition are available at /Volumes/usbboot. When you're finished making changes enter:
reboot

26. Now you can verify the new installation of OS X boots. After rebooting, on the Chameleon boot menu select the partition you installed OS X on. The newly-installed OS X should boot and run the interactive setup.

Install Chameleon on the Hard Drive

WARNING: The directions that follow assume a dedicated hard drive for OS X without any other operating systems. Also, BE VERY CAREFUL if there are any hard drives in the PC with data which needs to be preserved. You should have backups, and not follow these directions unless you are sure you understand the significance of each step.

These directions are not for RAID installs. However, Chameleon will work with RAID. That's documented under "RAID Install" in the README file found in the Chameleon doc folder.

27. Restart and select OS X Install Image in the Chameleon boot menu. At the Welcome screen, select Terminal from the Utilities menu.

28. Chameleon will be installed in the EFI partition that Disk Utility creates when there is a GUID partition table. Similarly to step 14, determine the device number for the hard drive which Chameleon will be installed on. Use "diskutil list" and find the drive number for the drive which contains the partition you installed OS X on.

29. The EFI partition must be changed from FAT32 to HFS+ format. Reformat the EFI partition: be CERTAIN you determined the correct device number, then enter:
diskutil eraseVolume "HFS+" "EFI" /dev/diskXs1
where X is the device number. Mount the partition. Enter:
mkdir /Volumes/EFI
mount_hfs /dev/diskXs1 /Volumes/EFI


30. Issue these command to install Chameleon in the MBR and the EFI partition. Replace X by the number you determined:
cd /Volumes/usbboot
fdisk -f boot0 -u /dev/rdiskX
dd if=boot1h of=/dev/rdiskXs1
ditto -V /Volumes/usbboot /Volumes/EFI

Fdisk will ask you to confirm that you want to write the MBR. Enter "y" after verifying X is correct.

31. As in step 16 flag the first MBR partition on the hard drive as active. Type the fdisk command and then each line as shown:
fdisk -e /dev/rdiskX (NB: Ignore any fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory error)
f 1
w
q


32. (Thanks to munky.) Enter this command to prevent the File System Events Daemon (fseventsd) from logging on the EFI partition, which can cause it to become unmountable:
touch /Volumes/EFI/.fseventsd/no_log

33. Unmount the EFI partition and delete the directory. Enter:
sync
umount -f /Volumes/EFI
rmdir /Volumes/EFI


34. Done! Enter:
reboot
then once the system is rebooting remove the USB drive. If necessary, change the BIOS settings so the hard drive with Chameleon will boot first. Booting from the hard drive should result in the Chameleon boot menu, and you can select the partition containing OS X.

Set Chameleon Options

If desired, you can edit com.apple.Boot.plist to set various Chameleon options. The available options are listed in BootHelp.txt, which is in the Chameleon doc folder. I used the options to set the default partition in the boot menu, and also the graphics enabler and built-in Ethernet enabler. The enabler options are new in Chameleon RC2, and with those I no longer needed a device-string in com.apple.Boot.plist. Read Chameleon 2.0-RC2 is available with new features and less bugs on the Chameleon web site for more information about that.

35. In the newly-installed OS X, run Terminal and mount the EFI partition. Enter:
sudo -s
mkdir /Volumes/EFI
mount_hfs /dev/diskXs1 /Volumes/EFI


36. For the default boot partition, edit com.apple.Boot.plist. Enter:
diskutil list
In the output from "diskutil list", find the identifier for the partition you want to be the default for booting. Edit /Volumes/EFI/Extra/com.apple.Boot.plist (I used vi), and add the following key/string pair:
<key>Default Partition</key
<string>hd(x,y)</string>

where x and y are the first and second digits from the partition identifier. Add it making sure not to split up an existing key/string pair.

37. For the graphics and Ethernet enabler options, also in com.apple.Boot.plist. add:
<key>GraphicsEnabler</key>
<string>Yes</string>
<key>EthernetBuiltIn</key>
<string>Yes</string>


38. Unmount and remove the EFI volume. Enter:
umount /Volumes/EFI
rmdir /Volumes/EFI

When you reboot, the partition you chose should be the one initially selected in the Chameleon boot menu.

Good luck!


How did you get your onboard sound working in Retail 10.5.6 ? I have tried every known method
and have failed at every attempt. Thanks

#45
dougaa

dougaa

    InsanelyMac Geek

  • Donators
  • 179 posts

How did you get your onboard sound working in Retail 10.5.6 ? I have tried every known method
and have failed at every attempt. Thanks

Probably best to not quote the entire tutorial when you reply :D

I assume you're asking about audio for the Bad Axe 2 motherboard. I used STAC9274D.v7 from this thread: http://www.insanelym...howtopic=130380. I couldn't get that to work with Chameleon with kexts in the Extra folder. I had to add HDAEnabler.kext and replace AppleHDA.kext in the installed system. Fortunately, since it's just audio, if it breaks after an update (it usually does) the system still boots and runs fine otherwise until you re-install it.

I'm attaching a script I wrote to install STAC9274D.v7. The script assumes the current directory contains the script itself and the unzipped STAC9274D.v7 folder. You could also do the installation with OSx86Tools.

Attached Files



#46
wlan_master_29

wlan_master_29

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
Attached File  SigmaTel_STAC9227.txt   8.08KB   10 downloads [quote name='dougaa' post='1263342' date='Sep 12 2009, 06:34 PM']Probably best to not quote the entire tutorial when you reply :thumbsup_anim:

I assume you're asking about audio for the Bad Axe 2 motherboard. I used STAC9274D.v7 from this thread: http://www.insanelym...howtopic=130380. I couldn't get that to work with Chameleon with kexts in the Extra folder. I had to add HDAEnabler.kext and replace AppleHDA.kext in the installed system. Fortunately, since it's just audio, if it breaks after an update (it usually does) the system still boots and runs fine otherwise until you re-install it.

I'm attaching a script I wrote to install STAC9274D.v7. The script assumes the current directory contains the script itself and the unzipped STAC9274D.v7 folder. You could also do the installation with OSx86Tools.[/quote]

Oh yes of course, sorry about that , I could see how that would flood the topic, and thanks for responding so quickly :thumbsup_anim: There is however i beleive a slight difference in my Bad Axe 2 the model is S975XBX2 but still has the same sound card from what I can tell from my research, perhaps not noticable changes that I can tell since I don't have KLR or KR or even 975xBx2 can you confirm this , I can provide you with what ever you need, codec dump etc, match 100% with Turugas patcher for 975xbx2 Thanks, will try this method and get back to you :hysterical:

[quote name='wlan_master_29' date='Sep 25 2009, 03:59 AM' post='1279747']
I have done as instructed installed using your script, repaired permissions and rebooted
still no sound, however it show this in About this for the sound


Audio built in
Device ID 0x80860420
Audio ID 4
Available Devices ( Is blank and shows no devices )

Any ideas ?

Thanks

PS here is my Codec dump for the S975XBX2

Attached File  SigmaTel_STAC9227.txt   8.08KB   10 downloads

#47
dougaa

dougaa

    InsanelyMac Geek

  • Donators
  • 179 posts
I think the problem is that we have different codecs in our motherboards. Your dump shows an STAC9227, but my motherboard has an STAC9274D. I've attached the dump for that. The kext is for STAC9274D, so it's not too surprising it won't work for STAC9227. Perhaps you could get some help in the thread I referenced for the STAC9274D kext.

I'm not sure how significant the audio info in System Profiler is. I've had sound working when System Profiler said no audio devices. However, in my current installation it shows this:
Intel High Definition Audio:

  Device ID:	0x80860419
  Audio ID:	4
  Available Devices:
  Line In:
  Connection:	1/8-Inch Jack
  External Microphone:
  Connection:	1/8-Inch Jack
  Headphone:
  Connection:	1/8-Inch Jack
  Line Out:
  Connection:	1/8-Inch Jack
  S/P-DIF Out:
  Connection:	Optical

Attached Files



#48
wlan_master_29

wlan_master_29

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
Thanks for your quick reply, on this matter, sound issue resolved, well somewhat, sound
is working now using STAC9227_0x83847618Installer.app by Turuga, sound output seems to work
Input and line out still testing, but no success so far with mic input atm. Sound works but has no
properties in Audio Built In.

I owe lot of thanks to dougaa for getting me on the right track to get sound working
though his methods did not work for me, he made some suguestions and in the end
sound is now working flawlessly, I don't have the reboot and loose sound as most do
so im thankful to that ;) . And finally thanks to all other person involved in this comunity
who has invested so much time into the OSx86 Projects.

I know there are alot more people that have this same board and had the sound issues that
i have, so I will post a full topic for this matter in a few days, when I have time to test
on another install using this method, to ensure the steps taken for success.


System is
S975XBX2
EVGA 8500 GT 512 PCI/E Full Q/E support - using NVKush.kext
Sound now working output only for the time being using the above Installer
Install was done with Retail Leo 10.5.6 From USB with Chameleon 2 and updated to 10.5.8 Via Apple updater

Everything worked out of the box, except sound
video worked fine on first boot, but to get Q/E working
I used a modified NVkush.kext

#49
lion

lion

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts
Hi dougaa,

Thanks a lot for this very accurate guide.
At first, I'm working on Mac Pro 1.1, Snow Leopard 10.6.1 and DVD is 10.6.
I've got a problem that I can't solve, I've followed your instructions :
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - Done
Terminal results :
Begins with:

>>> Copying /Volumes/Mac OS X Install DVD
copying file ./.DS_Store ...
15364 bytes for ./.DS_Store
copying file ./.file ...
0 bytes for ./.file
copying file ./Applications/Utilities/Disk Utility.app/Contents/_CodeSignature/CodeResources ...
6947 bytes for ./Applications/Utilities/Disk Utility.app/Contents/_CodeSignature/CodeResources
copying symlink ./Applications/Utilities/Disk Utility.app/Contents/CodeResources ...
linked ./Applications/Utilities/Disk Utility.app/Contents/CodeResources

and around 32 000 lines later...:

copying file ./usr/standalone/i386/boot.efi ...
319152 bytes for ./usr/standalone/i386/boot.efi
copying file ./usr/standalone/i386/Firmware.scap ...
15729264 bytes for ./usr/standalone/i386/Firmware.scap
copying symlink ./var ...
linked ./var
bash-3.2#

I can't see any error messages
and "OS X Install Image" is still empty with 7,14 Go available, only some hidden folders are on both partitions (usbboot and OS X Install Image) .fseventsd, .Spotlight-V100, .Trashes
I repeated all points from 1 to 10 three times with the same result.
I get the following through terminal:
Attached File  Capture_d_____cran_2009_10_17____10.09.28.jpg   33.05KB   5 downloads
What is strange is that Finder shows the partition name as "OS X Install Image" but at the window top shows "OS X Install Image 1"
Attached File  Capture_d_____cran_2009_10_17____10.13.20.jpg   55.38KB   4 downloads

Thanks,

lion,

Edit: I found that on the System Disk there is a directory "Volumes/OS X Install Image", and all files are inside ...

I remember now, first try I made a mistake with the partition name on USB key, instead of "OS X Install Image" I wrote "OSX Install Image", and execute all points up to 10, when I came back there wasn't any error ... because the first command "install -d "/Volumes/OS X Install Image/Optional Installs.localized"" didn't find the directory so IMHO created it.

I'm trying once more... sorry

lion,

#50
dougaa

dougaa

    InsanelyMac Geek

  • Donators
  • 179 posts

Edit: I found that on the System Disk there is a directory "Volumes/OS X Install Image", and all files are inside ...

I remember now, first try I made a mistake with the partition name on USB key, instead of "OS X Install Image" I wrote "OSX Install Image", and execute all points up to 10, when I came back there wasn't any error ... because the first command "install -d "/Volumes/OS X Install Image/Optional Installs.localized"" didn't find the directory so IMHO created it.

I'm trying once more... sorry

lion,

That would explain it. OS X adds the 1 to the name because it has to do that to make the name unique.

I haven't updated the tutorial for Snow Leopard yet. The same general procedure should work, but some details may change. For Snow Leopard, step 9 wont' work, but you can skip it because Snow Leopard is smaller than Leopard. But in order to free up some space, after step 10, delete Xcode.mpkg in Optional Installs on the USB drive.

I think for the kextcache command to work for Snow Leopard, you have to run it from a machine running Snow Leopard, which for most people would require using a real Intel Mac, unless you know how to run it in single user mode at boot time.

#51
lion

lion

    InsanelyMac Protégé

  • Members
  • Pip
  • 48 posts

I haven't updated the tutorial for Snow Leopard yet. The same general procedure should work, but some details may change. For Snow Leopard, step 9 wont' work, but you can skip it because Snow Leopard is smaller than Leopard. But in order to free up some space, after step 10, delete Xcode.mpkg in Optional Installs on the USB drive.

On original 10.6 DVD "Optional Installs.mpkg" is 340 Ko and "Xcode.mpkg is 541 Ko" only, they have been copied onto the USB key altough I've used point 9, there wasn't any error message following these two command lines, you're right it didn't work.
Thanks,
I'll keep you inform of the results.
lion,

Edit:
Point 16:
bash-3.2# fdisk -e /dev/rdisk8
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> f 1
Partition 1 marked active.
fdisk:*1> w
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] y
Writing MBR at offset 0.
fdisk: 1> q
bash-3.2#

Correct ?

17. Setup the Extra and Extensions folders. Enter:
install -d /Volumes/usbboot/Extra/Extensions
to create the folders. Using the Finder, copy the kernel extensions your hardware needs into the Extensions folder in usbboot/Extra. Copy com.apple.Boot.plist into usbboot/Extra. usbboot/Extra/Extensions ?

#52
dougaa

dougaa

    InsanelyMac Geek

  • Donators
  • 179 posts

On original 10.6 DVD "Optional Installs.mpkg" is 340 Ko and "Xcode.mpkg is 541 Ko" only, they have been copied onto the USB key altough I've used point 9, there wasn't any error message following these two command lines, you're right it didn't work.
Thanks,
I'll keep you inform of the results.
lion,

Edit:
Point 16:
bash-3.2# fdisk -e /dev/rdisk8
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter 'help' for information
fdisk: 1> f 1
Partition 1 marked active.
fdisk:*1> w
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] y
Writing MBR at offset 0.
fdisk: 1> q
bash-3.2#

Correct ?

17. Setup the Extra and Extensions folders. Enter:
install -d /Volumes/usbboot/Extra/Extensions
to create the folders. Using the Finder, copy the kernel extensions your hardware needs into the Extensions folder in usbboot/Extra. Copy com.apple.Boot.plist into usbboot/Extra. usbboot/Extra/Extensions ?


16 looks fine. For 17, com.apple.Boot.plist goes into /Volumes/usbboot/Extra. Extensions go into /Volumes/usbboot/Extra/Extensions.

I currently have these extensions in Extensions for snow leopard for my Bad Axe 2 motherboard:
AHCIPortInjector.kext
dsmos.kext
IntelCPUPMDisabler.kext
IOAHCIBlockStorageInjector.kext
IOATAFamily.kext
OpenHaltRestart.kext
dsmos is a version for snow leopard.

#53
Maconvert

Maconvert

    InsanelyMac Protégé

  • Members
  • PipPip
  • 51 posts
  • Location:Vancouver, BC, Canada
  • Interests:Electronics, Programming, Kite Boarding
Hi Dougaa,

So, have you got this all working for Snow Leopard yet?
If so, will you be writing an updated tutorial for that?
My wife just got a new Macbook Pro with Snow Leopard, so I plan to use that to set everything up.

Anyway, just curious.

Cheers!

#54
dougaa

dougaa

    InsanelyMac Geek

  • Donators
  • 179 posts

Hi Dougaa,

So, have you got this all working for Snow Leopard yet?
If so, will you be writing an updated tutorial for that?
My wife just got a new Macbook Pro with Snow Leopard, so I plan to use that to set everything up.

Anyway, just curious.

Cheers!


Yes, I have a very reliable Snow Leopard installation on my Bad Axe 2 machine (D975XBX2) with a Q6600. I'm working on the update.

#55
Maconvert

Maconvert

    InsanelyMac Protégé

  • Members
  • PipPip
  • 51 posts
  • Location:Vancouver, BC, Canada
  • Interests:Electronics, Programming, Kite Boarding
That's great! I can't wait.

:D

Cheers.

#56
dougaa

dougaa

    InsanelyMac Geek

  • Donators
  • 179 posts
The Snow Leopard version of this tutorial is available now at http://www.insanelym...howtopic=199832

#57
Johanmartin

Johanmartin

    InsanelyMac Protégé

  • Members
  • Pip
  • 38 posts
Thank You for your great guide!

I have a small question. I tried it using the same kexts as I used to boot the original DVD with a boot-1-3-2 CD. The installation stalls at the BSD-root line and also gives me Unable to initialize UIM.

Do I need additional kexts to install from an USB flash drive?

#58
dougaa

dougaa

    InsanelyMac Geek

  • Donators
  • 179 posts

Thank You for your great guide!

I have a small question. I tried it using the same kexts as I used to boot the original DVD with a boot-1-3-2 CD. The installation stalls at the BSD-root line and also gives me Unable to initialize UIM.

Do I need additional kexts to install from an USB flash drive?


Normally you shouldn't need any additional kexts to use the USB flash drive method. However, you could boot a DVD without USB working. If you need additional kexts to get USB to work, you would need to include them.

Besides using all the same kexts as boot-1-3-2, make sure your com.apple.Boot.plist matches what boot-1-3-2 uses.

#59
grimmwerks

grimmwerks

    InsanelyMac Protégé

  • Members
  • Pip
  • 10 posts
Well, went through the whole setup, and because I've got a Gateway 838 GM with a P4 3.0 ghz core solo -- but says I can do sse sse2 sse3 em64t in CPU-X.

Since I used the voodoo kernel (9.5) in 10.5.5 I put the mach_kernel on the usb drive, naming the original one mach_kernal_backup, so I didn't change the Boot.plist.

When I boot into the 10.6 installation I get the attached kernel panic; anyone that can tell me what I'm doing wrong, I would greatly appreciate. I even tried installing from 10.5.6 on the same machine, different drive, but get a kernel panic, as well.

So obviously it's something that *I* am doing wrong, but unsure what it is...

Attached File  kernel_voodoo_panic.jpg   240.77KB   5 downloads
Attached File  cpux.png   58.25KB   4 downloads

#60
pihva

pihva

    InsanelyMac Protégé

  • Members
  • Pip
  • 16 posts
Great guide. The only problem I found is Time Machine can't setup Backup Drive.
Message:
"The built-in network interface could not be found".

I'll try to find solution. If somebody knows how resolve this problem, please help.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy