For Starters, I would like to thank all of the people who have made this possible: The DellEFI/VoodooProjects teams for all their incredible work, SilverZero for his thorough documentation and desire to tinker, test and verify, and an anonymous friend from IRC. You know who you are. As a precursor to this, a bit of warning -- I come from a *NIX background, and my scripting shows this in droves. When I can find a more unix-y way to do it, I will. Other than the script for the creation of the USB install media and the postinstall script, none of the work here is mine. I have simply collected the kext's that works best for me, on my pair of Part #4321 Lenovo S10's. In my desires to make a much cleaner install method (in order to simply put an OSX usb-based restore disc away for emergencies), I realized that the work I was doing directly led me to a simple installation method, and decided to share it back to the community that got me this far. As always -- use at your own risk -- this has been tested with a retail 10.5.6 image ONLY, I have not upgraded to 10.5.7 as I have no compelling reason to yet. This setup works flawlessly on my pair of S10's, but your mileage may vary.
*EDIT* Since people are outwardly linking my script, as well as stealing my documentation with no praise, the file has been relocated.
USB Installation method
This install guide assumes that you intend to dual boot your system with either Ubuntu or XP, and that you have created the necessary media to install/restore either of these with ease.
Prerequisites
- Functional OSX installation (Can be a real Mac or OSX86 machine)
USB Stick at least 8 GB in size
The files located in S10-USBMaker.zip -- http://binarybuccaneers.org/USBMaker-S10.zip
OSX 10.5.6 Retail Disk
Ubuntu Netbook Remix 9.04 USB Live Image (Download from Ubuntu.com, instructions are available at download time)
Install Media Creation
-Mount the retail OSX image file on your work Mac
-Plug in the USB
-Go to Disk Utility (Applications → Utilities → Disk Utility, or type Disk Utility into Spotlight)
-Select the USB stick's partition, and click on the erase tab. Set the Partition type to Mac OS X Extended (Journaled, not case sensitive) and name the new partition “OSXDVD” -- my scripting is not very intelligent, and this name is a prerequisite.
-Select the Restore tab, and drag the mounted OSX retail image to the “Source” blank, and drag the mounted, newly reformatted USB partition called “OSXDVD” to the “Destination” blank and click restore.
-Feel free to add any applications you may want to add to your system after installation to the Apps folder found within S10-USBMaker.zip. This folder will be copied in its entirety to the USB stick, and will appear at /Apps on the newly installed system.
-Once the image has been restored to the USB stick, run the USBMaker command from the S10-USBMaker.zip file from terminal. The script will let you know what steps its working through, as well as when it completes. You now have a bootable OSX USB stick.
Install, Upgrade, and make completely functional
****NOTE****
This step may not be necessary -- Disk Utility is a very good partitioning tool, and may achieve anything necessary for an MBR partition installation with multiple operating systems. I simply haven't tested it, as bootable Ubuntu media was available to me when I started the routine. Also note, if you are doing an OSX-only system and reformatting the drive to a GUID/EFI type partition scheme, the post install script has been adapted for you as well.
-Set Hard Drive mode from AHCI to Compatible. If USB is not set to boot before the internal hard drive, set this now as well.
-Insert the Ubuntu USB stick into the Lenovo S10, and boot the system.
-Once Ubuntu Netbook Remix has restarted, go to Accessories → Terminal. Run the following command:
- Code: Select all
sudo gparted
-Once in gparted, lay out the partition scheme of your hard drive how ever you want. If you wish for Linux partitions, create these as ext2/3/4 as your needs require, and any OSX or Windows partitions, you will want to create as FAT32. They can be formatted as necessary later. Make sure that OSX is the first partition on the drive, as OSX will be taking over the boot loader purposes here. Once your drive is laid out to your desires, apply and reboot.
-When prompted to remove the Ubuntu boot media, remove the USB and replace with the OSX Install Media USB. Allow the machine to reboot, this should place you in the OSX Installer.
-Select a language and click the arrow (simply press enter if you want english), then click Utilities in the top menu. Go to Disk Utility.
-Once in Disk Utility, select the first partition on your internal drive, that you created previously for OSX. Go to the Erase tab, and format this partition as “Mac OSX Extended (Journaled, Not case sensitive)” and name the partition “OSX”. The name of the volume MUST be “OSX” exactly, or the post installation script will not work. Again, my scripts are simply a bit stupid.
-Close Disk Utility and proceed with installation. On the last screen before Install, select “Customize”, and remove the printer drivers and languages. This makes installation faster, as well as the overall size much smaller. Proceed with install, it will 'fail' at 100%.
-When the installer fails, click on “Utilities” in the top menu again. Go to Terminal, and run the the appropriate set of following commands:
For MBR partition scheme installations:
- Code: Select all
postinstall
reboot
For GUID/EFI partition scheme installations:
- Code: Select all
postinstall_efi
reboot
-When the installer reboots, remove the USB stick and allow the system to boot normally. You will view the introduction video (With sound!), then do the necessary steps to create your account (This can be found many places -- I personally just register
Once you're in a functional OSX desktop, there's still a few minor steps to do:
-Open a terminal window, and type the following:
- Code: Select all
open /Apps/sleepwatcher_2.0.5.dmg
...and install the 2 packages within the DMG file. This is an application to bring the audio back up properly after the laptop sleeps. Once the packages are both installed, run the following command from terminal:
- Code: Select all
sudo cp /Drivers/rc.* /etc/
This will wake up your audio as expected. Now we disable hibernate and remove the sleepimage:
- Code: Select all
sudo pmset -a hibernatemode 0
sudo rm -rf /var/vm/sleepimage
...and thats it! Your OSX install is now ready to rock!
A few notes: Don't forget to install any applications that you added to the /Apps directory! Also, if you ever need to rebuild your kext caches, open a terminal and type the following command:
- Code: Select all
kextupdate.sh
This will update both the default Apple kexts as well as the S10-specific kexts under /Extra/S10Ext
As I mentioned before, I have not upgraded to 10.5.7, I'm sure any of the many guides available (such as SilverZero's fantastic upgrade guide) will be helpful in this respect. Feel free to post any questions, comments, criticisms, suggetions, code fixes, etc! Again, this is all derived from the wonderful work produced by DellEFI, but it does not utilize any of their code and is all built by hand. Enjoy!
In case you missed the link above, the following is the download link: http://binarybuccaneers.org/S10-USBMaker.zip
-Corruption
