Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.3: Decrease the amount of time required to boot UNIX
Apparently Apple introduced a little bug with 10.3.2 where the boot script doesn't find a file where it's supposed to be. You can fix that by typing the following command into the Terminal (one long line, broken with a backslash here for narrower display -- if it doesn't work, remove the backslash and type as one long line):

sudo cp -p /System/Library/Extensions/BootCache.kext/\
Contents/Resources/BootCacheControl /usr/sbin

Enter your password and then reboot twice. Et voilˆ. This information appeared first in the Appple Support Forums.

[robg adds: I haven't tested this one, though I will the next time I hit the restart keys!]

    •    
  • Currently 1.67 / 5
  You rated: 5 / 5 (6 votes cast)
 
[29,944 views]  

10.3: Decrease the amount of time required to boot | 25 comments | Create New Account
Click here to return to the '10.3: Decrease the amount of time required to boot' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
c8h10n4o2 beat me to it...
Authored by: jiclark on Jan 15, '04 02:52:54PM

...and thanks for the clarification on the -p flag!



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: edwardsx on Jan 15, '04 02:27:36PM

This does not match whati\ is at Apple's site. Which one do I use



[ Reply to This | # ]
Bad encoding or the -p
Authored by: c8h10n4o2 on Jan 15, '04 02:46:27PM
I think somewhere the text got encoded poorly. Here is what I've pulled off the apple site:

 sudo cp /System/Library/Extensions/BootCache.kext/Contents/Resources/BootCacheControl /usr/sbin
The only difference is that the one on the apple site does not have the -p flag. All that does is preserve UNIX permissions which probably a good thing to add. Original poster's command:

 sudo cp -p /System/Library/Extensions/BootCache.kext/Contents/Resources/BootCacheControl /usr/sbin


[ Reply to This | # ]
Bad encoding or the -p
Authored by: robg on Jan 15, '04 02:50:25PM

Hmm, not sure what happened there -- somehow my work machine munged the text file for this hint only (I checked the rest and they look fine).

I've now fixed the code in the original, so nobody will understand what this conversation is about :).

-rob.



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: grahams on Jan 15, '04 02:52:42PM

It seems to me that you would be better off using a symbolic link than creating a copy of the file in /usr/sbin. This way, if BootCache.kext changes in the future your copy of BootCacheControl in /usr/sbin isn't out of sync (which could potentially cause major system headaches).

It seems that:

sudo ln -s /System/Library/Extensions/BootCache.kext/Contents/Resources/BootCacheControl /usr/sbin/BootCacheControl

(all one line) would be a better command to try.

This would fall in line with other symbolic links in /usr/sbin, such as AppleFileServer.



[ Reply to This | # ]
Seems logical...
Authored by: jiclark on Jan 15, '04 02:54:55PM

So are you gonna post that over at the Apple discussion about the issue?



[ Reply to This | # ]
Seems logical...
Authored by: mladd on Jan 15, '04 03:03:55PM

Someone already has. It's just hidden deeper in that discussion.

-Mike



[ Reply to This | # ]
Seems logical...
Authored by: grahams on Jan 15, '04 03:05:52PM

Well, I did too, so I guess I should have read all 100 messages. Then again, it seems kind of important to me, so i guess a bump won't hurt anyone (unless I am wrong and it causes computers to explode. :P)



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: vinylone on Jan 19, '04 09:51:16AM

How do I *undo*

sudo cp -p /System/Library/Extensions/BootCache.kext/\
Contents/Resources/BootCacheControl /usr/sbin

I went and applied it before I read the rest of the posts (argh!). There's a lesson there somewhere...

regards, and thanks in advance,

Eric Lecht

---
I do what I can, I work in the dark....



[ Reply to This | # ]
Strange characters in hint
Authored by: derekhed on Jan 15, '04 02:54:24PM

In this hint I am getting the capital E with the circumflex on top:

Ê

These should be replaced with spaces.



[ Reply to This | # ]
Strange characters in hint
Authored by: robg on Jan 15, '04 03:21:20PM

It's been fixed in the original hint now...

-rob.



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: cybergoober on Jan 15, '04 03:22:49PM
For the non-Terminal types, someone released an AppleScript Studio app that does the same thing.

SpeedStart

I believe it also has an "undo" feature, just in case

[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: gommino_2000 on Jan 15, '04 06:11:03PM

For those of you who have tried it and think it doesn't work...you have to restart twice for it to take effect.

Rob.



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: DavidRavenMoon on Jan 15, '04 10:09:29PM

Doing this changed my startup time from 1:36 to 45 seconds! Woo Hoo! :)



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: nyarlathotep on Jan 15, '04 06:25:17PM

Why does Apple consider this to be the correct fix? This is a silly fix. As stated, it should obviosuly use a symbolic link, as mentioned in another post, but even that is not good enough really. The correct fix would simply be to edit the /etc/rc file.

I think this hint on Apple's site was writen by someone who did not really understand what was going on.. or who was not willing to employ that knowledge for some reason.



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: grahams on Jan 15, '04 08:17:17PM

Anyone can post to the Apple Support Forums.



[ Reply to This | # ]
Use Caution
Authored by: TigerKR on Jan 15, '04 09:19:26PM

I had a conversation about the BootCacheControl situation:

iBuddy wrote:

"You haven't been using the BootCacheControl hack that I propagated? I traced some trouble to it, my cache apparently got out of sync after switching around the boot volume a few time, I've retracted my advice to use this hack."

I wrote:

"Try using a symlink. I've had no problems doing that.

sudo ln -s /System/Library/Extensions/BootCache.kext/Contents/Resources/BootCacheControl /usr/sbin/BootCacheControl

"

iBuddy wrote:

"I _was_ using a symlink. I had no problems for a while, either. The first sign of trouble was returning to my home system after testing an external firewire boot off my emergency/backup drive. Things got progressively worse to the point where I couldn't boot at all. Deleting the symlink solved all my problems, I've had none since.

I'm guessing Apple knew there was trouble, that's why they took it out. They're not stupid; I'm always concerned about the implied arrogance in making any hack like this."

I wrote:

"Hmm.. thanks for the warning. I only reboot like once or twice a week, and since I have 10K SCSI drives (which I keep optimized with Norton Speed Disk), booting up is pretty fast anyway. So I guess I'll also delete that symlink."



[ Reply to This | # ]
Use Caution
Authored by: TigerKR on Jan 15, '04 09:33:09PM

also see these links for other people's experiences:

http://discussions.info.apple.com/webx?128@37.ApkNaCubab1.39794@.599e619e

http://discussions.info.apple.com/WebX?128@37.ApkNaCubab1.0@.599e61e8



[ Reply to This | # ]
Use Caution
Authored by: jkline on Jan 17, '04 08:06:34PM

So how does one go about removing this modification after the fact. I applied the original fix in Terminal as written... everything seemed fine. But now based on what I am reading it seems best to get back to what was there in the first place.

I am a UNIX novice here... so please help with the correct command to remove this patch.



[ Reply to This | # ]
Use Caution
Authored by: encro on Jan 18, '04 12:28:07AM
To reverse it you need to look at what the command you entered is doing:

sudo ln -s /System/Library/Extensions/BootCache.kext/Contents/Resources/BootCacheControl /usr/sbin/BootCacheControl
This means using elevated priviliges (Superuser Do) make a symbolic link to the file to the BootCacheControl file found in /System/Library/Extensions/BootCache.kext/Contents/Resources/ and place the symlink in: /usr/sbin/BootCacheControl

Now you know where that symlink was created you can simply open the folder by using the Finder's GO Menu command 'Go to Folder' and enter /usr/sbin/ in the search field and delete the BootCacheControl file from there. or alternatively:

sudo rm -iv /usr/sbin/BootCacheControl
Which will remove a file (showing the removal and asking for confirmation to remove)

[ Reply to This | # ]
Use Caution
Authored by: webbix on Jan 17, '04 11:13:22PM

That helps explain some things for me (maybe). I wondered why I could not boot from my external FW drives. I BU using psync and usually reboot from the external to make sure it is working. It has not. I have a couple of different FW drives so I thought that may be it. I need to 'undo' the fix; applied via command line on my TiBook but with 'SpeedStart' on my Cube and iBook (could not find the source of the original fix even with Google).

I was beginning to think that Apple had replaced booting from external in 10.3 with the diskutility 'restore' option after booting from Installer. I had not had a chance to check the Apple site to verify. One peculiar thing though, I could not boot my 10.2.8 iBook with the 10.3 BU either so maybe it is affected on the BU volume also. Anyone have any clarification or am I on the right track?



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: quest on Feb 15, '04 11:15:43PM

WARNING - this modification breaks your screensaver password. After I did this mod my screensaver pw didn't work right after reboot, only after logging out then back in was functionality restored.

Even then... on next reboot it would break again. I would advise people to NOT use this modification if they use this feature.

But... I must say it did improve startup times =P



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: imidazole@cox.ne on Feb 25, '04 04:21:21PM

I have been running this for a long time on at least 3 of my systems, and the screen saver password works perfectly fine.

Furthermore, I have noticed No alteration in the way the system works or performs, in any way shape or form, aside from it booting up 2x faster.

I think your screensaver password issue is just you, man.



[ Reply to This | # ]
10.3: Decrease the amount of time required to boot
Authored by: Brian Kendig on Mar 15, '04 07:24:40PM
Apple now has a technical article about this:

http://docs.info.apple.com/article.html?artnum=86639

[ Reply to This | # ]

10.3.3 now fixes this
Authored by: j0nathan on Mar 17, '04 06:50:17AM