Cleaning routines (Daily, Weekly, Monthly) are to be performed by default at night (up to 3:00 in the morning). These routines called "Maintenance Scripts", delete useless system or caches files (periodic purges). These maintenance routines are never made for most users, as during this time intervals either their Mac is in standby mode or turned off. It is possible to manually reprogrammed them for other times of the day. The "cleaning" is performed by Cron, an application system (daemon) that runs in the background and which will take instructions from the "crontab
" file, in which are listed in the schedules for the purges.
By editing the crontab
, you can change schedules for these tasks.
To manage these routines you can make use of utilities like:
You can also use Terminal commands to force the execution of these tasks.
For more information, refer to these pages:
- Alternatively you can make use of a software like Onyx to perform cleanup operations ( repair disk permissions , caches, purge history) on the fly. Onyx also offers to check the SMART status and structure of the volume of the startup disk.
- http://www.itweax.net/ iTweaX] is another light and free application to manage these routines and verify the integrity of preferences files.
Note that: For Macbooks, you must perform all these operations while the battery is fully charged (plug to a power cord )
Restart the Mac while holding down the Shift key until the start-up display indicates that MacOS 10 has started with extensions disabled. During this phase, the Mac will make all possible minor repairs,
- Once the Mac is running, restart normally.
- Note that if you start the Mac while holding the CMD and V keys down, the Mac will start in Verbose mode, that is to say, all the startup processes/steps will be displayed. This will allow you to identify certain issues.
- Insert MacOS installation CD1 or DVD.
- Restart the Mac while holding down the C key until the startup screen is displayed.
- At the opening of the dialog box, do not start the installation
- Go to the menu bar to select "Disk Utility"
- In Disk Utility dialog box, select the "SOS" tab
- In the left part of the window, select the startup drive.
- At the bottom right, click "Repair Disk"
- Wait until the operation is completed.
- If at the end of the process, a message indicates that repairs have been made, restart the process.
- If you get a message that indicates that the hard drive has passed the verification and that the other partitions are in good condition, without indicating that repairs have been made, then go to the menu bar and choose to restart the Mac
- Perform as many repairs as necessary until the message indicates that the disk has passed the verification and that no repairs have been made.
- Once the Mac has restarted normally, open the Disk Utility found in the Applications/Utilities folder and run a repair disk permissions.
- Start your Mac while holding the CMD and S keys down.
- The screen be filled with command lines and at the last line you shall have the following ' :/ root # '
- Enter the following command (case sensitive)
- Validate with the Enter key
- Wait for the process to be completed.
- If at the end of the process you get a message indicating "FILE WAS MODIFIED", restart the process again (type fsck -fy) until, the following is displayed:
- "The HD Seems to be OK" or
- "The xxx volume seems to be OK "
- Type reboot
- Confirm with the Enter key
- The Mac will restart normally
For additional information :Resolve startup issues and perform disk maintenance with Disk Utility and fsck
If problems persist or the repair of the hard disk is impossible, it may be needed:
- Re-install the system using the Archive and Install procefure, to keep all settings, various parameters, and especially to preserve your files.
- Use a software to reconstruct the Directory the hard disk. The most effective in this situation seems to be DiskWarrior, it is relatively expensive commercial software .
Original document published by Sanspseudo