LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-29-2005, 11:32 AM   #1
07mackenzie
Member
 
Registered: Aug 2004
Posts: 94

Rep: Reputation: 15
Running GRUB on Slackware


Alright, I installed slackware a while ago and it automatically installed LILO. I personally prefer GRUB so I am going to try to get it running. Please let me know if the following information is the correct way to do this (I want LILO to not be the bootloader anymore. LILO was installed to the MBR during my installation so I assume GRUB will have to go there as well?) Here goes...

First: open /boot/grub/menu.lst and put the following text into it:

Code:
# Change the colors.
color black/cyan light-green/blue

# Boot automatically after 3 secs.
timeout 3

# By default, boot the first entry.
default 0

# Fallback to the second entry.
fallback 1

# For booting WIDLY
title Windows NT
rootnoverify (hd0,0)
makeactive
chainloader  +1

# For booting GNU/Linux
title  Linux Slackware - 2.6.5
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5
Now this is where my first question comes into play. I only have ONE OS which is Slackware. So I assume I can remove all of the text under "#for booting WILDLY"?

And because I only run one OS, shouldn't the following:
Code:
# For booting GNU/Linux
title  Linux Slackware - 2.6.5
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5
be changed to

Code:
# For booting GNU/Linux
title  Linux Slackware - 2.6.5
root (hd0,0)
kernel /boot/vmlinuz root=/dev/hda1
?

And then after the config part is done, all I have to do is run "grub-install" as root?

And then lastly, but not at all essential, is it possible to change the background color of the GRUB screen to a background image? If so, how can it be done and does the image have to be any specific size?

Thanks so much
 
Old 06-29-2005, 11:59 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
remove all of the text under "#for booting WILDLY"?
You can just comment it out.

After config file...just do grub-install /dev/hda

You can put splash screen in grub. Although they have a limitation of only 14 color images...just search google for "grub splash screen". There are few how-tos out there that i've seen. Sorry i don't have the links right now but you should get them from google.

Tux
 
Old 06-29-2005, 12:04 PM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,254

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
The root() function is the grub root partition
eg, the partition from where it will search files

So root(hd0,4) will tell to grub to set its root to
/dev/hda5

That corresponds to the partition where /boot is located,
not neccessarly the / partition as /boot may be on a
separate partition.
 
Old 06-29-2005, 12:11 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Thanks Keefaz for pointing that out...i must be dozing

Tux,
 
Old 07-13-2005, 05:04 PM   #5
07mackenzie
Member
 
Registered: Aug 2004
Posts: 94

Original Poster
Rep: Reputation: 15
How can I check to make sure what :

root I should put in (I think its 0,0) and what # dev/hda# should be (I think its hda1)?

And also, tuxrules said to do "grub-install /dev/hda". So i run just that and not "grub-install /dev/hda#", (where number is the right root).
 
Old 07-13-2005, 05:17 PM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3184Reputation: 3184Reputation: 3184Reputation: 3184Reputation: 3184Reputation: 3184Reputation: 3184Reputation: 3184Reputation: 3184Reputation: 3184Reputation: 3184
I believe that "/dev/hda" is correct because "/dev/hda#" refers to individual partitions. The loader really goes into the boot-record, outside of a partition.

As an aside... I definitely prefer grub, not only because you don't have to re-run anything when you change the boot-partition, but also because grub has saved my many times. When something goes wrong, as inevitably it will (and at the worst possible hour), grub actually provides you with simple tools that might let you fix the problem on-the-spot, without grabbing for an emergency CD-ROM. It is well worth the time to read the grub documentation completely.
 
Old 07-14-2005, 12:25 AM   #7
Basel
Member
 
Registered: Feb 2004
Location: United States
Distribution: Ubuntu 10.10
Posts: 319

Rep: Reputation: 30
The following scenario explains how grub handels your hardisk in terms of primary master disk and primary slave disk. It assumes that Slackware is installed under the first partition of your primary master disk and SuSE is installed under the fourth parition of you primary slave disk.
When Slackware is started, the primary master disk is referred to as /dev/hda and the primary slave is referred to as /dev/hdb. The Grub bootloader, however, uses a slightly different naming convention, since it was originally designed to be multiplatform (which it actually is). The primary master disk is hd0 and the primary slave disk is hd1. The first partition on the primary master disk is hd0,0 (/dev/hda1 under Slackware), the second parition of the primary master disk is hd0,1(/dev/hda2), etc.
The Grun bootloader configuration file is "/boot/grub/menu.lst". In this file, the entries to boot Slackware and SuSE are put there by default and may look like this :

###Slackware 10.1
title Slackware
kernel (hd0,0)/boot/vmlinuz ro root=/dev/hda1

###SuSE 9.3 Prof
title SUSE LINUX 9.3
kernel (hd1,3)/boot/vmlinuz root=/dev/hdb4 vga=0x31a selinux=0 splash=silent resume=/dev/hda2 showopts
initrd (hd1,3)/boot/initrd
 
Old 08-11-2005, 11:10 PM   #8
Diademed
Member
 
Registered: Jul 2004
Distribution: Slackware 10.2
Posts: 159

Rep: Reputation: 30
Apologies...mispost.

Last edited by Diademed; 08-12-2005 at 12:22 AM.
 
  


Reply


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
Running GRUB at its prompter grautu Linux - General 6 09-19-2005 10:01 AM
install grub, lilo running.. slack10.1 rkrishna Slackware 16 06-22-2005 06:59 AM
Install grub on running system FiveFlat Linux - Software 4 10-12-2004 04:29 AM
running DOS...Grub problem... MrMuffles Linux - General 1 06-18-2003 11:56 PM
Running DOS...Grub problem... MrMuffles General 0 06-18-2003 10:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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