grub problem: multiple ubuntus

Asked by Xan

Hi,

I had ubuntu 7.04 with grub installed (the menu.lst is in that distro). It's installed in /dev/hda6
Now I installed 7.10 and I did not mark "not install grub". So it overwrites my old grub. Now I have the menu.lst in /dev/hda13.

I want to pass grub to /dev/hda6: that is that all the configuration of ubuntu were located in /dev/hda6, where it was before

How can I do?

Thanks in advance,
Xan.

PS:
grub> find /boot/grub/stage1
 (hd0,5)
 (hd0,10)
 (hd0,12)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub Edit question
Assignee:
No assignee Edit question
Solved by:
Pete
Solved:
Last query:
Last reply:
Revision history for this message
Best Pete (pete123) said :
#1

You should be able to do this by rewriting the MBR specifying you wish to boot from hda6.

Try the following in a terminal,

sudo grub

This will give you a grub prompt, from here type the following commands,

root(hd0,5)
setup(hd0)
quit

Now you obviously need to add a line to be able to boot Gusty from the grub installed on hda6, find the option in the /boot/grub/menu.lst for Gusty. You will find a section like

"title Ubuntu 7.10...
root ....
kernel
initrd
quiet "

append this to the /boot/grub/menu.lst on /dev/hda6 .

To do this you may need to make a directory and mount /dev/hda6, to do that from Gusty do the following from a terminal,

sudo mkdir /mnt/feisty-root
sudo mount -text3 /dev/hda6 /mnt/feisty-root
sudo gedit /mnt/feisty-root/boot/grub/menu.lst

and insert here the section you found for gusty above.

Hope this works!

Revision history for this message
Xan (dxpublica) said :
#2

Thanks Pete, that solved my question.

Revision history for this message
Pete (pete123) said :
#3

Glad its solved. Hope all the instructions are correct for future reference!

Revision history for this message
Xan (dxpublica) said :
#4

Yes, I'm sure of it