The way too stable computer |
October, 25, 2002 7:06 AM |
jslewis |
Don't hate me for this but I have a computer run by XPostFacto that is way too stable. Actually it's my wife's computer. It is a 7300 and is left on day in and day out for weeks or months. She does email with it, surfs the web and does itunes. It never crashes. However on the rare occasions when it gets restarted the hard drive is never in good shape. I understand OSX doesn't write everything to the hard drive immediately, that it doesn't "stabilize" a disk. I understand that for long running UNIX servers they may run a cron job from time to time to stabilize the disk. Anyone have a link to a good how to on doing this under OSX? |
. |
RE: The way too stable computer |
October, 26, 2002 1:01 AM |
dave |
. |
The reason sync happens so fast is that the OS already does periodic syncs, and a lot more often than you're go to want/be able to do it from cron or similar program. The nature of file systems is that they have periods of vulnerability when writing to the disk. There's no way around it - modern file systems (BSDs soft updates, Linux Journaling filesystems) only really work to make sure your file system is consistent, not necessarily up-to-date. Plus, you're most likely using an HFS+ file system, does sync even have an effect on that? |
. |
RE: The way too stable computer |
October, 25, 2002 6:19 PM |
marcush |
. |
It should. I'd do a good back-up beforehand thought just in case something goes wrong. |
. |
RE: The way too stable computer |
October, 25, 2002 12:59 PM |
usvwro |
. |
Just download a great little utility called Macjanitor. It's freeware and lets you run the daily/weekly/monthly unix cron task at will. However, if you are leaving it on continuously, then OS X is running the jobs automatically. (I think the "scheduled" time is 3:00 AM?) Jack Russell |
. |
RE: The way too stable computer |
October, 25, 2002 11:43 AM |
jslewis |
. |
man sync makes it look like sync is the thing. running sync it either does nothing or does it's thing very very fast. Should I just add a line at the beginning of /etc/daily that says "sync"? Would that work? |
. |
RE: The way too stable computer |
October, 25, 2002 11:14 AM |
marcush |
. |
I think the sync command does what you are looking for if I remember correctly. do a "man sync" from the terminal to see what the options are. |
. |
RE: The way too stable computer |
October, 25, 2002 10:19 AM |
jslewis |
. |
No, restarting and running fsck -y is not what I want to be doing. Ideally I don't want to be doing anything at all I want to let the computer schedual what it needs to do and do it itslef. From trying to look stuff about cron up it looks like I should be editing /etc/daily or /etc/weekly to add some "stabilize" command but I don't know what that command is. |
. |
RE: The way too stable computer |
October, 25, 2002 7:24 AM |
powderhaus |
. |
sorry i did not mean to post just that I will check about the fsck thig but i think thats all (you start up in UNIX on GUI 10.1.5 never crashes |
. |
RE: The way too stable computer |
October, 25, 2002 7:22 AM |
powderhaus |
. |
Hey' You might start up in singal users mod and enter fsck (i think thats all you have to do |