Siduction Forum

Siduction Forum => Software - Support => Topic started by: grady on 2013/02/20, 23:08:47

Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/20, 23:08:47
Friends:

It's almost a year since I asked my last perpetual-beginner's question here. I have an even simpler one.

First: I've just set up a new dual-boot box (siduction+win7) using siduction 2012.2. And I'd like to salute all hands for a superb edition. The installer is especially elegant! Well done!

AFAICS, I have only one tiny quetsch. At startup: "Grub loading. Welcome to Grub" shows for a second. Then bootup proceeds. And yes, I can see how that's a good thing on a single-boot machine that never wants other than to boot the latest kernel.

Will someone please tell me how to enable (display) the grub2 boot-loader menu page?

I've spent four hours failing to find the answer. I apologize for failing to look in the right place.

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: ayla on 2013/02/21, 05:26:51
Hi,

you may open your /etc/default/grub configuration file and have a look at the line
QuoteGRUB_TIMEOUT=5
Thats how it is on my system, and thats default, 5sec.
If you have a lower number there you may change it, save, and run update-grub after.

If that does not solve your problem you may show us the content of this file and of file /boot/grub/grub.cfg also.

greets
ayla
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/21, 10:09:08
ayla:

Thank you for replying.Here's my file

Quote# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: ayla on 2013/02/21, 15:09:28
As this file looks fine the other one would be of interest.
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/21, 20:00:04
ayla:

Sorry. This is pretty long; I'd hoped you'd find the solution in my first file.

Quote#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
 load_env
fi
set default="0"

if [ x"${feature_menuentry_id}" = xy ]; then
 menuentry_id_option="--id"
else
 menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
 set saved_entry="${prev_saved_entry}"
 save_env saved_entry
 set prev_saved_entry=
 save_env prev_saved_entry
 set boot_once=true
fi

function savedefault {
 if [ -z "${boot_once}" ]; then
   saved_entry="${chosen}"
   save_env saved_entry
 fi
}

function load_video {
 if [ x$feature_all_video_module = xy ]; then
   insmod all_video
 else
   insmod efi_gop
   insmod efi_uga
   insmod ieee1275_fb
   insmod vbe
   insmod vga
   insmod video_bochs
   insmod video_cirrus
 fi
}

if [ x$feature_default_font_path = xy ] ; then
  font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  7ad5c894-2341-4ba5-9e7f-72aff5da7636
else
 search --no-floppy --fs-uuid --set=root 7ad5c894-2341-4ba5-9e7f-72aff5da7636
