Jump to content
9 posts in this topic

Recommended Posts

Hi all, I'm pretty new to this but looking forward to the 10.5.2 release. Someone wrote in another thread that you can backup your current kernel in case the new update doesn't work. My question is, how do you do that? What exactly is the kernel? Is it a single file or a group of files? I've searched this forum and searched the google, but nothing clear comes up.

 

Many thanks in advance!

Link to comment
https://www.insanelymac.com/forum/topic/83194-how-do-you-replace-a-kernel/
Share on other sites

LOL no, you don't use backslashes in OS X for file paths! Or *any* OS except for Windows, for that matter.

 

It should just be (assuming /Volumes/Leopard is your mounted OS X installation)

 

sudo cp -R /Volumes/Leopard/mach_kernel /Volumes/Leopard/users/yourusername/Desktop/

 

Don't forget the trailing slash at the end of whatever path you choose to copy it to; if I left off the last "/" at the end of the above command, for example, it would attempt to copy the mach_kernel file and then rename it "Desktop". Having the trailing slash "/" means "put the file inside the Desktop folder".

LOL no, you don't use backslashes in OS X for file paths! Or *any* OS except for Windows, for that matter.

 

It should just be (assuming /Volumes/Leopard is your mounted OS X installation)

 

sudo cp -R /Volumes/Leopard/mach_kernel /Volumes/Leopard/users/yourusername/Desktop/

 

Don't forget the trailing slash at the end of whatever path you choose to copy it to; if I left off the last "/" at the end of the above command, for example, it would attempt to copy the mach_kernel file and then rename it "Desktop". Having the trailing slash "/" means "put the file inside the Desktop folder".

 

Thanks for that tip on the slashes, I get them confused (still new) ;)

 

EDIT: GOT IT (once I had the right volume name) Big thanks! :D

 

Can anyone tell me what the -R mean? I found a website with the terminal commands but it doesn't list the switches.

 

Thanks again! :D

I'm pretty sure you don't need to use "cp -R" because mach_kernel is a file not a directory, so you don't need to copy recursively.

 

Also, the way I (and most, I think) have always done it is to do

 

sudo cp /mach_kernel /mach_kernel.bak <press enter>

 

this makes a copy of it called mach_kernel.bak. If you have problems with the new one, then just copy the backed up one to the main one. This is much easier to type in :) .

 

 

 

 

another way:

 

if you wish to boot with another kernel just once, for testing, you can do this:

 

go into boot options (at darwin boot) and type:

 

kernel=/path/to/test/kernel/mach_kernel

 

I think ... I haven't tried but it makes sense and in com.apple.Boot.plist there is a place where the kernel is named.

 

 

 

sorry if i'm rambling...

×
×
  • Create New...