Hi how can i do this? i have a headless server that i want to do fsck but i know fsck need human intervention how can i make fsck to select yes in all questions.
On Wed, 08 Nov 2006 10:19:44 +0100, Mark Quitoriano markquitoriano@gmail.com wrote:
Hi how can i do this? i have a headless server that i want to do fsck but i know fsck need human intervention how can i make fsck to select yes in all questions.
Good question. Few weeks ago after kernel update one of my servers didn't start. I had to do fsck by hand.
Regards.
On 08/11/06, Dominik Składanowski dskladanowski@gmail.com wrote:
On Wed, 08 Nov 2006 10:19:44 +0100, Mark Quitoriano markquitoriano@gmail.com wrote:
Hi how can i do this? i have a headless server that i want to do fsck but i know fsck need human intervention how can i make fsck to select yes in all questions.
Good question. Few weeks ago after kernel update one of my servers didn't start. I had to do fsck by hand.
Regards.
If your system boots after an unclean shutdown you can set it up to do an autofsck, e.g. an unattended and hands-free fsck. Just go to /etc/sysconfig/autofsck and change the option from 'no' to 'yes'. The next time you reboot after an unclean shitdown, for whatever reason, you will be prompted to say 'Yes to stop autofsck'. If you don't respond it will do an automatic autofsck.
Keep warm Sharon.
If your system boots after an unclean shutdown you can set it up to do an autofsck, e.g. an unattended and hands-free fsck. Just go to /etc/sysconfig/autofsck and change the option from 'no' to 'yes'. The next time you reboot after an unclean shitdown, for whatever reason, you will be prompted to say 'Yes to stop autofsck'. If you don't respond it will do an automatic autofsck.
yes but this will not answer Y to fix the issues on the disk which is what the OP asked for
I checked on 2 of my systems as this is something I have looked for recently. Neither of my systems have the file /etc/sysconfig/autofsck there is only an autofs file. Do I need to create this file?
From: Tom Brown tom@ng23.net Reply-To: CentOS mailing list centos@centos.org Date: Wed, 08 Nov 2006 14:45:18 +0000 To: CentOS mailing list centos@centos.org Subject: Re: [CentOS] unattended fsck on boot
If your system boots after an unclean shutdown you can set it up to do an autofsck, e.g. an unattended and hands-free fsck. Just go to /etc/sysconfig/autofsck and change the option from 'no' to 'yes'. The next time you reboot after an unclean shitdown, for whatever reason, you will be prompted to say 'Yes to stop autofsck'. If you don't respond it will do an automatic autofsck.
yes but this will not answer Y to fix the issues on the disk which is what the OP asked for _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Suggest you try the fedora solution mentioned here:
http://forums.fedoraforum.org/showthread.php?t=57764
Which is to create a file like following:
$ cat /etc/sysconfig/autofsck
AUTOFSCK_DEF_CHECK=yes PROMPT=yes AUTOFSCK_TIMEOUT=10 AUTOFSCK_OPT=""
From a quick read of the relevant parts of /etc/rc.sysinit on one of
my centos 4.4 systems, it looks likely this will work here too- but I have not tested it at all.
On 11/8/06, Tony pthagonal@gmail.com wrote:
Suggest you try the fedora solution mentioned here:
http://forums.fedoraforum.org/showthread.php?t=57764
Which is to create a file like following:
$ cat /etc/sysconfig/autofsck
AUTOFSCK_DEF_CHECK=yes PROMPT=yes AUTOFSCK_TIMEOUT=10 AUTOFSCK_OPT=""
From a quick read of the relevant parts of /etc/rc.sysinit on one of my centos 4.4 systems, it looks likely this will work here too- but I have not tested it at all.
oops- I then meant to suggest that you consider using the -y option in the AUTOFSCK_OPT string
that's weird there's no /etc/sysconfig/autofsck file im using CentOS 4.4
so what i need to do is a file autofsck with this variables inside right?
AUTOFSCK_DEF_CHECK=yes PROMPT=yes AUTOFSCK_TIMEOUT=10 AUTOFSCK_OPT="-y"
specifically the AUTOFSCK_OPT= should have -y in it?
On 11/9/06, Tony pthagonal@gmail.com wrote:
On 11/8/06, Tony pthagonal@gmail.com wrote:
Suggest you try the fedora solution mentioned here:
http://forums.fedoraforum.org/showthread.php?t=57764
Which is to create a file like following:
$ cat /etc/sysconfig/autofsck
AUTOFSCK_DEF_CHECK=yes PROMPT=yes AUTOFSCK_TIMEOUT=10 AUTOFSCK_OPT=""
From a quick read of the relevant parts of /etc/rc.sysinit on one of my centos 4.4 systems, it looks likely this will work here too- but I have not tested it at all.
oops- I then meant to suggest that you consider using the -y option in the AUTOFSCK_OPT string
-- Cheers,
Tony _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
There is no such file there. You will have to create it.
issue these 2 commands.
echo "AUTOFSCK_TIMEOUT=5" > /etc/sysconfig/autofsck echo "AUTOFSCK_DEF_CHECK=yes" >> /etc/sysconfig/autofsck
pls see the below URL
https://www.redhat.com/archives/fedora-list/2004-March/msg00676.html
On 11/9/06, Mark Quitoriano markquitoriano@gmail.com wrote:
that's weird there's no /etc/sysconfig/autofsck file im using CentOS 4.4
so what i need to do is a file autofsck with this variables inside right?
AUTOFSCK_DEF_CHECK=yes PROMPT=yes AUTOFSCK_TIMEOUT=10 AUTOFSCK_OPT="-y"
specifically the AUTOFSCK_OPT= should have -y in it?
On 11/9/06, Tony < pthagonal@gmail.com> wrote:
On 11/8/06, Tony < pthagonal@gmail.com> wrote:
Suggest you try the fedora solution mentioned here:
http://forums.fedoraforum.org/showthread.php?t=57764
Which is to create a file like following:
$ cat /etc/sysconfig/autofsck
AUTOFSCK_DEF_CHECK=yes PROMPT=yes AUTOFSCK_TIMEOUT=10 AUTOFSCK_OPT=""
From a quick read of the relevant parts of /etc/rc.sysinit on one of my centos 4.4 systems, it looks likely this will work here too- but I have not tested it at all.
oops- I then meant to suggest that you consider using the -y option in the AUTOFSCK_OPT string
-- Cheers,
Tony _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-- Regards, Mark Quitoriano, CCNA
Fan the flame... http://www.spreadfirefox.com/?q=user/register&r=19441
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos