Slackware with Grub

Collins Richey erichey2
Wed Aug 11 14:15:52 PDT 2004


On Wed, 4 Aug 2004 18:18:19 -0400 Kurt Wall <kwall at kurtwerks.com> wrote:
> In a 0.4K blaze of typing glory, Alma J Wetzker wrote:
> > I have a computer that does not like lilo.  It boots Grub distro's fine but 
> > with lilo it fills half the screen with ' 10's and stops.  Never even 
> > starts booting linux.  What do I need to do to install grub to boot 
> > slackware 10?
> 
> Alma,
> 
> Did you ever get this squared away? I've got it working here and
> it was brain-dead simple.
> 

Yes indeed. Here's a simple procedure.

1. Install the grub package using your favorite method.

2. If the installer did not do so, make sure you have /boot/grub with the
following contents (this list is for grub-0.94-r1; copy them from wherever the
installer left them). 

e2fs_stage1_5
fat_stage1_5
ffs_stage1_5
grub.conf (you create this)
grub.conf.sample
jfs_stage1_5
menu.lst  (this is a symlink to grub.conf; optional)
minix_stage1_5
nbgrub
pxegrub
reiserfs_stage1_5
splash.xpm.gz
stage1
stage2
stage2.netboot
stage2.old
vstafs_stage1_5
xfs_stage1_5

3. Here is a sample grub.conf

# -- all this stuff is optional
color white/blue black/light-gray
default 0
timeout 25

### This is the g2 splash image
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
# --- end of optional stuff

# note hd0,5 - hda6 is my root partition
# if you are using a /boot partition, alter hd0,5 to wherever the /boot is
# located

 title what-ever-you-want-to-call-it
    root (hd0,5)
    kernel (hd0,5)/boot/your-kernel-name root=/dev/hda6 ro
# note, the previous line for a separate /boot partition would be different
# unless your /boot partition has a /boot symlink
#   kernel (hd0,5)/your-kernel-name root=/dev/hda6 ro

# -- obviously this is optional and for some obnoxious
# but I run a dual boot machine

title WinXP-hda1
    root (hd0,0)
    chainloader +1

4. To enable grub as your bootloader, as root, do the following. Change hd0,5
to the location of your/boot/grub. The root statement merely points to the
partition where grub can find the expected contents of /boot/grub. The setup
statement identifies the disk (not partition) where the mbr is to be written.

grub
root (hd0,5)
setup (hd0)
quit

5. Reboot and enjoy

6. Unlike lilo, you do not need to rerun anything from this point on when you
change the contents of grub.conf.

HTH,

-- 
 /\/\
( CR ) Collins Richey
 \/\/     Grant me the senility to forget the people I never liked anyway, 
             the good fortune to run into the ones I do, and the eyesight 
	     to tell the difference.





More information about the Linux-users mailing list