How to update grub loader?

Asked by shailesh

1 months back, i changed the os from vista to xp and then from live cd of ubuntu i loaded ubuntu on grub loader as before.
But grub still displays vista instead of xp.When i click on vista it takes some time to start loading windows.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tony Pursell (ajpursell) said :
#1

Hi

I assume that when you select 'Vista' from the boot menu you now get booted into XP. If that is true, then the only thing that needs changing is the description of the non-linux OS in the boot menu. To do this, open a terminal and run the command

gksudo gedit /boot/grub/menu.lst

This opens up grub's main file in gedit.

Find the section that looks like this:

title Microsoft Windows Vista
root (hd0,0)
makeactive
chainloader +1

Change the title to 'Microsoft Windows XP' (or whatever you like) and save the file.

Next time you boot, you should see the new description. As far as I know the grub method for booting Windows (chainloader +1) is the same for both XP and Vista, so the boot time is down to the difference in the time XP and Vista take to boot.

Let us know if this solves your problem.

Tony

Let us know if this solves your problem

Tony

Revision history for this message
Sam_ (and-sam) said :
#2

Hi,
first of all before editing any system file e.g. menu.lst it's recommended to make a backup.
Terminal:
sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_old

after editing and saving
Terminal:
sudo update-grub

Can you help with this problem?

Provide an answer of your own, or ask shailesh for more information if necessary.

To post a message you must log in.