Jump to content

[Solved] Speeding up boot time


  • Please log in to reply
19 replies to this topic

#1
Crabhunter

Crabhunter

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 257 posts
Anyone got any tips for speeding up boot times in 10.8.2
Using a sata hard drive Windows and Ubuntu both take 27sec but ML is taking 62sec.
I have tried use kernel cache = yes but the time remains the same and I lose my trackpad.
I've read about using some Snow leopard kexts but I think that broke after10.8.1
Mike

#2
rob1980

rob1980

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 172 posts
You shouldnt lose your trackpad, do you have an extensions folder in EXTRA?

#3
Crabhunter

Crabhunter

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 257 posts
yes but I've put all my kexts in S/L/E
Mike

#4
rob1980

rob1980

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 172 posts
try repairing and rebuilding the cache again, use kext wizard, then try booting with kernelcache=yes

#5
iFIRE

iFIRE

    InsanelyMacaholic

  • Banned
  • PipPipPipPipPipPipPipPipPipPipPip
  • 3,807 posts
  • Gender:Male
  • Location:Bcn-Spain
buy a SSD Disk, mine boot in 9seconds :whistle:

#6
rob1980

rob1980

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 172 posts
Mine takes 42 seconds on SATA as a comparison for you. (thats from the point chameleon loads OS X to when I have to input my pasword at login)

#7
Crabhunter

Crabhunter

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 257 posts
well I've repaired permissions, rebuilt the cache but if I boot with use kernel cache I still lose my trackpad.
This might be related to the problem I have after rebooting from Ubuntu into osx.
Still no increase on boot time.
Mike

#8
HUSABER

HUSABER

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 914 posts
  • Gender:Male
  • Location:Cyprus
  • Interests:HusabergFC-600 FourStroke,KTM500 TwoStroke,TM300 TwoStroke
    Free Time-My Hackintosh&Ap...
Write on Terminal app this command:
sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions

#9
Dr. Hurt

Dr. Hurt

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 1,493 posts
  • Gender:Male
  • Location:Cairo, Egypt and NYC, USA
  • Interests:Wandering around on the internet!! Politics, Sci/Tech, Medicine.
Mine boots in 30sec on sata hdd. Check system boot in console and see which processes are taking the most time.
PS. I lose DVD drive when I use kernel cache. Haven't been able to fix it.

#10
Crabhunter

Crabhunter

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 257 posts
@Husarber, now I've lost trackpad, do I just delete make cache?
boot time down to 45sec
Mike

#11
HUSABER

HUSABER

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 914 posts
  • Gender:Male
  • Location:Cyprus
  • Interests:HusabergFC-600 FourStroke,KTM500 TwoStroke,TM300 TwoStroke
    Free Time-My Hackintosh&Ap...

The Solution

It’s simple, really: force Lion or ML to rebuild the kextcache and use it to boot. The solution thread on InsanelyMac.com (one of many like it) contains a good explanation of what’s actually happening, but here’s the code to build the cache (Edit: to make OS X also build a cache for your /Extra/Extensions folder, add “/Extra/Extensions” to the code below):
sudo kextcache -v 1 -a i386 -a x86_64 -m /System/Library/Caches/com.apple.kext.caches/Startup/Extensions.mkext /System/Library/Extensions This *should* accomplish the same thing as setting the “kernelcache = yes” flag in com.apple.boot.plist. What does setting this flag do? Please note that many a contributor to the InsanelyMac.com forum has reported kernel panics resulting from using this flag, while others have reported Lion or ML booting fine (and quickly) but ignoring the kernel extensions placed in the /Extra/Extensions directory.
I have ONLY created the Extensions.mkext using the terminal code above; I HAVE NOT added the “kernelcache = yes” flag to com.apple.boot.plist.
The result? My machine now boots in seconds instead of minutes. That simple



#12
Crabhunter

