Mac OS 9.2, Mac OS X: "Code Fragment could not be prepared. ‘PrefRestoreInit‘ error type 1010" During Computer or Classic Startup

A "code fragment" or "PrefRestoreInit" alert message during Mac OS 9 or Classic startup is related to the FileSharingLib extension. Replace it or delete a preference file to resolve the issue.
Symptom

When either starting up the computer from Mac OS 9.2 or 9.2.1, or when starting up the Classic environment from the same, an alert box with this message appears:



Solution

This alert box may appear if the FileSharingLib extension is not in the Extensions folder. This issue is resolved by updating to Mac OS 9.2.2. See Apple Software Downloads (http://www.apple.com/swupdates/).

If you cannot update immediately, follow these steps:
Published Date: Feb 17, 2012