Page 1 of 1

Grub loose timer

Posted: Mon Nov 07, 2011 4:12 pm
by fanf
Hi,

I just noticed a strange behavior, mayber not fully related to fit-pc (Ubuntu Server installed).

From time to time after a hard reboot (power cut) grub looses its timer so the fit-pc is stuck as grub menu until a key is pressed.

What is pretty strange is that it does not happen all the time. I suspect it may be caused when power cut happen during boot.

Any ideas how to make this not happen ? Remove timer and force boot to a specific image (but I might loose grub auto configuration when updating to new kernel ?).

Comments/suggestions are welcomed.

I can copy/past grub configuration if necessary, but this is default Ubuntu configuration. From tests I made it appears to happen with various Ubuntu Server versions.

Regards,
F.

Re: Grub loose timer

Posted: Sun Nov 13, 2011 7:51 am
by gabrielh
We haven't encounter such problem before.

What I suspect that the FitPC2 receives some (keyboard?) input during it's grub boot, which aborts the boot process. Can you please try to reproduce this issue with no input devices attached to the FitPc2?

Thanks

Re: Grub loose timer

Posted: Wed Nov 16, 2011 11:19 am
by fanf
Hi,

there is no keyboard (or mouse) attached to the fit-pc2i so might not be the issue.

Any other idea ?

Rgds,

Re: Grub loose timer

Posted: Thu Nov 24, 2011 1:59 pm
by gabrielh
Can you please try the following

In file /etc/grub.d/00_header:

insead this:
if [ \${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=${GRUB_TIMEOUT}
fi


try this:
if [ \${recordfail} = 1 ]; then
set timeout=5
else
set timeout=${GRUB_TIMEOUT}
fi

and then run:
sudo update-grub2

Thanks

Re: Grub loose timer

Posted: Thu Dec 08, 2011 3:29 pm
by fanf
Thanks, I'll try it and let you know.

Rgds,
F.