2

I just installed Ubuntu 9.10 on my PC. I have Windows XP as the primary OS.

I am trying to set XP as the default OS with the following command in terminal:

sudo gedit /boot/grub/menu.lst

After that it should display something like this:

enter image description here

Instead it is showing a blank menu.lst file.

What's the problem? What should I do?

Gareth
  • 19,080
ravi
  • 247

2 Answers2

3

As the comments point out the new Grub is just setup differently. Now you'll want to make your personalized settings changes in the file: /etc/default/grub

At a terminal:

sudo gedit /etc/default/grub

Now you can change the relevant setting (just like the settings you were accustomed to in the previous version).

More information can be found at this helpful thread: Grub 2 Basics

Also take note of the section talking about the files contained in: /etc/grub.d/

codeLes
  • 1,852
1

Following is the exact answer (worked for me perfectly):

Run following command

sudo gedit /etc/default/grub

change GRUB__DEFAULT=0 to 4

And then without forget run following command :

sudo update-grub

This will update the grub.

And you are done.

(Found this on this thread)

ravi
  • 247