Crabhunter

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 257 posts
Well although this did shave 20sec off the boot time I had no trackpad :(
I had to delete the mkext to boot with trackpad.
I'm not sure which kext is responsible for it, I assume it must be a usb mouse driver or perhaps ps2 mouse driver as it does not show up in settings as a trackpad.
Whichever kext it is it is obviously not being added to the mkext whichever method I use.
I think this is also why I have trouble with it when I restart from Linux into osx.
Mike

#13
HUSABER

HUSABER

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 914 posts
  • Gender:Male
  • Location:Cyprus
  • Interests:HusabergFC-600 FourStroke,KTM500 TwoStroke,TM300 TwoStroke
    Free Time-My Hackintosh&Ap...
http://www.osx86.net..._ps2_32-64.html

#14
artur-pt

artur-pt

    InsanelyMacaholic

  • Local Moderators
  • 4,646 posts
  • Gender:Male
  • Location:Portugal
  • Interests:TechManiaco
hello

if u have all kext in system/library/extensions ...

run in terminal

sudo kextcache -prelinked-kernel

that rebuild u kernelcache and that is the proper way to run ML

copy from terminal the result of command and post

about u trackpad ... is a a ps2 kext , but u must know what brand is u trackpad.. sinaptics , elantech.. etc

and use a proper ps2 kext for it

good hack

#15
Crabhunter

Crabhunter

    InsanelyMac Sage

  • Members
  • PipPipPipPipPip
  • 257 posts
Well Husabers kext didn't work and between osx, windows and linux I cannot find out the make of my trackpad.
I'm going to concentrate on my LAN for a while.
Mike

#16
Ega Indra R

Ega Indra R

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:Indonesia

hello

if u have all kext in system/library/extensions ...

run in terminal

sudo kextcache -prelinked-kernel

that rebuild u kernelcache and that is the proper way to run ML

copy from terminal the result of command and post

about u trackpad ... is a a ps2 kext , but u must know what brand is u trackpad.. sinaptics , elantech.. etc

and use a proper ps2 kext for it

good hack

this is what happend when I use sudo kextcache -prelinked-kernel :

 

Kernel file /mach_kernel does not contain requested arch: i386
nvenet.kext - no dependency found for com.apple.driver.NVSMU.
nvenet.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
nvenet.kext - no dependency found for com.apple.driver.NVSMU.
nvenet.kext - no dependency found for com.apple.driver.NVSMU.
Prelink failed for com.apple.nvenet; aborting prelink.
Failed to generate prelinked kernel.

 

 

 



#17
artur-pt

artur-pt

    InsanelyMacaholic

  • Local Moderators
  • 4,646 posts
  • Gender:Male
  • Location:Portugal
  • Interests:TechManiaco

hello

 

run disk util and repair permissions..

 

and do the command again

 

make sure u have all system kext

 

good hack



#18
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,120 posts
  • Gender:Male
  • Location:Brazil

 

Kernel file /mach_kernel does not contain requested arch: i386

nvenet.kext - no dependency found for com.apple.driver.NVSMU.
nvenet.kext is missing dependencies (including anyway; dependencies may be available from elsewhere)
nvenet.kext - no dependency found for com.apple.driver.NVSMU.
nvenet.kext - no dependency found for com.apple.driver.NVSMU.
Prelink failed for com.apple.nvenet; aborting prelink.
Failed to generate prelinked kernel.

 

nvenet.kext is an Apple shipping driver, it's a plugin inside IONetworkingFamily.kext. It seems strange that it should cause trouble on a system where it's not even needed, it's a driver for nforce chipset ethernet.

Maybe it's an older version that has been patched - is this a retail install or was it done with a distro? No matter, try simply deleting it - it's totally safe to delete since you have no nforce ethernet hardware - assuming this is happening on the Gigabyte motherboard in your signature, of course.

 

Go to /System/Library/Extensions, right-click IONetworkingFamily.kext, click "show package contents" then go to Contents/PlugIns and trash nvenet.kext. Type your password when prompted. Then try rebuilding caches and the prelinked kernel again.

 

NVSMU.kext also ships with OS X - it's probably a driver for the system management unit on macbooks (and iMacs?) with nvidia chipset. Contrary to popular belief, It's not part of the nvidia video card drivers. You could simply delete this as well.

 

If you decide to update to 10.8.3 or .4 definitely download and run the full combo update instead of using Software Update. Both kexts will be restored but they should no longer cause any trouble.



#19
Ega Indra R

Ega Indra R

    InsanelyMac Protégé

  • Members
  • Pip
  • 20 posts
  • Gender:Male
  • Location:Indonesia

I use iATKOS , I already updated to 10.8.4 I'll try delete the kext and post the result, thanks

 

I try again and here is the result :

 

Kernel file /mach_kernel does not contain requested arch: i386, that's only cause ML is x64 kernel righr?  so Its working now thank you :)



#20
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 6,120 posts
  • Gender:Male
  • Location:Brazil

So I was right lol....glad you got it working. Yes that message is normal on Mountain Lion.

 

If you'd done a retail installation you would never have had this problem.







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy