LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-21-2006, 09:13 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question Adding An Image To Grub?


I need help trying to add a splash image to my grub config. I know this is not very complex or essential to Linux however I would like someone to please let me know what I am doing wrong?

The file I downloaded is from http://www.gnome-look.org/content/sh...?content=36909

Here I downloaded a file called /home/carlos/Desktop/soft-tux.xpm.gz.

Now the directions state...

Installation:

Copy the file (*.xpm.gz) to e.g. /boot/grub/

Then add the following line to your /boot/grub/menu.lst:

splashimage=(hd1,0)/boot/grub/soft-tux.xpm.gz

Change the (hd1,0) if you have a different setup.


I then "cp" this file to /boot/grub and then added the suggested line to my menu.list however it did not work so I think I did something wrong. Here is my menu.list where I feel the problem is...

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## ## End Default Options ##

title Debian GNU/Linux, kernel 2.6.15-1-686-smp
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-1-686-smp root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.15-1-686-smp
#
### END DEBIAN AUTOMAGIC KERNELS LIST
splashimage=(hd0,0)/boot/grub/soft-tux.xpm


**Note the last line is the one I added to display the image which aint happening...**
 
Old 04-21-2006, 09:36 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I would comment out or remove the pretty colors part and move the splashimage line to above the menu items.
You can also remove a ton of commented lines to look something like this....

default 0
timeout 15
splashimage=(hd0,0)/boot/grub/soft-tux.xpm

title Debian GNU/Linux, kernel 2.6.15-1-686-smp
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-1-686-smp root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.15-1-686-smp
 
Old 04-21-2006, 09:44 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
So I can pretty much back up my old menu.list and then blow everything away except what you listed above and you think it will be ok?
 
Old 04-21-2006, 10:00 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Yes, backup the menu.lst first and try it.
 
Old 04-21-2006, 05:52 PM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I tried it and Grub failed to load...
 
Old 04-21-2006, 05:57 PM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
It may be too late for you, but you can make testing simpler by creating a GRUB boot floppy, and making changes there 'till you get what you want to work. When it doesn't work, just eject the floppy, reboot, and try again.
 
Old 04-21-2006, 06:06 PM   #7
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
I tried it and Grub failed to load...
I don't know why having all those commented lines should help. Does it boot with the old menu.lst ?

PTrenholme is right about using a grub boot floppy, I keep one handy all the time.
 
Old 04-21-2006, 06:14 PM   #8
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
Grub support for splashimage is fairly new.
In Debian, you need to use the version of grub from the unstable tree or you might be able to patch your existing grub.
There's some information here:

http://ruslug.rutgers.edu/~mcgrof/grub-images/#3.0
 
Old 04-21-2006, 07:45 PM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Lets face the music and ask

How do we know the soft-tux.xpm work? If it doesn't then everybody is wasting his/her time here.

The answer is already suggested by PTrenholme---->can make testing simpler by creating a GRUB boot floppy

Boot up the Grub floppy and type the command line by line as
Code:
splashimage=(hd0,0)/boot/grub/soft-tux.xpm
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-1-686-smp root=/dev/hda1 ro
initrd /boot/initrd.img-2.6.15-1-686-smp
boot
Grub will tell you which line it doesn't like.

If Grub accepts every line your system will boot.

Let Grub tell us what is wrong for a change!
 
Old 04-21-2006, 08:45 PM   #10
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
How do we know the soft-tux.xpm work?
It's just an image and it does work on my FC5 so, I would tend to agree with bernied that the original poster may have a version of grub that doesn't support splashimage.
 
Old 04-22-2006, 04:05 AM   #11
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Just did an investigation and found bernied and homey are correct in pointing out the version of Grub may have something to do with it.

I booted up a Grub 0.97 floppy and it hasn't got splashimage command. If the command is entered Grub responded

"Error 27 Unrecognised command"

I then booted a Grub 0.94 floppy created by FC2. splashimage is listed as part of the command set (by typing "help" in Grub prompt). The same splashimage command gives

"Error 1 : Filename must be either an absolute filename or blocklist".

I then used this floppy to load successfully the splashimage of Mandriva 2006 and FC5.

The conclusion I reached is the standard Grub does not support splashimage but those from the Red Hat and Mandrake/Mandriva families do.

The Grub 0.97 has no splashimage command in Suse 10.1 and Frugalware 4 but these two distros use "gfxmenu" instead.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Applications to a Live Boot Image Lofter619 Linux - Software 1 03-25-2006 01:40 PM
Adding more space to image created by dd fyanardi Linux - Software 0 08-31-2005 10:25 AM
Grub and splash-image Harp00 Slackware 1 11-10-2004 06:23 PM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 09:16 AM
Adding One More Kerne Image emmanuelmathew Linux - General 6 02-06-2003 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration