[CentOS] Automatic disk check
Chris Weisiger
cweisiger at i-55.com
Fri Apr 8 03:07:38 UTC 2005
centos.org_list at 000a.com wrote:
>>> You know how if you do an improper shutdown and then boot up, the
>>> server
>>> prompts you to run a file system check if you press "Y" within 5
>>> seconds?
>>> Well, this is great but sometimes not practical in remote access
>>> situations when we call our datacenter to say reboot a hang server and
>>> they have no monitor or keyboard hooked up to the system. Is there
>>> a way
>>> to have the system forced to automatically fo the filesystem check
>>> every
>>> time it boots up, if there's a need for it, ie: WITHOUT hitting "Y"?
>>>
>>> I couldn't find the answer to this one in docs or FAQs. If I missed
>>> it,
>>> a simple pointer to the source would be of great help.
>>>
>>> Thank you,
>>>
>>> Chris
>>>
>>>
>> You create the following file:
>>
>> /etc/sysconfig/autofsck
>>
>> and place the following in it:
>>
>> AUTOFSCK_TIMEOUT=5
>> AUTOFSCK_DEF_CHECK=yes
>
>
> Chris and all - Thank you! That is exactly what I was hoping to
> find. Much
> appreciated!
>
> Chris
>
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
This is how i have my system checked, even though it is sitting next to
my desktop system, i dont have a monitor, keyboard or mouse hooked to it..
i connect to it only by ssh
glad i could help
More information about the CentOS
mailing list