Log in

No account? Create an account

Previous Entry | Next Entry

My Hackintosh

So I'm attempting to get OS X (10.5.1) on my Intel PC. In the community, they call this Hackintosh. Yesterday I got pretty far, but I didn't quite make it. This entry is not really for anyone to read unless they really want it, but rather for me to document my progress while I can still remember. Plus, someday, maybe it'll be easier if I need to do this again.

Step 1: I found a torrent for an ISO image by a hacker called Kalyway that contains OS 10.5.1 (Leopard) with vanilla kernel support. Vanilla means that the kernel hasn't been patched or updated, and Apple Software updates that update the kernel won't break my install. Thanks to EFI (not electronic fuel-injection, Extensible Firmware Interface), this is now possible.

Step 2: Prepare a spare hard drive. It's possible to dual-boot XP and OS X, but I didn't want to have to install a Bootloader, so I decided to take one of my 80GBs, back up the small amount of data I have on it, and format it for HFS+ (Also called Mac OS Extended, the file system used since OS X, not compatible with OS 9, which used HFS, or just Mac OS). Windows XP uses NTFS, a totally different file system, and neither one supports the other, so to be able to write to the XP partition, I'll have to install a utility after the OS X installation. Another reason to use a different hard drive. I'm not a big fan of partitions, especially more than one partition with different file systems.

Step 3: Burn the Kalyway ISO to a DVD from which to boot/install 10.5. This was the easiest step by far.

Step 4: Boot from the DVD. It took a long time to boot, but it finally loaded "Darwin," which seems to be an application that wraps the Mac OS install program, installing drivers that it might need (keyboard/mouse/etc.). I selected my language, and was on my way.

At first glance, I noticed that neither of the hard drives were available to install on. They both had red X's. Reading the forums, I found out that I needed to format and create an HFS+ partition before attempting to install. Windows sort of does this on the fly, or at least lets you know what you need to.

Step 5: Formatting/Partitioning the hard drive. Resolving that problem involved running Disk Utility from the Installer. Formatting the drive gave me 5 options:

-Mac OS Extended
-Mac OS Extended (Journaled)
-Mac OS Extended (Case-Sensitive)
-Mac OS Extended (Journaled, Case-Sensitive)

I had no idea what Journaling was or what Case-Sensitive file-systems were (though I had a pretty good hunch about the second one) before this project. I learned quite a bit. Turns out Journaling doesn't matter much in the end, because you can change that later, but you CANNOT boot from a drive that is Case-Sensitive. Thanks once again to the wonderful online community/forums/wiki.

Step 6: After formatting and creating an HFS+ partition, I was ready to install OS X! I hit continue a few more times and it installed away. It took about an hour total, but the time reporting was way off (It said it would take 30 minutes total). After it finished, it said I needed to reboot.

Step 7: Rebooting. I rebooted the machine, but I had to change my BIOS to boot to the other drive. Once I did this, I got a dreaded black screen with the simple words "b0 error" on it.

It took quite a while to fix this. I had to run the Install DVD again, open a Terminal window, find out which Disk was the correct disk, run fdisk on the correct disk, make sure the correct partition was set as active, and flag the correct partition as bootable. The following lines accomplished this:

fdisk -e /dev/rdisk0 <--0 being the disk number
p <--shows the partitions
f 1 <--flags partition 1 as bootable.
write <--commits the changes
exit <--exits fdisk
exit <--exits Terminal