fi
   font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
 set gfxmode=auto
 load_video
 insmod gfxterm
 set locale_dir=$prefix/locale
 set lang=en_US
 insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-7ad5c894-2341-4ba5-9e7f-72aff5da7636' {
   load_video
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos5'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  7ad5c894-2341-4ba5-9e7f-72aff5da7636
   else
     search --no-floppy --fs-uuid --set=root 7ad5c894-2341-4ba5-9e7f-72aff5da7636
   fi
   echo   'Loading Linux 3.8-0.towo-siduction-686 ...'
   linux   /boot/vmlinuz-3.8-0.towo-siduction-686 root=UUID=7ad5c894-2341-4ba5-9e7f-72aff5da7636 ro  quiet
   echo   'Loading initial ramdisk ...'
   initrd   /boot/initrd.img-3.8-0.towo-siduction-686
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-7ad5c894-2341-4ba5-9e7f-72aff5da7636' {
   menuentry 'Debian GNU/Linux, with Linux 3.8-0.towo-siduction-686' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8-0.towo-siduction-686-advanced-7ad5c894-2341-4ba5-9e7f-72aff5da7636' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  7ad5c894-2341-4ba5-9e7f-72aff5da7636
      else
        search --no-floppy --fs-uuid --set=root 7ad5c894-2341-4ba5-9e7f-72aff5da7636
      fi
      echo   'Loading Linux 3.8-0.towo-siduction-686 ...'
      linux   /boot/vmlinuz-3.8-0.towo-siduction-686 root=UUID=7ad5c894-2341-4ba5-9e7f-72aff5da7636 ro  quiet
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-3.8-0.towo-siduction-686
   }
   menuentry 'Debian GNU/Linux, with Linux 3.6-9.towo-siduction-686' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.6-9.towo-siduction-686-advanced-7ad5c894-2341-4ba5-9e7f-72aff5da7636' {
      load_video
      insmod gzio
      insmod part_msdos
      insmod ext2
      set root='hd0,msdos5'
      if [ x$feature_platform_search_hint = xy ]; then
        search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  7ad5c894-2341-4ba5-9e7f-72aff5da7636
      else
        search --no-floppy --fs-uuid --set=root 7ad5c894-2341-4ba5-9e7f-72aff5da7636
      fi
      echo   'Loading Linux 3.6-9.towo-siduction-686 ...'
      linux   /boot/vmlinuz-3.6-9.towo-siduction-686 root=UUID=7ad5c894-2341-4ba5-9e7f-72aff5da7636 ro  quiet
      echo   'Loading initial ramdisk ...'
      initrd   /boot/initrd.img-3.6-9.towo-siduction-686
   }
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos5'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  7ad5c894-2341-4ba5-9e7f-72aff5da7636
   else
     search --no-floppy --fs-uuid --set=root 7ad5c894-2341-4ba5-9e7f-72aff5da7636
   fi
   linux16   /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos5'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  7ad5c894-2341-4ba5-9e7f-72aff5da7636
   else
     search --no-floppy --fs-uuid --set=root 7ad5c894-2341-4ba5-9e7f-72aff5da7636
   fi
   linux16   /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos5'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  7ad5c894-2341-4ba5-9e7f-72aff5da7636
   else
     search --no-floppy --fs-uuid --set=root 7ad5c894-2341-4ba5-9e7f-72aff5da7636
   fi
   multiboot   /boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos5'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5'  7ad5c894-2341-4ba5-9e7f-72aff5da7636
   else
     search --no-floppy --fs-uuid --set=root 7ad5c894-2341-4ba5-9e7f-72aff5da7636
   fi
   multiboot   /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7 (loader) (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-632C59663411EE1A' {
   insmod part_msdos
   insmod ntfs
   set root='hd0,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'  632C59663411EE1A
   else
     search --no-floppy --fs-uuid --set=root 632C59663411EE1A
   fi
   chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
 source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
 source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: ayla on 2013/02/22, 06:16:43
Hi,

I could not find anything wrong in your configuration files.
Thats bad :)

I can not imagin what happens on your system. But I've read of some issues by updating grub2 in the last days and the solution there (http://forum.siduction.org/index.php?msg=27243#27243) may help in your case also.

So if not anyone comes up in the next hours with a better idea you may try this:

A warning first:

Don't reboot if you get an error message during this process!

Your system will be unbootable.

Insteed let your system up and running and come back or to IRC-channel, provide your error message and ask what to do.

The steps:
dpkg -l grub*  | grep ii will show you every grup package installed.
Remove every listet package. Run the command above again to be sure you've got them all.
Then apt-get install grub-pc
If you're getting asked where to install grub choose the whole disk, not a partition. This should be /dev/sda in your case, not sda1 or sda6.

Now run
update-grub
If you've got no errors you may now reboot your system.

Greets
ayla
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/22, 20:58:13
ayla:

Thank you for your clarity,
I'm surprised that you found nothing wrong with the reports I sent you.
The solutions to my problems are almost always very simple.
But (expletive deleted) grub is my nemesis.
I'm also surprised that many others haven't reported the same "bug", for this is a once dist-upgraded fresh install of the latest siduction edition.
I did the siduction install using defaults- after gparted partitioning- including creating first (primary) partition for Windows.
I installed Win7.
I tried to take back the bootloader function for grub carefully following the siduction manual. That went wrong.
I then did a siduction reinstall. That seemed to have gone perfectly, the only apparent change being that grub was back in control.
I dist-upgraded with no system complaint.
The grub menu page has never shown. Warum, warum, ist die Banane krum?


