PDA

View Full Version : [ubuntu] How to edit the menu.lst?



larrylamsy
April 10th, 2010, 11:23 AM
Hi, I learnt from a BSD magazine and installed PCBSD on my Dell notebok a single harddisk with a hope to have a triple boot. I have all the three OS, but could not find the menu.lst from /boot/grub/....

All I can find is a grub.cfg which is not editable. Someone from this forum said that menu.lst = grub.cfg. Is that true? I would be very grateful if someone can offer me a help to teach me "step by step" to edit the grub.cfg. Thanks. :confused:

howefield
April 10th, 2010, 11:27 AM
Someone from this forum said that menu.lst = grub.cfg. Is that true? I would be very grateful if someone can offer me a help to teach me "step by step" to edit the grub.cfg.

Grub.cfg is the replacement for menu.lst in the latest version of grub but as you already know isn't meant to be edited.

https://wiki.ubuntu.com/Grub2

larrylamsy
April 10th, 2010, 12:44 PM
Thanks Howefield. I thought open source would give more freedom to users to make modifications so to fit their needs. But thanks any way.

howefield
April 10th, 2010, 01:45 PM
...would give more freedom to users to make modifications...

Than what ?

I think you'll find it does, and you know it :)

tommcd
April 10th, 2010, 03:11 PM
I thought open source would give more freedom to users to make modifications so to fit their needs. But thanks any way.
You still have all the freedom you want with grub2. Did you read the link that Howefield gave you: https://wiki.ubuntu.com/Grub2
And here is another excellent tutorial:
https://help.ubuntu.com/community/Grub2
If you want to edit the boot options for grub2, you need to edit the /etc/default/grub file.
If you wish to add custom entries to boot another operating system, you can either add them to the 40_custom file in the /etc/grub.d directory, or create your own executable file in the /etc/grub.d directory.
Those 2 tutorials I linked to provide excellent info on how to do that.
If you want to boot a BSD based OS from Ubuntu's grub2 though that may require special consideration not covered in those tutorials. Perhaps PCBSDs documentation could provide more info on that.