PDA

View Full Version : [ubuntu] Problems with grub2



peverix
January 15th, 2010, 08:24 AM
Hello

I'm using ubuntu 10.4 on a embedded system ( i need to use already 10.4 because with 9.10 i have the blank screen problem ). Everything working fine except a booting problem with grub2.

Because this system is embedded , the user doesn't do a usual shutdown but just put off the power supply.
After powering up again , its startup normal with detecting a bad shutdown and do a disk check. After fixing bad disk it reboots again.

And now it is waiting in the grub menu until you select a menu point with a keyboard.

I never noticed this with legacy grub , how to change this ?

Peter Everix

kansasnoob
January 15th, 2010, 08:27 AM
It sounds like you have more technical knowledge than I do so maybe you can make use of this HowTo I wrote:

http://ubuntuforums.org/showthread.php?t=1298932

peverix
January 15th, 2010, 09:10 AM
Thanks for this clear how-to

I followed it and now i'm back to the old grub.
Everything working as expected again.

Regards
Peter

meierfra.
January 16th, 2010, 07:43 AM
Just for anybody reading this. The problem of the OP can be solved very easily without reverting to Legacy Grub:

Open the file 00_header via


gksudo gedit /etc/grub.d/00_header

Look for


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


Change it to



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


Save the file and run


sudo update-grub


Now Grub2 will always use the default timeout