Making "default saved" work with GRUB2...?

Posted by baltusaj on Super User See other posts from Super User or by baltusaj
Published on 2010-01-14T11:09:06Z Indexed on 2010/03/27 17:03 UTC
Read the original article Hit count: 278

Filed under:
|

I just installed Moblin Operating System. It's using GRUB2. On my Ubuntu 8.04 GRUB 0.97 was being used in which i was using the default saved option comfortably. I found that with GRUB2 i should not edit /boot/grub/menu.lst directly but I did :) because my Moblin does not contain any /etc/default/grub where they say I should do the modification I want.

So what I did is as following which did not work:

default=saved
timeout=1
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz
#hiddenmenu
#silent
title Moblin (2.6.31.5-10.1.moblin2-netbook)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.31.5-10.1.moblin2-netbook ro root=/dev/sda1 vga=current
        savedefault=1

title Pathetic Windows
        rootnoverify (hd0,1)
        chainloader +1
        savedefault=0

By doing so I should have automatically switch between Moblin and Window at each boot but it's not working.

Almost all the troubleshooters on internet are saying that I should enable the DEFAULT=save option in /etc/default/grub but I am unable to find this file. Any idea what else should I do?

Thanks a lot

Update:

I used the equal to sign because by default my menu.lst had an entry as default=0. However, default 0, is also working fine.

Moreover the menu.lst, i have is actually a symbolic link to ./grub.conf. I have also noticed that grub-intall and grub-set-default commands are not working.

© Super User or respective owner

Related posts about linux

Related posts about grub