PDA

View Full Version : [other] resetting grub



Jargv
September 5th, 2008, 07:12 PM
I currently have 2 linux distributions on my computer (and 2 flavors of windows). The first linux that I put on the machine was Ubuntu. When I put the second distribution on my computer it took over the grub installation, so now grub is using the /boot/grub/menu.lst file of the new linux installation.

I want to get rid of the second distribution and free up a 30g partition, but I know that this will break grub.

How can I reset grub to use the /boot/grub/menu.lst file of the original ubuntu installation/partition so that when I remove the other linux distro it will not effect my working ubuntu installation?

thanks,

-jargv

caljohnsmith
September 5th, 2008, 08:29 PM
From Ubuntu, just do:

sudo grub
grub> find /boot/grub/stage1
That should return the partitions of both your Linux distros in the form (hdX,Y), just choose the one that is Ubuntu, and then:

grub> root (hdX,Y)
grub> setup (hdX)
grub> quit
Let me know how it goes or if you need more info/details.

Jargv
September 6th, 2008, 12:35 AM
Worked like a charm! Thanks!