Differences between revisions 45 and 46
Revision 45 as of 2010-12-05 17:36:53
Size: 3220
Editor: ?fbrosson
Comment: better wording
Revision 46 as of 2011-03-27 00:00:13
Size: 3293
Editor: ?skizzhg
Comment: fixing header
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: none-~
----

Translation(s): none


This page is about migrating GRUB Legacy to GRUB 2.

Grub2 in Debian-Installer

Regressions

  • lock / password mechanism (done, see here how to use it)

  • Menu's default=saved / grub-reboot isn't implemented.

  • xen detection / setup in update-grub

Non-regression issues that may become essential (or at least, desirable) during lenny life period

  • Filesystems haven't been proof-tested with 64-bit offsets (2 TiB disks). Not really a regression (Legacy GRUB has the same problem), but it'll become critical in the future. There's a task for this in upstream: http://savannah.gnu.org/task/?7667

Grub 2 and the VGA parameter

In Grub2 the vga= parameter is deprecated 1.

To set a screen resolution for your console you can do the following log in as root

edit /etc/default/grub uncomment the GRUB_GFXMODE=640x480 and change the resolution to something you can use e.g. 1024x768

edit /etc/grub.d/00_header search for: set gfxmode=${GRUB_GFXMODE} on the next line insert: set gfxpayload=keep verify that the new line is before insmod gfxterm

run update-grub

run reboot to confirm that your changes worked!

  1. Althought the vga=ext option is deprecated with the linux command in Grub2, it is still available with the linux16 command in Grub2 as it is with the linux command in Grub-legacy. If Grub2 displays "vga=ext is deprecated. Use set gfxpayload=text before linux command instead" you don't need to downgrade to grub-legacy. Just replace linux and initrd by linux16 and initrd16 in each menuentry bloc you want to use VGA mode and add vga=ext or vga=F01 near the end of the linux16 line to get 80x50 text consoles instead of framebuffer. You may also replace ext by F00, F01, F02, F03, F05, F06 or F07 to get alternate VGA text resolutions (respectively 80x25, 80x50, 80x43, 80x28, 80x30, 80x34 and 80x60). Use vga=ask to get a chance at boot time to list all available VGA/VESA resolutions and chose one interactively before Grub2 passes control to the kernel. If you edit /boot/grub/grub.cfg instead of /etc/grub.d/10_linux remember your changes will be dropped if update-grub is launched. By the way, vga=normal is equivalent to vga=F00 and vga=ext is equivalent to vga=F01. (1)