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 > fsck

fsck
Thread Tools
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Apr 8, 2003, 11:07 PM
 
Is there a way to make your computer do a fsck everytime you reboot?
     
Moderator
Join Date: Apr 2001
Location: Wasilla, Alaska
Status: Offline
Reply With Quote
Apr 8, 2003, 11:19 PM
 
I think it does.
     
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Apr 8, 2003, 11:31 PM
 
Originally posted by AKcrab:
I think it does.
It does it already? I had heard that... did not know if it was true or not though... can anybody confirm this?
     
Dedicated MacNNer
Join Date: Jul 2000
Location: Texas
Status: Offline
Reply With Quote
Apr 8, 2003, 11:44 PM
 
Originally posted by Tyler McAdams:
It does it already? I had heard that... did not know if it was true or not though... can anybody confirm this?
It does. Hold down <apple> V at startup to boot into Verbose mode, and you'll notice that it stops on 'checking disk.' This is fsck running to make sure everything is a-ok.
---
One XP Box, One Suse Box, One Blue & White,
One ibook, One iMac 17 FP, one 30 gig iPod and a mini
happy .mac customer, os9 free since 3/24/01
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Apr 9, 2003, 12:03 AM
 
Mac OS X only runs fsck automatically after an improper shutdown. If you shut the Mac down normally, it will run fsck, but with the -p option, so it will skip your hard drive and not scan it.

Therefore, this means you can make it fsck at every startup by always just turning the Mac off with the power switch instead of shutting it down right. As an added bonus, this method would even generate some disk damage, so that fsck would actually have something to do instead of just scanning the hard drive and saying everything was OK. What a deal!

Seriously, if you want to do this, the easiest way would probably be just to edit the /etc/rc.boot file. Find the line that says "fsck -p" and change that just to "fsck -y" and you should be all set. Obviously, you should make a backup of /etc/rc.boot before making any changes to it.
(Last edited by CharlesS; Apr 9, 2003 at 12:09 AM. )

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Apr 9, 2003, 12:25 AM
 
Originally posted by CharlesS:
Mac OS X only runs fsck automatically after an improper shutdown. If you shut the Mac down normally, it will run fsck, but with the -p option, so it will skip your hard drive and not scan it.

Therefore, this means you can make it fsck at every startup by always just turning the Mac off with the power switch instead of shutting it down right. As an added bonus, this method would even generate some disk damage, so that fsck would actually have something to do instead of just scanning the hard drive and saying everything was OK. What a deal!

Seriously, if you want to do this, the easiest way would probably be just to edit the /etc/rc.boot file. Find the line that says "fsck -p" and change that just to "fsck -y" and you should be all set. Obviously, you should make a backup of /etc/rc.boot before making any changes to it.
That's what I was looking for! cool... Does this do a complete file system check even if journaling is enabled?
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
Apr 9, 2003, 12:31 AM
 
Originally posted by Tyler McAdams:
That's what I was looking for! cool... Does this do a complete file system check even if journaling is enabled?
Unknown - the man page for fsck does not mention journaling. I would guess that this probably would do it, because I'm surmising that the -p option also skips journaled disks. I can't guarantee that it will, though.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status: Offline
Reply With Quote
Apr 9, 2003, 01:18 AM
 
Originally posted by CharlesS:
Unknown - the man page for fsck does not mention journaling. I would guess that this probably would do it, because I'm surmising that the -p option also skips journaled disks. I can't guarantee that it will, though.

Cool... I'll dig around an post back if I can find anything myself...

That BootCD tip for booting with a DVD works like a charm btw...

Thanks again!
     
Dedicated MacNNer
Join Date: Jan 2002
Status: Offline
Reply With Quote
Apr 9, 2003, 12:37 PM
 
Originally posted by Tyler McAdams:
That's what I was looking for! cool... Does this do a complete file system check even if journaling is enabled?
I beleive you should also look at this.

I can't access it because I don't subscribe however it goes something like...

" Using the -n option to prevent disk corruption in Mac OS X

After using the "fsck" Terminal command in single-user mode to repair system damage, restarting the computer causes Mac OS X's memory buffers to refresh by default, modifying the changes made by "fsck" and potentially causing disk corruption. Alt ?"
     
   
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 11:20 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