In Ubuntu 11.04 I cannot edit my bootmenu anymore (Grub 1.99rc1)

Asked by hooga

In Ubuntu 11.04 I cannot edit my bootmenu anymore (Grub 1.99rc1)
Whenever I use the startup manager and choose an active system it will anyway boot into the first one from the top.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Solved by:
hooga
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What do you want to change?

Revision history for this message
hooga (hengelmann) said :
#2

The default system to boot into.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

Do you want it to be Windows by any remote chance. Try giving details so we don't have to guess like this

Revision history for this message
hooga (hengelmann) said :
#4

By chance yes, Windows XP is one of the systems I have installed. But that is not relevant. I cannot change the boot menu at all, no matter to which entry.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of actionparsnip
Sent: Saturday, 11 June, 2011 21:16
To: <email address hidden>
Subject: Re: [Question #161103]: In Ubuntu 11.04 I cannot edit my bootmenu anymore (Grub 1.99rc1)

Your question #161103 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/161103

    Status: Open => Needs information

actionparsnip requested more information:
What do you want to change?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/ubuntu/+question/161103

You received this question notification because you asked the question.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

aaaah, so when you boot up you cannot move the selection for which OS to boot?

Revision history for this message
hooga (hengelmann) said :
#6

No. When I boot I can manually choose the system from the boot menu. But in Linux when I choose the default system to boot in the startup manager this has no effect. Automatically the computer boots always in the first system from the top.

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of actionparsnip
Sent: Saturday, 11 June, 2011 22:11
To: <email address hidden>
Subject: Re: [Question #161103]: In Ubuntu 11.04 I cannot edit my bootmenu anymore (Grub 1.99rc1)

Your question #161103 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/161103

    Status: Open => Answered

actionparsnip proposed the following answer:
aaaah, so when you boot up you cannot move the selection for which OS to
boot?

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/ubuntu/+question/161103/+confirm?answer_id=4

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/ubuntu/+question/161103

You received this question notification because you asked the question.

Revision history for this message
hooga (hengelmann) said :
#7

I tried that but didn't find an answer. (And I'm not really very accomplished with any command line stuff.)

-----Original Message-----
From: <email address hidden> [mailto:<email address hidden>] On Behalf Of Eliah Kagan
Sent: Sunday, 12 June, 2011 02:56
To: <email address hidden>
Subject: Re: [Question #161103]: In Ubuntu 11.04 I cannot edit my bootmenu anymore (Grub 1.99rc1)

Your question #161103 on grub2 in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/grub2/+question/161103

    Project: Ubuntu => grub2 in Ubuntu

--
You received this question notification because you asked the question.

Revision history for this message
Wyatt Smith (wyatt-smith) said :
#8

Grub2 doesn't really allow you to edit /boot/grub/menu.lst directly.

Please see
https://help.ubuntu.com/community/Grub2

I suggest you edit /etc/default/grub
You can select the default the OS to load there

When you are done editing this file make sure you run
sudo update-grub

This will apply your changes.

Revision history for this message
delance (olivier-delance) said :
#9

Boot windows first

cd /etc/grub.d
sudo mv 30_os-prober 09_os-prober
sudo update-grub

Please raise a bug against startup-manager

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#10

Before reporting the bug against startupmanager in Ubuntu, please read https://help.ubuntu.com/community/ReportingBugs carefully, and also search to see if the bug has already been reported. If not, you can report it using Apport.

Revision history for this message
hooga (hengelmann) said :
#11

I tried delance's advice but it didn't work, it still by default boots the system on top of the list. The command

sudo mv 30_os-prober 09_os-prober

didn't produce any reaction. (Should it have?)
And yes, I think the startup manager has a bug. Changing the default boot system does not produce any result on my machine. (However, I don't know how to report a bug.)

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#12

The mv command doesn't generally produce output when it succeeds. Did you also run "sudo update-grub"? What output did you get from that?

Revision history for this message
hooga (hengelmann) said :
#13

Yes, I did run the command. It listed all the Ubuntu sytems on my machine but not the Windows system.

> -----Ursprüngliche Nachricht-----
> Von: Eliah Kagan
> Gesendet: Di. 14.06.11 (00:21)
> An: <email address hidden>
> Betreff: Re: [Question #161103]: In Ubuntu 11.04 I cannot edit my bootmenu anymore (Grub 1.99rc1)
>
> Your question #161103 on startupmanager in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/startupmanager/+question/161103
>
> Status: Open => Needs information
>
> Eliah Kagan requested more information:
> The mv command doesn't generally produce output when it succeeds. Did
> you also run "sudo update-grub"? What output did you get from that?
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/ubuntu/+source/startupmanager/+question/161103
>
> You received this question notification because you asked the
> question.
>
>
> -----Ursprüngliche Nachricht Ende-----

---
Atomkraft - NEIN Danke! Öko-Strom - JA bitte! 100% Öko-Strom für ein sauberes Klima
zum fairen Preis und für ein reines Gewissen. http://ndirect.ppro.de/click/qSW

Revision history for this message
Eliah Kagan (degeneracypressure) said :
#14

What happens if you run:

sudo os-prober

Followed by:

sudo update-grub

Please select all the text in the Terminal after running those two commands (Edit > Select All), copy it to the clipboard (Edit > Copy), and paste it here.

(It's possible that will actually fix the problem--if it does, then you don't need to post the text. You should save it before rebooting, so that you can post it if it doesn't fix the problem.)

Revision history for this message
hooga (hengelmann) said :
#15

root@holger-dtub:/home/holger# sudo os-prober
/dev/sda1:Windows NT/2000/XP (loader):Windows:chain
root@holger-dtub:/home/holger# sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.38-10-generic-pae
Found kernel: /boot/vmlinuz-2.6.38-9-generic-pae
Found kernel: /boot/vmlinuz-2.6.38-8-generic-pae
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Revision history for this message
delance (olivier-delance) said :
#16

Could you post result of command:
   sudo update-grub --version
Perhaps we are providing you solution for Grub2 but you use Grub Legacy.
Grub2 should provide: "grub-mkconfig (GRUB) 1.99~rc1-13ubuntu3" and Grub Legacy something like Grub 0.97.

Revision history for this message
hooga (hengelmann) said :
#17

The problem still persists.
delance, result:

root@holger-dtub:/home/holger# sudo update-grub --version
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.38-10-generic-pae
Found kernel: /boot/vmlinuz-2.6.38-9-generic-pae
Found kernel: /boot/vmlinuz-2.6.38-8-generic-pae
Found GRUB 2: /boot/grub/core.img
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

Then I tried this, and surprise:
root@holger-dtub:/home/holger# sudo grub --version
grub (GNU GRUB 0.97)

And I was quite sure I had the newer Grub version, 1.99 rc1-13 etc.
since this is what it says on top of my boot menu. Now I'm completely
confused! Why does the startup manager not work with the older Grub
version?

On Tue, 2011-06-14 at 17:11 +0000, delance wrote:
> Your question #161103 on startupmanager in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/startupmanager/+question/161103
>
> delance posted a new comment:
> Could you post result of command:
> sudo update-grub --version
> Perhaps we are providing you solution for Grub2 but you use Grub Legacy.
> Grub2 should provide: "grub-mkconfig (GRUB) 1.99~rc1-13ubuntu3" and Grub Legacy something like Grub 0.97.
>

Revision history for this message
delance (olivier-delance) said :
#18

Me too, I'm confused. Could you run command:
    dpkg -s grub-pc

Revision history for this message
hooga (hengelmann) said :
#19

root@holger-dtub:/home/holger# dpkg -s grub-pc
Package: grub-pc
Status: deinstall ok config-files
Multi-Arch: foreign
Priority: optional
Section: admin
Installed-Size: 2720
Maintainer: Ubuntu Developers <email address hidden>
Architecture: i386
Source: grub2
Version: 1.99~rc1-13ubuntu3
Config-Version: 1.99~rc1-13ubuntu3
Replaces: grub, grub-common (<< 1.97~beta1-1ubuntu4), grub-coreboot,
grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy, grub2 (<<
1.99~rc1-13ubuntu3)
Depends: libc6 (>= 2.8), libdevmapper1.02.1 (>= 2:1.02.36), debconf (>=
0.5) | debconf-2.0, grub-common (= 1.99~rc1-13ubuntu3), ucf,
grub-gfxpayload-lists
Suggests: desktop-base (>= 4.0.6)
Conflicts: desktop-base (= 4.0.5), grub (<< 0.97-54), grub-coreboot,
grub-efi-amd64, grub-efi-ia32, grub-ieee1275, grub-legacy
Conffiles:
 /etc/kernel/postrm.d/zz-update-grub fe8ac9419007a7ca8e13525a35e3c09a
 /etc/kernel/postinst.d/zz-update-grub fe8ac9419007a7ca8e13525a35e3c09a
 /etc/grub.d/05_debian_theme aec4119832bdfdf90e247a74f26a7d85
Description: GRand Unified Bootloader, version 2 (PC/BIOS version)
 GRUB is a portable, powerful bootloader. This version of GRUB is based
on a
 cleaner design than its predecessors, and provides the following new
features:
 .
  - Scripting in grub.cfg using BASH-like syntax.
  - Support for modern partition maps such as GPT.
  - Modular generation of grub.cfg via update-grub. Packages providing
GRUB
    add-ons can plug in their own script rules and trigger updates by
invoking
    update-grub2.
  - VESA-based graphical mode with background image support and complete
24-bit
    color set.
  - Support for extended charsets. Users can write UTF-8 text to their
menu
    entries.
 .
 This package contains a version of GRUB that has been built for use
with
 traditional PC/BIOS architecture.
Homepage: http://www.gnu.org/software/grub/
Original-Maintainer: GRUB Maintainers
<email address hidden>

On Tue, 2011-06-14 at 18:21 +0000, delance wrote:
> Your question #161103 on startupmanager in Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/startupmanager/+question/161103
>
> delance posted a new comment:
> Me too, I'm confused. Could you run command:
> dpkg -s grub-pc
>

Revision history for this message
hooga (hengelmann) said :
#20

I solved the problem by re-installing Grub2. Thx for all the help!