how do I restore the 'full' grub menu

New to Debian (Or Linux in general)? Ask your questions here!

how do I restore the 'full' grub menu

Postby kaykav » 2010-08-05 16:50

Hi,
I have a puzzle of a problem. Upon booting, the existing grub menu shows the Debian OS, but I also have Ubuntu installed on the same hard disk. It does not show in the menu. Previously I had Debian, Ubuntu, and Mint. In Ubuntu config file (menu.lst) I wanted to delete Mint and an old Ubuntu. I did so. In doing this I must have removed the 'full' menu.lst,leaving only Debian. So now I cannot boot into the new Ubuntu. I presently have only two OS on the hard disk:
Debian and Ubuntu. I cant see Ubuntu, How do I correct this problem? :roll:
ForeverBeginsNow
kaykav
 
Posts: 28
Joined: 2009-03-09 02:01

Re: how do I restore the 'full' grub menu

Postby Bulkley » 2010-08-05 16:55

Have you upgraded to grub2 (grub-pc)? For most of us, it came in a dist-upgrade. The reason I ask is that menu.lst doesn't exist in grub2. If you now have grub2, try running "update-grub".
Bulkley
 
Posts: 3861
Joined: 2006-02-11 18:35

Re: how do I restore the 'full' grub menu

Postby kaykav » 2010-08-05 23:49

ok I'll trythat
ForeverBeginsNow
kaykav
 
Posts: 28
Joined: 2009-03-09 02:01

Re: how do I restore the 'full' grub menu

Postby kaykav » 2010-08-05 23:58

So now how do I remove old entrys in the boot menu? Tha grub.cfg file says not to edit that file.
ForeverBeginsNow
kaykav
 
Posts: 28
Joined: 2009-03-09 02:01

Re: how do I restore the 'full' grub menu

Postby roseway » 2010-08-06 06:12

Eric

Debian Testing, KDE
User avatar
roseway
 
Posts: 1327
Joined: 2007-12-31 22:50
Location: Kent, UK

Re: how do I restore the 'full' grub menu

Postby jheaton5 » 2010-08-07 17:45

kaykav wrote:So now how do I remove old entrys in the boot menu? Tha grub.cfg file says not to edit that file.

What I do is remove the linux-image I don't want then run update-grub again.
Code: Select all
# aptitude remove linux-image-x.xx (replace the x's with the specific linux-image to be removed
debian sid with kernel img 3.8.10 lxde no dm
User avatar
jheaton5
 
Posts: 1475
Joined: 2008-08-20 01:40
Location: Sharpsburg, GA, USA

Re: how do I restore the 'full' grub menu

Postby Robin T Cox » 2010-08-08 17:25

kaykav - You need to install and run os-prober, which will then update your boot menu automatically.
User avatar
Robin T Cox
 
Posts: 29
Joined: 2008-08-17 13:44

Re: how do I restore the 'full' grub menu

Postby StanTheMan » 2010-08-09 18:13

I am multi-booting with nine distros.
With a grub2 bootloader , I found a somewhat round-about way to set up a complete boot list.

There is a file in grub2 - /etc/grub.d/40_custom - which is initially empty except for a few comment lines.
If you copy all the menuentry paragraphs from - /boot/grub/grub.cfg - (which file is read only) into ' 40_custom ' and then edit them there as you wish. Next you remove the exec flags from the files - /etc/grub.d/20_os-prober (and) /etc/grub.d/30_memtest86+ - this way - -

Terminal (Root)
cd /etc/grub.d
chmod a-x 20_os-prober
chmod a-x 30_memtest86+

Now run update-grub.
The 20_os-prober and 30_memtest86+ will not set up a boot list , but your menuentry s in 40_custom will create a bootloader list.
StanTheMan
 
Posts: 114
Joined: 2009-03-04 18:02
Location: British Columbia

Re: how do I restore the 'full' grub menu

Postby kaykav » 2010-08-10 00:59

Well this can get interesting. ok i'll try it. i'll get back to you.....
ForeverBeginsNow
kaykav
 
Posts: 28
Joined: 2009-03-09 02:01

Re: how do I restore the 'full' grub menu

Postby drokmed » 2010-08-10 15:59

StanTheMan wrote:I am multi-booting with nine distros.

Nine? Is that all? :wink: You definitely have too much time on your hands...
User avatar
drokmed
 
Posts: 1094
Joined: 2007-10-03 19:24
Location: Saint Petersburg, FL

Re: how do I restore the 'full' grub menu

Postby MeanDean » 2010-08-10 16:43

kaykav wrote: How do I correct this problem? :roll:

you start by running os-prober to see if it recognizes the other install, then you go from there
User avatar
MeanDean
 
Posts: 3956
Joined: 2007-09-01 01:14

Re: how do I restore the 'full' grub menu

Postby StanTheMan » 2010-08-10 22:21

If you are using Debian Lenny as bootloaer , it runs on ext3 , and I don't think it will mount an ext4 partition
My bootloader distro is an ext4 format and it WILL mount ext3 partitiopns,as well as NTFS partitions.
StanTheMan
 
Posts: 114
Joined: 2009-03-04 18:02
Location: British Columbia

Re: how do I restore the 'full' grub menu

Postby Absent Minded » 2010-08-11 01:45

StanTheMan wrote:If you are using Debian Lenny as bootloaer , it runs on ext3 , and I don't think it will mount an ext4 partition
My bootloader distro is an ext4 format and it WILL mount ext3 partitiopns,as well as NTFS partitions.


This isn't completely true. There are things that one can do to boot using Grub-leagacy in Debian Lenny to an ext4 partition. If you get the kernel from backports Lenny will recognize the ext4 partitions. Then you just need to pass a switch in Grub that makes it recignize ext4 as ext4 and not ext3. I have seen Dean post about it. Unfortunantly, I can't remember the switch but it is not difficult.
Serving the community the best way I can.
Spreading the tradition of Community Spirit.
Please read some Basic Forum Philosophy
Give a man a fish, he eats for a day. Teach him how to fish, he eats for life.
Updated Nov. 19, 2012
User avatar
Absent Minded
 
Posts: 3715
Joined: 2006-07-09 08:50
Location: Washington State U.S.A.

Re: how do I restore the 'full' grub menu

Postby kaykav » 2010-08-13 11:52

All in all,if I have to I'll just insert the CD and reinstall grub that way. All this configuring is good practice,but in this case not entirely necessary. Good thoughts...........thanks
ForeverBeginsNow
kaykav
 
Posts: 28
Joined: 2009-03-09 02:01

Re: how do I restore the 'full' grub menu

Postby Absent Minded » 2010-08-17 10:55

Okay, looked through a thread or two and found the switch needed for Grub-leagacy to make it boot to an ext4 partition:
Code: Select all
rootfstype=ext4
Serving the community the best way I can.
Spreading the tradition of Community Spirit.
Please read some Basic Forum Philosophy
Give a man a fish, he eats for a day. Teach him how to fish, he eats for life.
Updated Nov. 19, 2012
User avatar
Absent Minded
 
Posts: 3715
Joined: 2006-07-09 08:50
Location: Washington State U.S.A.


Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 18 guests

fashionable