LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-08-2007, 05:42 AM   #1
rrrssssss
Member
 
Registered: Mar 2005
Posts: 266

Rep: Reputation: 32
/grub/menu.lst file disappeared but computer still boots (grub)


Hello forum,

I have a quadruple boot configeration setup ( Mandriva, StartCom (Fedora Core 5), Debian, Windows) and I am able to boot into either operating system with no problem from the Grub boot manager that Debian installed on the MBR.

But I want to replace Debian with another OS (Knoppix) and I need the menu.lst file for Debian so I can use it as a template when I re-configure the Grub boot loader for Knoppix because I intend to let Knoppix install its grub boot loader into the MBR and then I'll add the entries for the other operating systems listed the menu.lst file. But I can't find the menu.lst file anymore. It used to be in the /boot/Grub directory but no more. Debian is the OS that installed the Grub boot loader onto the MBR.

I have used the "Find Files" utility to try to find the missing menu.lst file but it is nowhere to be found and it is not in the /boot/grub directory where it once was located.


How is my computer able to boot into each operating system without the menu.lst file?

Thanks,

Roy
 
Old 04-08-2007, 07:35 AM   #2
x_terminat_or_3
Member
 
Registered: Mar 2007
Location: Plymouth, UK
Distribution: Fedora Core, RHEL, Arch
Posts: 342

Rep: Reputation: 38
* See if the file /etc/grub.conf exists. It is a softlink to /boot/grub/menu.lst

* Maybe your boot partition isn't mounted, try as root mount /boot (no device necessary if it's in /etc/fstab)

* Maybe your boot partition is mounted, but it's the wrong one!

* Maybe LILO got installed instead?
 
Old 04-08-2007, 07:41 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Lets do some detective work then.

If your claim Grub was setup in Debian then this Grub would have no fgxmenu (like one used by Suse) and so pressing the "c" key can drop you into a Grub prompt.

Fire up this command at Grub prompt and Grub will report amoung which Linux that has menu.lst
Code:
find /boot/grub/menu.lst
The output from Grub should be like
Code:
(hd0,1)
(hd0,2)
etc
meaning a version of menu.lst has been found in the 2nd partition of the 1st disk (for (hd0,1)).

You do need a menu.lst to host Grub. All the 4 distros you have got use Grub and you should have menu.lst in everyone immediately after their installation. Fedora uses /boot/grub.conf but there could still be /boot/grub/menu.lst which is what the original Grub uses in practice but some distros could have amended Grub to read only /boot/grub.conf.

You could have mixed up yourself using Grub from a Linux other than Debian. It is your God-given right to be able to nominate any of the distros to control the MBR.

You could write your own menu.lst. I wrote mine for 145 systems before I installed any of the OSs. It is in my signature.

Last edited by saikee; 04-08-2007 at 07:45 AM.
 
Old 04-08-2007, 08:49 AM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
I agree with xterminator3 ... I bet your /etc/fstab file has the noauto flag on that partition ... so it is not mounted.

The Linux system will read the contents of the /boot directory to get up and running and then unmount it.

If you remove the noauto flag then it will be mounted after bootup.
 
Old 04-08-2007, 09:29 AM   #5
rrrssssss
Member
 
Registered: Mar 2005
Posts: 266

Original Poster
Rep: Reputation: 32
Thank You

Hello again forum,

Yes, I too can now see that Xterminator 3 was right. I was doing my searching in StartCom (FC5) where the Debian partition seemed to be mounted but it wasn't. I mistakingly had StartCom (FC5) mounted twice, thinking one of the mounts was Debian. I realized my mistake when I actually booted my computer into Debian and there saw the "missing" menu.lst file. That also explaines why the "find" utility could not find it. The Debian partition was not mounted and it was searching the StartCom (FC5) partition when I thought it was searching the Debian partition. I'm sorry I didn't do all of my homework before posting.

But thanks to all of you for helping me find my mistake.

All the best,

Roy
 
Old 04-08-2007, 10:02 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
In a Grub prompt there is no need to mount any partition as Grub can find the files natively.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GRUB menu.lst Question PipeDreams Linux - Newbie 8 03-05-2006 03:05 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 02:06 PM
need to access /boot/grub/menu.lst and /boot/grub/device.map neouto Linux - Newbie 8 09-04-2005 12:45 PM
need grub menu.lst example pk108 Mandriva 4 12-11-2004 07:45 PM
grub.conf is menu.lst??? zombyLINUX Linux - General 4 03-31-2004 09:12 PM


All times are GMT -5. The time now is 12:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration