Is there anyway to automate the following (all from one script):
Boot to single-user mode (or whatever is required) run fsck reboot back to level 5 (or 3)
so that you can kick it off, go away, come back an hour or so later and it'll all be done (via IP)?
Tony,
No script required:
# shutdown -Fr now
However, I'm the kinda person what would hang around for that particular hour!, I'd then shag off after that :)
Albert.
tony.chamberlain@lemko.com wrote:
Is there anyway to automate the following (all from one script):
Boot to single-user mode (or whatever is required) run fsck reboot back to level 5 (or 3)
so that you can kick it off, go away, come back an hour or so later and it'll all be done (via IP)?
tony.chamberlain@lemko.com wrote:
Is there anyway to automate the following (all from one script):
Boot to single-user mode (or whatever is required) run fsck reboot back to level 5 (or 3)
so that you can kick it off, go away, come back an hour or so later and it'll all be done (via IP)?
How about "touch /forcefsck"? It will force fsck to run on next reboot
On Tue, 2008-03-25 at 23:55 +0000, tony.chamberlain@lemko.com wrote:
Is there anyway to automate the following (all from one script):
Boot to single-user mode (or whatever is required) run fsck reboot back to level 5 (or 3)
so that you can kick it off, go away, come back an hour or so later and it'll all be done (via IP)?
It depends if the partition you aare running fsck on is mounted in single user mode. You can't run fsck on a mounted disk. -- ======================================================================= I want the presidency so bad I can already taste the hors d'oeuvres. ======================================================================= Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net
Hi
I would tend to set a flag checked by a utility inserted in the run level one startup. The script would then be able to accomplish the whole thingl
Have Fun!
Tod
2008/3/25 tony.chamberlain@lemko.com:
Is there anyway to automate the following (all from one script):
Boot to single-user mode (or whatever is required) run fsck reboot back to level 5 (or 3)
so that you can kick it off, go away, come back an hour or so later and it'll all be done (via IP)?
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Hi
I would tend to set a flag checked by a utility inserted in the run level one startup. The script would then be able to accomplish the whole thingl
Have Fun!
Tod
Tod Merley wrote:
Hi
I would tend to set a flag checked by a utility inserted in the run level one startup. The script would then be able to accomplish the whole thingl
Have Fun!
Tod
2008/3/25 tony.chamberlain@lemko.com:
Is there anyway to automate the following (all from one script):
Boot to single-user mode (or whatever is required) run fsck reboot back to level 5 (or 3)
so that you can kick it off, go away, come back an hour or so later and it'll all be done (via IP)?
-- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Hi
I would tend to set a flag checked by a utility inserted in the run level one startup. The script would then be able to accomplish the whole thingl
Er, a simple script:
#!/bin/bash touch /.autofsck reboot
will do it. The system looks for /.autofsck when it boots. If it finds it, it fscks the filesystems, then deletes /.autofsck. Check the main startup script "/etc/rc.d/rc.sysinit" for details. ---------------------------------------------------------------------- - Rick Stevens, Systems Engineer rps2@nerd.com - - Hosting Consulting, Inc. - - - - Lottery: A tax on people who are bad at math. - ----------------------------------------------------------------------