 |
 |
fsck
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status:
Offline
|
|
Is there a way to make your computer do a fsck everytime you reboot?
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: Apr 2001
Location: Wasilla, Alaska
Status:
Offline
|
|
I think it does. 
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status:
Offline
|
|
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
|
|
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
|
|
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.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status:
Offline
|
|
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
|
|
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.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2002
Location: Hilton Head, SC
Status:
Offline
|
|
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
|
|
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 ?"
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|