grub now incorrect; no xp on computer anymore

Asked by ichor

I installed ubuntu onto another hard drive alongside(on a separate drive)xp.... I liked ubuntu so much that I reformated the drive with xp on it, wiping it clean of xp... my issue is with the grub boot... I do not have xp, yet grub lists it... I need to clear xp off of it... I still need grub due to having more than one ubuntu(restore and memory check), yet want to clean up the xp ghost...

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
Kyle Cheung (kylezoa) said :
#1

You can use this procedure: https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows#Quick%20Start
Just do steps 1-5 to reinstall GRUB so it will rescan the disc for any other OS's.

Revision history for this message
Bulat (bulatkjug) said :
#2

You don't need to reinstall GRUB. You just need to edit GRUB menu. List of GRUB menu items is specified in this file:
/boot/grub/menu.lst
But be careful - all GRUB settings are specified in this file. So you can break it!

To edit it run this from a console window:
gksudo gedit /boot/grub/menu.lst

'gksudo' is a 'sudo' analog that is used to run GUI applications as a super-user. (so, it'll ask for your password)
'sudo' is used to run console applications as a super-user.

P.S. If you are familiar with 'vi', you can use it in a console:
sudo vi /boot/grub/menu.lst

Revision history for this message
Bulat (bulatkjug) said :
#3

P.P.S. If you break it and will not be able to boot into your installed Ubuntu, then just boot from LiveCD, mount your Ubuntu partition, find this file there and fix it. :)

Can you help with this problem?

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

To post a message you must log in.