Quotenewbroom@debAbox:~$ su
Password:
root@debAbox:/home/newbroom# cd
root@debAbox:~# dpkg -l grub* | grep ii
ii  grub-common                                               2.00-12                            i386         GRand Unified Bootloader (common files)
ii  grub-pc                                                   2.00-12                            i386         GRand Unified Bootloader, version 2 (PC/BIOS version)
ii  grub-pc-bin                                               2.00-12                            i386         GRand Unified Bootloader, version 2 (PC/BIOS binaries)
ii  grub2-common                                              2.00-12                            i386         GRand Unified Bootloader (common files for version 2)
root@debAbox:~#

Will you kindly tell me explicitely how to remove these packages? I can guess; but I usually guess wrong.

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: dibl on 2013/02/22, 22:34:40
~# apt-cache policy os-prober

?
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/23, 01:15:25
@dibl:
Thank you for your response.
Please take this as a friendly reply.

Ed Koch (New York City mayor, in press conference) had been asked (and had explained) the same question several times by the same reporter.
Asked the same yet again, Koch replied:
"Look! I can explain this to you; but I cannot comprehend it for you."

I can run os-prober (I guess).
But are you suggesting that in os-prober I may find a way of fixing my problem? Or that using os-prober is the right way to delete the packages that ayla has suggested I remove?
Can you please "comprehend" your suggestion for me? And if you'll treat me as a Kindergartner, that'll be kind.

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: dibl on 2013/02/23, 02:16:55
It appears that there are a couple of possibilities, regarding your problem:

1) os-prober is not installed, and so the win 7 OS is not being discovered and placed on the grub menu,

2) there is a video display problem during the grub menu display, that keeps the menu from being painted on the screen.

My first question was to check possibility #1.
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/23, 03:45:34
dibl:

Thank you for your patience.
I comprehend !! All is clear.

While waiting for ayla to reply, I'll check to see if os-prober is installed, and run it. And report any interesting results.

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/23, 04:17:05
dibl:

Os-prober seems in order:

Quotenewbroom@debAbox:~$ su
Password:
root@debAbox:/home/newbroom# cd
root@debAbox:~# apt-cache policy os-prober
os-prober:
 Installed: 1.57
 Candidate: 1.57
 Version table:
*** 1.57 0
       500 http://http.debian.net/debian/ unstable/main i386 Packages
       100 /var/lib/dpkg/status
root@debAbox:~#


Comment? Suggestion?

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: dibl on 2013/02/23, 05:29:17
So os-prober is installed and should work correctly.

Which leaves the possibility of a video display issue.  Can you give the lspci output for the VGA line, and if it's not a laptop, tell us about the monitor please.
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/23, 08:21:55
dibl:

Quotenewbroom@debAbox:~$ lspci

00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03)

Monitor: Philips flatscreen 190V (2007). Running 1280x1024@60Hz.

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: dibl on 2013/02/23, 14:07:47
In /etc/default/grub, find this line:

#GRUB_TERMINAL=console

With a root-mode editor, delete the "#", then save it and exit the editor.  Run ~# update-grub and then reboot to test it.
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: piper on 2013/02/23, 20:00:26
What happens when you rundpkg-reconfigure gruband would like to seels -la /dev/disk/by-uuid/

EDIT: I would try this first, changeGRUB_TIMEOUT=5toGRUB_TIMEOUT=10and then do as rootupdate-grubreboot and see if the 10 seconds makes any difference, this has not happened to me, but doing some google reading I have seen it happen to others (booting with windows only) and the 10 seconds helped.
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/23, 23:49:26
dibl:

SHAZAM!  dibl, you've solved my problem!
The deletion of one # has done it.
My grub menu page shows, and both siduction and Win7 will boot.

I'm sorry for all the exercise I've given you and ayla and piper, but I'm also very grateful.

