LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how do you install just LILO? (https://www.linuxquestions.org/questions/linux-software-2/how-do-you-install-just-lilo-168581/)

EnigmaZ 04-10-2004 07:05 PM

how do you install just LILO?
 
Hello!

I just installed slackware, everything went like always except the LILO install...it gave me an error and skipped LILO install, everything else is installed fine. Is there any way that i can get LILO without having to reinstall slackware?:confused:

Cheers,
E.:study: :Pengy:

nalg0rath 04-10-2004 07:36 PM

First try to logon as root and type: 'liloconfig'
If this works you only have to follow the instructions on the screen.

If liloconfig don't work:
Download the Slackware package:
ftp://ftp.slackware.com/pub/slackwar...7.2-i386-1.tgz

Install the package by typing 'installpkg lilo-22.5.7.2-i386-1.tgz' as root user.
Edit the /etc/lilo.conf so that it fit your systems partitions, then run command 'lilo' to install it. You have to edit the lilo.conf so that it installs lilo on /dev/hda (MBR).

EnigmaZ 04-10-2004 07:41 PM

Forgot to mention one thing... (posted here) i removed all of my linux paritions, rewrote the MBR and booted to windows. I'm in windows now and i cant boot to slackware becuase when i installed slackware LILO wasn't installed. So i need an alternative way to install LILO without going into linux (boot disk, etc)

jailbait 04-10-2004 09:27 PM

" i removed all of my linux paritions, rewrote the MBR and booted to windows. "
If you actually removed your Linux partitions then you nede to recreate the Linux partitions and do a complete install. If you mean that you no longer have the lilo menu that allows you to boot into Linux because you rewrote the MBR then read on.

"So i need an alternative way to install LILO without going into linux (boot disk, etc)"

Boot your Slackware install CD into rescue mode. Mount your Linux partition (I assume that it is on /dev/hda3 and that it is an ext3 partition). Then chroot to Slackware.

mkdir /hamster
mount -t ext3 /dev/hda3 /hamster
chroot hamster

When you are in your Slackware system then you can install lilo using malg0rath's instructions.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

phase9 04-11-2004 03:52 AM

Hi

If you already have slackware installed, the package LILO should be installed too.


Try the following:

* Boot from your first slackware CD

* Mount your slack partition in /mnt
mount /dev/hda? /mnt

* check your lilo.conf file (cat /mnt/etc/lilo.conf | more) for:

boot = /dev/hda

and

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda?
label = slack-9.1

Maybe you have to edit lilo.conf with vi /mnt/etc/lilo.conf.

* invoke LILO with
/mnt/sbin/lilo -r /mnt/boot -c /mnt/etc/lilo.conf

The option "-r /mnt/boot" tells LILO to use the partion mounted in /mnt as your root partion, meaning the path to directories of that partion is relative to /mnt.
Because of this, it may be, that if you just re-run LILO from the setup menu without going through the full installation procedure, the installation of the bootloader doesn't work.

The option "-c /mnt/etc/lilo.conf" tells LILO to use the config file from the above partion.


All times are GMT -5. The time now is 11:29 PM.