Where did menu.lst go?

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
eronstuc

Where did menu.lst go?

Post by eronstuc »

I read the pdf file on Linux Mint 5.0 (Light Edition)
I also have a grub menu.lst file which takes 9 pages
to print. There are eleven versions of Linux and
Windows XPMedia Center Edition.
So I saw that Helena was based on Ubuntu 9.10
and decded to install it in the partition presently
running Mint 5.0. Ok on the boot screen I notice that
there was no entry for the Windows account. So I
thought I would just go to menu.lst and edit it in.

When I cd'd to /boot/grub/ was I in for a suprise.
There was a great amount of files but no menu.lst.
Hmm I decided to try to install Ubuntu 9.10 and sure
enough this did not have any menu.lst file either.
However, it did report the Windows partition but
five of my Linux versions reported file not found when
attempting to load them.

This included both my Gnome and KDE versions of
PCLINUXOS. As I am on the staff of this magazine
and have had a column in each issue for the past
two years I must have access to all my research
on computer languages.

So it became imperative that I recover access to these
areas. To solve this problem I just installed Debian 5.0
to the same partition it was in and let it create a menu.lst
file. This found everything including Helena and Ubuntu
9.10. And all the versions are able to be loaded from this
menu.

However, I know that some type of grub menu is created in
the Helena and Ubuntu 9.10 versions. So I would like to
know just where is th menu being kept in these newer
versions of Linux?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
richyrich

Re: Where did menu.lst go?

Post by richyrich »

Do a search/google on Grub 2
StanTheMan

Re: Where did menu.lst go?

Post by StanTheMan »

Just a quick explanatoin.

In Grub2 , instead of /boot/grub/menu.lst , it is replaced by /boot/grub/grub.cfg , which is also a text script file , but works differently.
In addition there are two files in /etc that automatically edit grub.cfg after running ' sudo update-grub ' after any changes in the system.
grub.cfg is set as read only to Root. It is possible to edit it with care after resetting its permissions.
Leppie

Re: Where did menu.lst go?

Post by Leppie »

StanTheMan wrote:Just a quick explanatoin.

In Grub2 , instead of /boot/grub/menu.lst , it is replaced by /boot/grub/grub.cfg , which is also a text script file , but works differently.
In addition there are two files in /etc that automatically edit grub.cfg after running ' sudo update-grub ' after any changes in the system.
the exact folders are /etc/grub.d and /etc/default, and there are more than 2 scripts. there's 6 scripts in the /etc/grub.d folder and there's the configuration file in /etc/default
oakhilltop wrote:grub.cfg is set as read only to Root. It is possible to edit it with care after resetting its permissions.
it's possible to modify the grub.cfg without changing its file permissions like this:

Code: Select all

gksudo gedit /boot/grub/grub.cfg
acerimusdux
Level 5
Level 5
Posts: 633
Joined: Sat Dec 26, 2009 3:36 pm

Re: Where did menu.lst go?

Post by acerimusdux »

It's possible to edit grub.cfg, but generally not advisable.
New menu entries are supposed to be added through custom scripts added to '/etc/grub.d/'
Some other settings can be changed in 'etc/default/grub'.
You are then supposed to run 'update-grub2' which automatically edits grub.cfg.
Why they are making this so complicated, I don't know.
But the syntax for the custom scripts is going to be a bit hairy for typical desktop end-users (it's actually a shell scrip).
Hopefully there will be a utility created to simplify this a bit.

For full explanation see:
http://ubuntuforums.org/showthread.php?t=1195275
Locked

Return to “Beginner Questions”