LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Does a LILO generator exist? (https://www.linuxquestions.org/questions/linux-newbie-8/does-a-lilo-generator-exist-538069/)

davidguygc 03-16-2007 01:06 PM

Does a LILO generator exist?
 
Hi, I'm just wondering if there is a LILO generator other than liloconfig. One that works for anything other than the basics (i.e. two HD's, booting from floppy, etc...)

Thanks,
David

kotnik 03-16-2007 01:24 PM

I don't think there is an *advanced* lilo.conf generator.

But, man lilo.conf is pretty well written, don't you think so?

davidguygc 03-16-2007 01:39 PM

Well, I've had to write my own lilo.conf to get LILO to work up to
Code:

Loading Linux............
only for it to hang there (check my other post to see what I've been having to muddle through)

All I want is to get LILO to boot from a floppy, and I really wouldn't think that the way my computer is set up is unique. So I'm really suprised that noone has made a more complex lilo.conf generator than liloconfig

apolinsky 03-16-2007 02:28 PM

There used to be liloconf (or possibly liloconfig). I havenut't used it in a number of years and don't know which distributions include it any more. It used to be standard with Redhat, but since the modern releases use grub, it is no longer included.

General Failure 03-16-2007 03:29 PM

liloconfig works for more than one disk. What's the problem?

Edit: If you _really want_ to boot from floppy:
Code:

boot = /dev/fd0
in lilo.conf.

Since you get to the point of
Code:

Loading Linux............
, lilo works btw

davidguygc 03-16-2007 05:35 PM

OK, this is the recap of my situation, and liloconfig can't get it to work:

This is the partition table (as best as I can remember) for dev/hda: (IDE)
Code:

hda1  NTFS #Main Windows partition
and /dev/hdb: (IDE)
Code:

hdb1 NTFS #extra HD, shrank it when I put Linux on
hdb2 FAT32 #space that I can put data to put in between Windows & Linux
hdb3 ReiserFS #Main Linux
hdb4 swap

Here is my custom-made lilo.conf (which is in /etc/lilo.conf)
I have LILO on a floppy so I can boot Linux immediately, so when I don't have it in it just goes straight to Vista (I know, I'm stupid.)
Code:

disk=/dev/hdb
bios=0x80

map=/mnt/floppy/map
boot=/dev/fd0
default=Linux

#prompt
#timeout=0

change-rules
reset

#Begin Linux config
image=/boot/vmlinuz
root=/dev/hdb3
initrd=/boot/initrd.gz
label=Linux
read-only
#End Linux config

And there must be something I'm not telling LILO to do to continue past that point, so I was just dying to find something that could do it for me.

Thanks,
David

General Failure 03-18-2007 05:42 AM

Ok. To have lilo boot Windows from hda1 or Linux from hdb3 your lilo.conf should look like this:

Code:

# LILO configuration file
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 120
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# End LILO global section
# Windows bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hdb3
initrd = /boot/initrd.gz
label = Linux
read-only
# Linux bootable partition config ends


davidguygc 03-18-2007 12:34 PM

Thanks for posting the code, but unfortunately, I forgot to mention that I want to boot from a floppy (I don't want to mess with the MBR, nightmare fixing).

I want to set it up to where if I want Linux, all I have to do is put in the floppy, then LILO will boot straight to Linux, else wise just keep the floppy out and have the computer boot straight to Windows

davidguygc 03-18-2007 11:20 PM

Hallelujah! Just had to switch disk to 0x81, Thanks a lot yall!


All times are GMT -5. The time now is 10:35 PM.