29 November 2009

What To Do When You Got Kernel Panics

Chances are you've seen this a lot of times in your hackintoshing journey:


Chances are, you've raked the hair on your head a dozen or more painful times in frustration and with the key to the enigma remainin unbeknownst to you; you resort to wiping out your hard drive and reinstall OSx86 - you start from scratch; back to square one.
No, this post does not promise to put an end to all your hackintoshing woes caused by kernel panics but suggests what can constitute a logical way to start troubleshooting your OSx86 system gone berserk.

1) Boot in verbose mode - as if this bit hasn't been the subject of many a noob inquiry, let's explain how does one "boot in verbose mode" exactly?
 You have a bootloader with which you boot into your hackintosh Leopard/Snow Leopard. It can be PC EFI or Chameleon, or Boot Think, or whatever other bootloader iteration you've got. Even if you installed using a custom distro like iDeneb or iAtkos or iPC, etc. and hence cannot remember "installing or configuring any d@mn bootloader" on your machine, you still have a bootloader.

The main point? Know that you can interrupt the bootloader before it, well, loads Mac OS X, by pressing any key on your keyboard before the countdown (set by default to 5) is over. And then, depending on whether you have graphical bootloader enabled or just plain text, (a) you use left and right arrow keys to choose which partition to boot (in case of multiple bootable partitions) and up and down keys to choose "verbose mode"  or (b) you type "-v" at the "boot:" prompt. And press Enter. 

2) Take note of what it says - of course you're not supposed to do an impromptu deciphering of cryptic lines like "MAC Framework successfully initialized using 10485 buffer". This is when the most important hackintosh technique comes in: Patient and intelligent researching. Alright, that was admittedly, putting uncalled for fanfare so "Patient and intelligent googling" then - we didn't drop the word "intelligent"; if you hardly think what you're googling is logical in relation to the issue you're trying to solve, endeavor to be intelligent by being open to bits and pieces of information that fall you way as you research, or google, rather. They're bound to be relevant in your OSx86 life at some point or another.

If things are still awry, try booting with "ignore caches" option or "-x" flag.

Actually, most of the times, a kernel panic is caused by unruly and incompatible kexts that wreak havoc on your system. In which case, you'd intelligently surmise that you need to uninstall those pain in the arse kexts and also, you'd intelligently surmise that you can boot up your vanilla system with an alternative way in form of a USB flashdrive booter which, because it implements a different set of kexts and other configuration files that you've proven to work on your OS X version + machine model, will enable you to get inside your Mac OS X account again.

Finally, you'd intelligently surmise again that you will be taking care of those problematic kexts or config files, like an incomptable dsdt.aml file (whoever promised that an HP Mini 311 dsdt.aml will play 100% well with your 1000 anyway?) while you're logged into your user account. The goal is make your machine able to boot into OSx86 by itself like it used to in the golden days. And for the love of goodness, you'd take at least a mental note of those kexts which cause your OSx86 installation to misbehave. Responsible hackintoshing.

In my case, I still get kernel panics from time to time, even when I didn't do any tinkering with my boot files or kexts. 95% percent of the time, booting in verbose mode sufficed - I am transported to my OSx86 desktop without any problem and the origin of that random "kink" is forever chucked out into obscurity; that is until, perhaps, I dig inside Console.

I find myself unable to complain about kernel panics. Eeven real Macs experience them once in a while.

2 comments:

Anonymous said...

I NEVER have a kernel panic with my real Mac. Ever. Ever. I haven't had one since the day I took it out of the box. So I'm not sure why you said that real Macs have them. Mine never has. Ever.

LeMaurien19 said...

I got that from a friend who owns a MacBook, a real one. And I said "real macs experience kernel panics once in a while"; meaning when there's a prob and computers, even as most brilliant and efficient among all computers in the world do have probs once in while. That's why there's macosxhints.com also troubleshooting section in Mac centric magazines.

But if you didn't and you don't and, as you said, NEVER, then good for you.