![]() |
OSX broke after trying to change mach_kernel
Well I became impatient and thought that a file I had was voodoo. So I replaced my current Mach_Kernel with the file that I thought was voodoo but I guess it wasn't....
ANYWAYS now when I start up OSX86, my screen just flashes before it even goes through any of the "code" stuff and restarts.... Am I completely screwed or is there any way to fix it... =/ |
Depends. What distro did you use and did it offer a option for kernel installation? If so, only install the kernel OR you could copy the kernel that boots your installation disc right to your startup disk.
Boot the DVD to the installer, then run terminal.app. It's under Utilities in the installer menubar. cp /mach_kernel /Volumes/<startup disk name> Example: cp /mach_kernel /Volumes/iMac If your startup disk has a space in it's name, it's as follows: cp /mach_kernel /Volumes/Macintosh\ HD Also, I would suggest that when you first start terminal, you do the following: ls / This will show you a list of all the files in the root of the DVD filesystem. This way you know exactly the name of your kernel (some install DVD's have things like mach_kernel.voodoo as the kernel name). If the name is not mach_kernel, then just use the right name and it will most likely work and allow you to boot your system again. |
Thank you for the detailed walkthrough.
I did all the steps and this is what I got? http://i116.photobucket.com/albums/o...i/DSC00019.jpg I started up my HD and its doing the same thing. Did I do something wrong? I am very greatfull for the support so far |
read carefully he says:
Code:
cp /mach_kernel /Volumes/<startup_disk_name>/ |
You may also use quotes around names with spaces.
/"Folder with space"/file.txt Is equal to this /Folder\ with\ space/file.txt When you do get back up and running I would recommend making a backup copy of the kernel that works so that in the case that this happens again you can boot using the option -v mach_kernel.backup to load the original Code:
cp -R /mach_kernel /mach_kernel.backup |
@eric2red
I'm not seeing what I did wrong? Isn't my startup disk what I named my Hardrive? http://i116.photobucket.com/albums/o...cture1-8-1.png |
Quote:
Code:
cp /mach_kernel /Volumes/OSX\ HD/ |
Oh my god thank you soooo much! Now my system actually loads. BUT It's stalling at this part and won't boot any further.
http://i116.photobucket.com/albums/o...i/DSC00044.jpg I have no idea what USBF is? My guess is it has to do with my USB er something but Idk whats up with it? |
try booting with "-x" (safe boot), so u can see if it really boot.
And i see in your screenshot something message about PS2Nub kext, so if you have both mouse and keyboard through usb ports, then i think u can erase that kext, just to fix issues. |
the booting with -x didn't change anything. same exact screen.
any other ideas? |
try "-x -v" and write down what's the last line your seeing
|
http://i116.photobucket.com/albums/o...i/DSC00045.jpg
last string is Code:
RTL8139: :fixEnetFlowControl - Flow Control is disabled |
are u sure all what u did was replace the kernel??
try boot "-s", the check boot volume, mount for write-read access, and then: Code:
cd /System/Library |
Also try disabling your network card in the BIOS. See if that gets you any further. Sometimes the system will hang at the next line but not display it.
|
Quote:
EDIT I used those commands (with my brothers help) using the terminal on the install disk. I also made sure they were being applied to my OSX HD and not to the install disk. Anyways It did not change anything at all...Still the same screen. The reason I changed my kernel in the first place was because I was getting the error where I could not mount a .dmg disk image or whatever it's called. I got the "mounting disk" kernel panic after installing the 9.6.0 kernel based on voodoo.Then after replacing the kernel with another kernel that I believed was my old 9.5.0 voodoo kernel, I started to have this proble. I have no idea if that information would help but I really need to be able to access my OSX HD and it is getting very frustrating not being able to do so. |
We could try downloading the 9.5.0 Voodoo kernel from their website, placing it on a usb thumb drive and install it on your machine.
Getting the Kernel Voodoo Website: http://code.google.com/p/xnu-dev/ This is a DMG so you are going to want to copy the mach_kernel to the root of you thumb drive. If you do not have a mac to open the DMG, I have downloaded it and repackaged it into a ZIP file and uploaded it here: http://rapidshare.com/files/218278593/Voodoo.zip I would recommend making sure the USB drive's label is one word with no spaces Installing the kernel So now you have the kernel on a thumb drive. Plug the drive in and boot your install disk. Open Disk Utility to see where your USB drive's partition is mounted. Should be listed under "Mount Point". It is generally /volumes/YOURDRIVESLABEL Now open Terminal and follow the commands below. 2. Copy the new kernel from your USB thumb drive to the root directory. Replace "usbdrive" with your drive's label. Replace "osx" with your hard drive's label. Code:
cp -r /Volumes/usbdrive/mach_kernel /Volumes/osx/mach_kernel Code:
chown root:wheel /Volumes/osx/mach_kernel* Code:
chmod 644 /Volumes/osx/mach_kernel* 1. Using quotes: Code:
/Volumes/"my drive with spaces"/ Code:
/Volumes/my\ drive\ with\ spaces/ |
i'm agree with lanceomi, cause if u just replace the kernel i don't see how u can't go back to your previous state by replacing the old kernel.
|
Wow thank you both eric2red and lanceomni for ALL your help and time spent writing up directions on terminal commands. Also thank you lanceomni for uploading the .zip file of the voodoo kernel!
Both of you were a tremendous help. I can't thank you enough. My system is up and running perfectly. Thank you. |
Good to hear
|