Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: USB pen drives only work intermittantly




On 18 Jan 2005, at 14:59, Michael Dinsmore wrote:

That's interesting info, although I'm not affected by this particular issue.

Can you elaborate:  should these caches be cleared on a reboot?  Or do
they (normally) persist across reboots?

The OS/programs in question manage this; some are cleared on re-boot, others persist until certain parameters cause them to be rebuilt. For instance, on startup the system checks whether /System/Library/Extensions is newer than the kernel extensions cache - if so it re-builds it, otherwise it carries on.
OS X seems to do a huge amount of caching both in the Caches directories and at a much lower level within the system (hotfiles and the like).


Is clearing this cache a part of updating via Software Update ie
during the "optimization" process?

Any software updates that require caches to be expired would do so as part of a post-flight script which would be handled by SoftwareUpdate or the Installer. If you are using standard apple methods to install you software you shouldn't have to worry about them.


I'm not entirely sure why John and I have run into this problem now as both our radmind scripts take action which /should/ ensure the kernel extensions cache is re-built when necessary. Presumably some other cache (possibly in /System/Library/caches) has something to do with it...

Infact, I just had a look in the 10.3.7 updater postflight-actions folder and found this perl script:

<code>
	#!/usr/bin/perl

my $target = $ARGV[2];
my $arch = `/usr/bin/arch`;
chomp($arch);

print("Rebuilding kextcache\n");

system("/usr/bin/touch \"$target/System/Library/Extensions\"");
system("/bin/rm -rf \"$target/System/Library/Caches/com.apple.kernelcaches\"");
system("/bin/rm -f \"$target/System/Library/Extensions.kextcache\"");
system("/usr/sbin/kextcache", "-l", "-a", $arch, "-m",
"$target/System/Library/Extensions.mkext",
"$target/System/Library/Extensions"
);


print("Finished rebuilding kextcache\n");

exit(0);

</code>

maybe adding this whole thing into a radmind script to be run when the kexts are changed would help...

If leftover caches are an issue, it's something else to put on the
checklist when t/s...

Yes, it's a bit voodoo for my tastes as I don't thoroughly understand what they all do but I find that clearing /Library/Caches and /System/Library/Caches and ~/Library/Caches is often useful as a t/s technique.
______________________________________
Geoff Lee <email@hidden>
Computing Support, Architecture
School of Arts, Culture and Environment
University of Edinburgh
20 Chambers St,
Edinburgh, Scotland,
EH1 1JZ
Tel: +44 (0)131 650 8020
______________________________________

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Client-management mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/client-management/email@hidden

This email sent to email@hidden

References: 
 >USB pen drives only work intermittantly (From: Geoff Lee <email@hidden>)
 >Re: USB pen drives only work intermittantly (From: John Anthony Grigutis <email@hidden>)
 >Re: USB pen drives only work intermittantly (From: Michael Dinsmore <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.