I'm running Ubuntu 10.10 Server, and anytime my system crashes and starts back up, GRUB prompts for an OS to run. Since I'm usually not at my server to press enter, how do I get it to boot automatically?
I'm running Ubuntu 10.10 Server, and anytime my system crashes and starts back up, GRUB prompts for an OS to run. Since I'm usually not at my server to press enter, how do I get it to boot automatically?
In /etc/default/grub:
the line
Time in seconds.GRUB_TIMEOUT=600
Thanks, but that seems to be the timeout for a normal boot, but that seems to be overrridden in case of a system crash.
I know I can edit my /etc/boot/grub/grub.cfg:
And set the timeout to something other than -1. But if I do that, would my changes be overwritten every time I update GRUB?Code:if [ "$recordfail}" = 1 ]; thenset timeout=-1
It seems like modifying those part of "/etc/grub.d/00_header" would be the trick then:
But I guess those modification gets reverted when the package "grub-common" gets upgraded, however that seems not to happen too often.Code:cat << EOF if [ \${recordfail} = 1 ]; then set timeout=-1 else set timeout=${GRUB_TIMEOUT} fi EOF
Greetings.
Last edited by Krytarik; March 29th, 2011 at 06:16 PM.
Improve the Look of Ubuntu Forums | AWN Install/Setup Script | Ubuntu/Linux Resources
Please mark your thread as [SOLVED] when done!
Bookmarks