How to switch your boot loader from LILO to GRUB.By default, VL ships with the LILO boot loader. After reading a thread here in the forum, on questions about making the switch, I decided to write this howto...
Added to that incentive, is the fact that when I installed VL on my Laptop, on boot, right after choosing VL from the LILO menu, my it would say "BIOS Datacheck Successful. Loading Linux ....."
And it will keep shooting out dots all the way across the screen at a really slow pace.... so slow, it would take up to 20 seconds to actually start booting. So I decided to make the switch.
THINGS TO KNOW....
Proceed at your own risk... If you're a newbie, I'd recommend doing some serious research on how Bootloaders work. Read this howto as many times as you need, and do not take the first step, unless you fully understand every single step in it.
RISKS INVOLVED:
If you don't know what your'e doing, after this procedure, you may end up with an unbootable install... (I'll show you a way around it at the end)
HOW TO DO IT:You do not need to "uninstall LILO", you're dealing possibly with the MBR (I install to MBR) or a floppy or a sector in the drive, in any situation, make sure you know where your LILO is currently installed. For the sake of this howto, we will assume LILO is intalled to the MBR of the master hard drive in the box (hda)
So you get the GRUB package. You can find it here
http://ftp://ftp.slackware.cz/slackware/slackware-current/extra/grub/grub-0.97-i486-2.tgzDownload it to your desktop or some place... and install it
installpkg grub-0.97-i486-2.tgz
After you're done installing it, still as root, run the config utility.
grubconfig
This utility will detect your installed Operating systems on the box, and write out a basinc config file. After that, it will ask you where to install the bootloader to, (this is where you need to remember where youre LILO is) so in my case, select MBR.
Your new boot loader configuration file will no longer be /etc/lilo.conf, but
/boot/grub/menu.lstYour config file should look somewhat like this
http://ruslug.rutgers.edu/~mcgrof/grub-images/patches/grub-0.93+cvs20030224/docs/menu.lstSome miror editing of the config file will be needed, to make it fit your needs. It's recommended that you edit the file to fit your particular needs as to OS titles and locations (if you have more than one)
You'll also need to fix the vmlinuz links to diferent kernels if you have more than one OS installed.
But remember.
Always make a backup copy of the original config file. # cp /boot/grub/menu.lst /boot/grub/menu.lst-old
That way, if something goes B0nker, you have a fresh working copy to go from.
Grub works a little different than LILO... after modifying the lilo config file, you normally have to run lilo as root, to write out the changes. When using GRUB, you don't need to run anything after modifying the file... just save the file, and you're done..
With this, I was able to shave that 20 second lag LILO had to wait before actually booting VL.... so it worked like a charm for me..
So reboot, and cross your fingers....
IN CASE THINGS GO SOLID:
In case something went wrong, bad config file, bad vmlinuz link or anything... here is what you do....
Take a Vector Linux install CD (Any version will do I guess)... boot off the CD, and type this at the prompt
linux root=/dev/hda1 ro
Assuming of course, that the root partition to your Vector Linux is /dev/hda1... If it's not, then just replace the hda1 to wherever your Vector Linux is installed... boot into VL, and retry the configure....
If you get tired and decide you can't do it... simply run lilo as root in a terminal, and you should have your old lilo boot loader back.
Hope this helps....