[SOLVED] Missing menu.lst

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
User avatar
demon
Posts: 341
Joined: 2007-09-26 19:04
Location: Prague

[SOLVED] Missing menu.lst

#1 Post by demon »

Experts,
I just installed 64 bit Debian Testing over top of my 64 bit windows 7, when I boot to system, there is no line with window 7 in grub. So what I wanted to do it, to fix it, is to add something like that to menu.lst:

Code: Select all

  title Windows 7
root (hd0,1)
savedefault
makeactive
chainloader +1 
but I cannot even find menu.lst in here /boot/grub :shock:
Any ideas?
Thanks in advance for help!
Last edited by demon on 2010-09-19 21:27, edited 1 time in total.
Debian Testing 64

milomak
Posts: 2153
Joined: 2009-06-09 22:20
Been thanked: 1 time

Re: Missing menu.lst

#2 Post by milomak »

You say
- recent install
- Testing

which leads me to think that grub2 is what you are running. I run debian sid and the following grub

Code: Select all

grub-pc:
  Installed: 1.98-1
  Candidate: 1.98+20100804-4
  Version table:
     1.98+20100804-4 0
        500 http://debian.mirror.ac.za/debian/ testing/main amd64 Packages
        500 http://debian.mirror.ac.za/debian/ unstable/main amd64 Packages
 *** 1.98-1 0
        100 /var/lib/dpkg/status
     1.96+20080724-16 0
        500 http://debian.mirror.ac.za/debian/ stable/main amd64 Packag
I suppose you need to paste the output of apt-cache policy grub-pc
Desktop: A320M-A PRO MAX, AMD Ryzen 5 3600, GALAX GeForce RTX™ 2060 Super EX (1-Click OC) - Sid, Win10, Arch Linux, Gentoo, Solus
Laptop: hp 250 G8 i3 1th Gen - Sid
Kodi: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid

User avatar
TobiSGD
Posts: 859
Joined: 2010-05-08 22:27
Location: Hannover, Germany

Re: Missing menu.lst

#3 Post by TobiSGD »

Debian testing uses Grub 2, which doesn't use menu.lst anymore. Missing OS after install in the bootmenu is a common bug, just do, as root:

Code: Select all

update-grub
After that, all should be fine.

User avatar
demon
Posts: 341
Joined: 2007-09-26 19:04
Location: Prague

Re: Missing menu.lst

#4 Post by demon »

to milomak:

Code: Select all

 grub-pc:
  Installed: 1.98+20100804-4
  Candidate: 1.98+20100804-4
  Version table:
 *** 1.98+20100804-4 0
        500 http://ftp.cz.debian.org/debian/ squeeze/main amd64 Packages
        100 /var/lib/dpkg/status
 
to TobiSGD:
It helped! It is fine now.

Thanks guys to help me out!
I hope this "common bug" will be fixed soon :)
Debian Testing 64

User avatar
bmc5311
Posts: 544
Joined: 2008-11-16 15:21
Location: lost in the vast machine

Re: Missing menu.lst

#5 Post by bmc5311 »

i don't think it's a bug.

grub2 and i have something in common - we both ignore windows... :lol:

User avatar
TobiSGD
Posts: 859
Joined: 2010-05-08 22:27
Location: Hannover, Germany

Re: Missing menu.lst

#6 Post by TobiSGD »

Would be OK, it it would only ignore Windows, but it ignores Linux as well. Hmm, what should I think about a boot-manager that ignores any OS but the one it lives in?

User avatar
MeanDean
Posts: 3866
Joined: 2007-09-01 01:14

Re: Missing menu.lst

#7 Post by MeanDean »

be sure os-prober is installed

If anything I consider grub-pc to be overly zealous in adding entries to the boot menu.

StanTheMan
Posts: 114
Joined: 2009-03-04 18:02
Location: British Columbia

Re: Missing menu.lst

#8 Post by StanTheMan »

With Grub2 (grub-pc) when you run ' update-grub ' this updates the file /boot/grub/grub.cfg which makes the boot list display. But this file is Read only.
There is another empty file /etc/grub.d/40_custom in which you can add menuentry paragraphs copied from /boot/grub/grub.cfg and edit them the way you like them spelled. What I do is copy all the menuentry paragraphs from the first to the last and edit them. Then I make two other files non-executable - /etc/grub.d/20_memtest86+ and /etc/grub.d/30_os-prober .
Then I run ' uupdate-grub ' and now the boot list only displays the menuentries from 40_custom .

Post Reply