Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Holy trinity?

Holy trinity?
Thread Tools
Fresh-Faced Recruit
Join Date: Mar 2002
Location: Ft. Lauderdale
Status: Offline
Reply With Quote
Apr 28, 2004, 09:23 PM
 
I remember reading a post about the "holy trinity" of mac osx repair, it was 3 steps of unix commands to fix your mac in the terminal, can someone please repost them?
     
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Apr 28, 2004, 09:32 PM
 
Maybe you're talking about the cron scripts. Go download MacJanitor if you want an easy way to run them manually. Install anacron (via fink, or google for premade packages) if you don't want to have to run them manually at all.
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Apr 28, 2004, 10:26 PM
 
I'm assuming they mean
1) Disk First Aid
2) Repair Permissions
3) Optimize (Prebinding)

#3 is totally unnecessary -- 10.2 and higher does it automatically any time it is necessary.

#2 helps sometimes for specific problems

#1 the OS does automatically at startup.

tooki
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Apr 29, 2004, 12:19 AM
 
Originally posted by tooki:
1) Disk First Aid...

#1 the OS does automatically at startup.
Only after a crash, and not at all if journaling is on.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Professional Poster
Join Date: Dec 2000
Location: Milan, Europe
Status: Offline
Reply With Quote
Apr 29, 2004, 10:01 AM
 
BTW, OnyX is also a good - and free - overall maintenance program...

The freedom of all is essential to my freedom. - Mikhail Bakunin
     
Posting Junkie
Join Date: Feb 2000
Location: Washington, DC
Status: Offline
Reply With Quote
Apr 29, 2004, 04:38 PM
 
Originally posted by CharlesS:
Only after a crash, and not at all if journaling is on.
I didn't know that about journaling... interesting.
     
Dedicated MacNNer
Join Date: Dec 2003
Status: Offline
Reply With Quote
Apr 29, 2004, 11:08 PM
 
Hrmm, maybe you are talking about these:

sudo periodic daily weekly monthly
sudo diskutil repairPermissions /
sudo update_prebinding -root / -force
15 inch MacBook Pro 2.16 GHz, 2 GB RAM, 7200 RPM 100GB HDD.

Dual 2.5 GHz Power Mac G5, 1 GB RAM, 250 GB HDD, ATI Radeon X800XT.
     
Moderator
Join Date: Apr 2001
Location: Wasilla, Alaska
Status: Offline
Reply With Quote
Apr 30, 2004, 03:52 AM
 
Holy Trinity:
Onions
Celery
Green Pepper
     
Professional Poster
Join Date: Apr 2001
Location: Long Beach, CA
Status: Offline
Reply With Quote
May 1, 2004, 01:15 PM
 
Originally posted by CharlesS:
Only after a crash, and not at all if journaling is on.
You are also far less likely to have directory damage if journaling is turned on. When a journaled drive is mounted that was not unmounted correctly (i.e. crash, or you unplugged it without unmounting it), the journal is replayed. This journal has all the info of what changes were being made to the drive when it was incorrectly unmounted. Therefore, it knows where the errors are and fixes them.

ACSA 10.4/10.3, ACTC 10.3, ACHDS 10.3
     
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
May 1, 2004, 01:31 PM
 
Note that the HFS+ journal stores only changes to the directory. It does not journal changes to file contents.

It also doesn't replay changes -- it undoes any changes it finds in the journal.

Basically, this is how journaling works:

A change is about to be made to the disk. The file system creates a little Post It note to itself, outlining what's about to be done. When it finishes doing those things it removes the Post It note.

When the computer restarts, if checks to see if any Post Its are present. If so, it assumes that the operations listed in the journal may not have been successfully executed, and undoes all those changes to the directory, thus preventing directory corruption. In normal operation, the system should never find any Post Its.

tooki
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:35 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2