Change listings in Grub

Luis Paulo luis.barbas at gmail.com
Sat Jun 19 21:22:53 UTC 2010


On Sat, Jun 19, 2010 at 8:17 PM, Edwin McGuire
<mcguiresmain at emypeople.com> wrote:
> Can I change to one listing of kernel choice on menu instead of 3 which I
> have. Thanks to Colin was able to change default OS this way,
>  sudo gedit /etc/default/grub
>  then
>  sudo update-grub
> I have6 lines of Linux kernels:
>
> 0        Ubuntu, Linux 2.6.31-22-Generic
> 1        Ubuntu, Linux 2.6.31-22-Generic (recovery mode)
> 2       Ubuntu, Linux 2.6.31-21-Generic
> 3        Ubuntu, Linux 2.6.31-21-Generic (recovery mode)
> 4       Ubuntu, Linux 2.6.31-14-Generic
> 5       Ubuntu, Linux 2.6.31-14-Generic (recovery mode)
> 6    #  memory test (memtest86+)
> 7        memory test (memtest86+,serial console 115200)
> 8    *   Microsoft Windows XP Professional
>
> *   now default
> #  old default
>
> can I delete lines 2-5.
> then also change default # again to 4.
> new would be:
>
> 0    Ubuntu, Linux 2.6.31-22-Generic
> 1    Ubuntu, Linux 2.6.31-22-Generic (recovery mode)
> 2    memory test (memtest86+)
> 3    memory test (memtest86+,serial console 115200)
> 4    Microsoft Windows XP Professional
>
> Am I on the right track.
> Thanks Ed
>
> Don't tell God how big your storm is,
> Tell the storm how big your God is!
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>

As far as I can see, yes, you are on the right track.

There are a few valid reasons to have windows as the default OS, so I
will not comment on that :)

But, there is another possible path that may work for you.
You may change the name of /etc/grub.d/30_os-prober so that it runs
before 10_linux
say
$ sudo mv /etc/grub.d/30_os-prober /etc/grub.d/05_os-prober

That way windows will be the first entry on your grub menu.
So you may change default back to 0, and any future adding or deleting
linux menu entries will not mess with it

Regards
Luis




More information about the ubuntu-users mailing list