Advertisement
Promo

Become a member of the ZDNet UK community

J.A. Watson

View blog's RSS Feed

Jamie's Random Musings

Various thoughts and adventures, including but not limited to Linux, Windows XP and Widows Vista, and assorted bits of hardware new and old.

Tuesday 13 January 2009, 1:47 PM

Configuring GRUB for Graphic Booting

Posted by J.A. Watson

As I have mentioned previously, there are two popular versions of GRUB in use today, the "standard" or original version, which does only text display while booting (with background colors), and the "gfxboot" version, which can display and update graphic files while booting. I will concentrate on the gfxboot version here.

The graphic information to be displayed is specified in the GRUB configuration file (typically /boot/grub/menu.lst) using the gfxmenu keyword. The file is usually called message (openSUSE and friends) or gfxmenu (Mandriva and friends), but in fact in could be called pretty much anything you want. Likewise, the file is usually located in the /boot directory, although I have also seen it in /boot/grub, but of this also can be pretty much anything you like.

This only gets slightly tricky when you have a multi-boot Linux system, and some versions have the graphical GRUB while others don't. Basically, what happens is that if you use the simplest specification of the graphic file, like this:

gfxmenu /boot/message

When it boots, GRUB finds this file and displays its contents. But if you have multiple Linux partitions, and you specify the others with the configfile keyword, when you select one of them from the boot list, GRUB goes looking for the gfxmenu file in those partitions, which will result in an error message if the file is not found.

The simple way around this problem is to always include the disk and partition specification with the file specification, like this:

gfxmenu (hd0,7)/boot/message

This way, if the GRUB configuration file in the new partition doesn't contain a gfxmenu specification, GRUB will continue to use the one it already has; if there is a new specification, it will of course switch to displaying from that one. Of course, be sure to include the partition specification in all of the GRUB config files you have...

jw 13/1/2009

Comments on this post

J.A. Watson

This member is ranked #2 in our top 100

  • J.A. Watson
  • Applications Development, Subingen, Solothurn, Bern, Switzerland
  • Member since: November 2007

Site Activity Rating 6

Contacts' Latest Discussions

Number of Tracked Discussions: 2,617

Moley Moley

Chrome Beta for Linux

Wednesday 9 December 2009, 1:48 PM

1 comment
ator1940 ator1940

Personal Financial Management Software...

Wednesday 9 December 2009, 10:00 AM

3 comments

Contacts' Latest Blogs

Number of Contacts Blogs: 15

Avatar Karen Friar

HP workers set dates for strikes

Thursday 3 December 2009, 7:57 PM

1 comment

Skip Sub Navigation Links to CNET Brand Links

Help

Become part of the ZDNet community.

Newsletters