Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-28-2004, 06:32 PM   #1
Senior Member
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 50
Get GRUB to work

I have been using LILO for a long time and it have been working without any problems. I am familiar with its config-file and so on.

But today I thought that I may try GRUB instead after I have compiled the 2.6.10-kernel.

Now, grub seems to be almost too difficult. I have installed it from source on Slackware. It came without any config-file so I first had to boot my kernel using the command-prompt. Then I found a config-file on the web that I used. It did not load when I rebooted, I had to manually load the config-file using the command "configfile" and then I got the menus that I wanted but it gave me an error about it not being able to mount. And also I saw that it used the command "splashimage" but not only did grub come without a good conf-file I can't find any splashimage.

How the **** do one install GRUB easily? I read somewhere that grub should be better then LILO both with its entirely graphical menus and being easier to install and configure.

I admit that I could install it. But it is not easy to configure since I had to find a config-file by myself. It was not graphical since it could not load the configfile by itself and when the menus appeard it was only white on black, even LILO is more graphical with a red color.

What am I doing wrong, here?
Old 12-28-2004, 07:34 PM   #2
LQ Newbie
Registered: Dec 2003
Location: Canada
Posts: 19

Rep: Reputation: 0
Assuming you uncompressed in /usr/local.

Create the grub subdirectory in /boot.

There are some files located in the directory:
such as stage1
stage2 etc

Copy these to /boot/grub

Determine which partition has the bootloader:
Go to the /usr/local/grub-0.93/grub directory
(or whatever version yours is)

The executable file 'grub' is located there.
Enter the command 'grub' to activate the grub environment.

At the 'grub>' prompt, enter the command:
find /boot/grub/stage1

You will be given the location, such as (hd0,4).
This will be needed for the file called menu.lst.

Go to the /boot/grub directory.
Create a file named menu.lst

Edit the file to include a basic menu, such as:

default 0
timeout 20
color light-gray/blue black/light-gray
title Windows ME
rootnoverify (hd0,0)
chainloader +1
title Slackware 10.0
root (hd0,4) or whatever
kernel (hd0,4)/boot/vmlinuz ro root=/dev/hda5
title shutdown

Again, from the grub environment, do:
grub> root (hd0,4)
grub> setup (hd0)

This will install the bootloader in the MBR

To install grub into the 'boot saector' of a partition instead
of the MBR, do:
grub> setup(hd0,4)

All numbers such as those in (hd0,4) should reflect your situation.
Old 04-17-2006, 07:31 PM   #3
Registered: Apr 2006
Distribution: SUSE-10.1-32bit
Posts: 123

Rep: Reputation: 15
2 years later ....
Thank you for your clarity.
Old 04-17-2006, 08:53 PM   #4
LQ Newbie
Registered: Mar 2006
Distribution: windows, ubuntu, Fedora, CentOS, FreeBSD.
Posts: 10

Rep: Reputation: 0
2 years later ....
Thank you.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Grub to work r0wb0t Fedora - Installation 5 11-12-2004 07:35 AM
Grub won't work bstopp Linux - Newbie 4 11-11-2004 10:46 AM
My Grub loader doesn't hmingjun Linux - Newbie 2 08-09-2004 04:25 PM
commands work with interactive grub, but not in grub.conf richardg Linux - Newbie 2 11-23-2003 05:36 AM
Getting GRUB to work linuxnewbie001 Linux - Software 1 08-01-2003 03:30 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:02 AM.

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