LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing Grub over LILO (https://www.linuxquestions.org/questions/linux-software-2/installing-grub-over-lilo-398757/)

anon209 01-02-2006 04:30 PM

Installing Grub over LILO
 
Hey folks,

I installed Slackware 10.2 awhile back, but im getting tired of using lilo, I used to use Grub way back, it came as an option in the installation for gentoo during install. But slackware only allows lilo during installation, I downloaded the grub package from linuxpackages.net, but how do I go about installing grub I ran "installpkg grub-0.xx.tgz" it installed the package but lilo still starts at boot. Any help would be appreciated thanks.

gilead 01-02-2006 04:50 PM

I recommend that you don't uninstall lilo completely until you've got grub working. You can remove lilo from your boot record with:

Code:

/sbin/lilo -u
This will restore the old boot sector which means that Linux won't boot until you either re-run lilo or get grub working. However, at least you won't have to reinstall the package which you would if you removed lilo with (your version may be different):

Code:

removepkg lilo-22.5.9-i486-2
I can't help with grub - I ran it previously under Fedora C4 but never looked at what it was doing...

syg00 01-02-2006 05:49 PM

I would think "grub-install /dev/hda" should work; maybe you'll need --root-directory, but probably not. See the doco on gnu.org.

Archangel-13 01-02-2006 06:19 PM

Normally you would just run:
Code:

grub
and then from within grub:
Code:

root (hd0,0)
setup (hd0)
quit

That is assuming that the partition you want to boot from is the grub equvalent to /dev/hda1. (aka /dev/hda1 = (hd0,0))

After that is done you will have to create a /boot/grub/menu.lst file.

Or you could have searched through this site and gotten THIS link which would help you.


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