(It was already set to AF, which identifies it as HFS+ and the active partition, so I didn't have to look up the command to do that.)

After the "write" command, I was prompted as to whether or not I wanted to really do this. I said "Y", and it told me to do this, it needed to be rebooted.

Well, I sensed a problem right there. How was it going to remember that it needed to do those changes, when the OS (so to speak) was on a DVD, basically just stored in RAM at the moment?

I confirmed my suspicions when I booted up and, once again, got the "b0 error."

I found out, through a different forum, that when you boot Darwin, you can hit F8 for advanced options. The options "-v" (verbose debugging information) and "-s" (single-user mode) were especially helpful. "-s" caused Darwin to start up in a terminal window, without the GUI. I ran fdisk from here and the write succeeded without needing to be rebooted.

I rebooted, and, of course, I got the SAME error. I was about ready to give up at this point, but I didn't, and I'm glad I didn't, because yet another website which gave me the instructions to use the command "write" followed by "update" followed by "exit" in order to commit the changes.

Well, well, well. After I did that (from single-user mode, of course), it worked. I didn't get the "b0 error"! What I did get, though, was more troubling:

"HFS+ Partition Error"

GREAT. Not only do I have another error, but I have one with absolutely no code that I can Google to get help. Luckily, this happened to be an error that came up enough that many people had seen it before. This error means that your master boot record on your HD has not been re-written. Of course. This is because I did a simple format, and didn't bother re-writing it.

I went BACK through the partition, and install, then found out all I had to do was run SU mode and run fdisk with the option "-u /dev/rdisk0". After doing that, I re-installed OS X, and it booted up to a blank screen, longer than the last time, and then BAM, rebooted.

I was pretty mad by this point. This wasn't even an error that I could look up at all. It just rebooted itself. So I combed the forums for tutorials (it's become quite evident by now that I should've read them from the start) and finally stumbled upon the answer: I didn't do a Custom setup. The customize button was inconspicuous, and innocuous, just sort of sitting there in case an advanced user might need it. I didn't consider myself an advanced user, so I left it alone.

Little did I know that Kalyway had hijacked it, and added all the options you needed, along with helpful tips like "check both these boxes" and "check only one of these!! you need to match your video card waith this drifver!"!!!"

So I went through custom install, and I was about to start it, when I realized that I needed to go to bed, it was going to take an hour, and when it finished, if it didn't work, it would be rebooting itself all night. So I waited at the Install screen, and "when I get home tonight, this rabbit's goin' down!"


( 13 comments — Leave a comment )
Apr. 3rd, 2008 10:00 pm (UTC)
On a technical note, it's "OS X", not "OSX". And it's "ten", not "ecks".

Good luck with tackling this tonight. I've considered doing this w/ my PC, but never really had the motivation to make it happen.
Apr. 3rd, 2008 10:04 pm (UTC)
I changed that back and forth 100 times, but I couldn't decide which looked right.

As for the "ten" thing, where'd you hear that?
Apr. 3rd, 2008 10:08 pm (UTC)
Watch any Steve Jobs keynote and you'll hear "OS Ten" a zillion times. Wikipedia corroborates this and cites this page at Apple.com as its source.

"Mac OS X (pronounced /mæk oʊ ɛs tɛn/) ..."

As for the spacing, I again defer to Apple: http://www.apple.com/macosx/
Apr. 3rd, 2008 10:09 pm (UTC)
That's what I was looking for. I never questioned the spacing.
Dec. 20th, 2008 11:33 pm (UTC)
Well try and get me to say LINux instead of linUX. Good luck with that. I'll be pronouncing it OS ecks. And it works better when you say os-ecks-86. OS Ten Eighty Six sounds like a 70s CB call over. But to each his own. :)
Apr. 3rd, 2008 11:25 pm (UTC)
I've been pretty tempted to try this myself, especially since I don't want to spend the elventybillion dollars on a mac.
Apr. 4th, 2008 01:05 am (UTC)
Same here lol. If I like it, though, I might think about getting one.
Apr. 4th, 2008 02:04 am (UTC)
I actually just ordered myself a new desktop. (lol @ the main HD in the one I just posted about died)
Apr. 4th, 2008 08:02 pm (UTC)
A Mac or a PC?
Apr. 5th, 2008 05:17 pm (UTC)
PC, specifically one of Gateways "gaming" models.
Oct. 7th, 2008 04:28 am (UTC)
hey im using your entry as kind of a walkthru... im having the exact same issues, but in a different order, i never screwed up the custom install part, which is where u seem to have dead ended...is this post followed up anywhere? did you ever get it to work? I also dont understand some of the things you said, im not exactly fluent with terminal :-/ any help is greatly appreciated thanks so much
Oct. 7th, 2008 03:12 pm (UTC)
I never got it to work. I chalked it up to a hardware incompatibility. I have a new motherboard now, though, so I might try it again.

Which parts do you need me to explain. I'd be happy to (if I can remember lol).
Oct. 9th, 2008 03:55 am (UTC)
gah now I dont remember lol
for some reason we cant get the internal drive to mount anymore, we installed leo4allv3 on an external drive but cant figure out how to fix the internal drive, since it wont mount in disk utility or anything
( 13 comments — Leave a comment )

Latest Month

December 2010


Powered by LiveJournal.com
Designed by Naoto Kishi