Issue with grub failback
Hallo,
I have a primary and a backup boot partition,
I edited the /etc/grub.conf with the failback option and I want grub to mount the backup boot partition if primary one fails, automatically.
So, after a reboot and a primary boot partition failure, I hit the error 17 - cannot mount selected partition and the system hangs
with "press any key..." message, so manual intervention needed .
Is there a way to bypass the "press any key message" ?
Thanks in advice,
Vincenzo
Responses
At first look, I could say that the file "/etc/grub.conf" is a symbolic link to "/boot/grub/grub.conf" file, it could be a good idea to check if grub.conf file also modified accordingly.
Based on the file we assume you are using RHEL6. Files are explained here Verifying the Boot Loader.
Yes, if this RHEL6.x then you might be missing "fallback" parameter in grub.conf. Refer this article Does GRUB support fallback mechanism?
I tested by adding "fallback" parameter to grub.conf with 3 boot stanzas over there, so it works as expected, i mean it automatically boots from second kernel. So, in my case, there are three kernels, I added "fallback 1" under defaults in grub.conf, after this I edited the kernel line of first stanza and made mistake so that while reboot it would automatically boots from second kernel, yes, this works. Though an error pops up, however, immediately it boots from second kernel.
After this I deliberately made an error on the second kernel line after which i received the error and now it halts with message "press any key to continue....", so, I modified fallback line as "fallback 1 2". Tested this and now, it auto boots from third kernel when first and second kernel booting fails. I hope this is not the case over there for you..
Btw, which redhat release is this ? I hope this is not RHEL5.x ?
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
