PDA

View Full Version : Need to recreate grub menu.lst


talikarng
April 20th, 2008, 08:06 AM
I can currently dual boot windows xp and kubuntu through the grub menu. I recently installed freebsd onto a spare partition (this means that i would triple boot) but the freebsd loader didn't let me go into kubuntu.

I reloaded grub from the livecd and pointed it back to my kubuntu partition but my question is: How can I get grub to add my freebsd partition to menu.lst without having to reinstall kubuntu?

banewman
April 20th, 2008, 08:09 AM
Does typing
sudo update-grub
in a konsole give you any luck?

mick8985
April 20th, 2008, 08:13 AM
The simplest way is to do something like

title FreeBSD
root (hd0,1)
makeactive
chainloader +1

Where (hd0,1) refers to the partition you have BSD on, so amend to wherever you installed it

talikarng
April 22nd, 2008, 08:48 AM
Thankyou to both of you;

I had to put in the code above without the makeactive line and it worked. What does the makeactive line do anyway?

Ptero-4
April 22nd, 2008, 10:02 PM
It makes that partition the active one, this is mostly required for M$ Windoze.