Thank you all very much.

I couldn't posssibly enjoy running sid without the great forum support from knoppix>kanotix>sidux> aptosid>siduction.

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: dibl on 2013/02/24, 00:13:16
Excellent.  Now please go to the original post and put a "SOLVED" in front of the title, so others can follow our little adventure.  Thanks!
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: piper on 2013/02/24, 01:13:17
I am glad your problem is fixed, although I don't see why that actually fixed it :)
Quote
I'm sorry for all the exercise I've given you and ayla and piper, but I'm also very grateful.
No problem at all, that's what a community is all about !
Title: How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/24, 10:23:16
@ dibl:

QuoteExcellent. Now please go to the original post and put a "SOLVED" in front of the title, so others can follow our little adventure.

Mate, if I could, I surely would. But I don't know how.
Entschuldigen Sie, bitte.

grady
Title: Re: How to enable grub2 boot-loader menu page?
Post by: HunkirDowne on 2013/02/24, 10:46:28
Quote from: "grady"@ dibl:

QuoteExcellent. Now please go to the original post and put a "SOLVED" in front of the title, so others can follow our little adventure.

Mate, if I could, I surely would. But I don't know how.
Entschuldigen Sie, bitte.

grady

This is so simple once you know how to do it.  ;-)

Go to your original post and you should see an icon on the lower right that says 'edit' (just to the right of 'quote').  From there you can edit your post including the subject line.  Type in "[solved]" at the front of the subject line.  I've had to modify (truncate or change) my subject line to get it to fit as the subject field is (appropriately) limited to a certain number of characters.

The only 'convention' that I am relatively certain of is that "solved" should be at the lead of the subject.  I believe it should be contained in brackets, but I've seen parentheses used as well.  As far as case is concerned, I typically use all lower case.
Title: RE: Re: How to enable grub2 boot-loader menu page?
Post by: dibl on 2013/02/24, 13:28:50
Hunkirdowne has said it correctly, but I have used my mod power to take care of it.

@piper that Phillips monitor apparently can't display the default graphical-mode screens from the Intel GPU, so we disabled graphical mode and put the menu in character mode.
Title: RE: Re: How to enable grub2 boot-loader menu page?
Post by: timc on 2013/02/24, 13:59:41
I like my menu better in the character mode, too. Mine works in graphical mode, but the characters are tiny and squiggly, very hard to actually read. So, I thank you too, dibl. Greatest tip ever!

Tim
Title: RE: Re: How to enable grub2 boot-loader menu page?
Post by: michaa7 on 2013/02/24, 14:27:43
I second timc's statement! Thank's to all involved here.
Title: Re: RE: Re: How to enable grub2 boot-loader menu page?
Post by: piper on 2013/02/24, 15:38:45
Quote from: "dibl"Hunkirdowne has said it correctly, but I have used my mod power to take care of it.

@piper that Phillips monitor apparently can't display the default graphical-mode screens from the Intel GPU, so we disabled graphical mode and put the menu in character mode.

Thanks dibl, just never knew anyone that actually had to do this and never had to do a search for it.
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/26, 07:56:40
@dibl:

Thank you for doing my "solved" edit for me.
Your identifying my rather old monitor as the root of the problem was pretty astute.

@HunkirDowne:
I thank you too for the post editing howto.

I'm sorry to pick that scab, but ...
The only thing that shows on my screen at post bottom-right, and at right of the quote icon is an up-pointed arrow (Back to top).
I don't see an "edit" icon.

grady
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: michaa7 on 2013/02/26, 10:56:48
Quote from: "grady"...
I don't see an "edit" icon.
It's visible only if you're logged in.
Title: [SOLVED] How to enable grub2 boot-loader menu page?
Post by: grady on 2013/02/26, 22:43:13
Quote from: "michaa7"
Quote from: "grady"...
I don't see an "edit" icon.
It's visible only if you're logged in.

Oi, weh !  :oops:  I can see!

Thank you, michaa7.

grady