Where did menu.lst go?

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Where did menu.lst go?

Postby eronstuc on Tue Feb 09, 2010 12:11 am

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?
eronstuc
Level 1
Level 1
 
Posts: 1
Joined: Mon Feb 08, 2010 11:45 pm

Linux Mint is funded by ads and donations.
 

Re: Where did menu.lst go?

Postby richyrich on Tue Feb 09, 2010 12:14 am

Do a search/google on Grub 2
User avatar
richyrich
Level 13
Level 13
 
Posts: 4638
Joined: Mon May 04, 2009 8:31 pm

Re: Where did menu.lst go?

Postby StanTheMan on Tue Feb 09, 2010 12:39 am

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.
StanTheMan
Level 5
Level 5
 
Posts: 577
Joined: Fri Feb 13, 2009 7:07 pm

Re: Where did menu.lst go?

Postby Leppie on Tue Feb 09, 2010 11:15 am

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
Cleanflash: resolve your flash issues the easy way
User avatar
Leppie
Level 4
Level 4
 
Posts: 447
Joined: Sun Feb 07, 2010 8:54 pm

Re: Where did menu.lst go?

Postby acerimusdux on Tue Feb 09, 2010 4:25 pm

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
acerimusdux
Level 3
Level 3
 
Posts: 181
Joined: Sat Dec 26, 2009 3:36 pm


Return to Newbie Questions

Who is online

Users browsing this forum: BigSteve_G, Google [Bot] and 33 guests