LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-16-2007, 01:06 PM   #1
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Rep: Reputation: 30
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
 
Old 03-16-2007, 01:24 PM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254

Rep: Reputation: 31
I don't think there is an *advanced* lilo.conf generator.

But, man lilo.conf is pretty well written, don't you think so?
 
Old 03-16-2007, 01:39 PM   #3
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
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
 
Old 03-16-2007, 02:28 PM   #4
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 14.1, 14.2; Debian Jessie; Centos 6; FreeBSD 9 & 10
Posts: 275

Rep: Reputation: 35
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.
 
Old 03-16-2007, 03:29 PM   #5
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 35
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

Last edited by General Failure; 03-16-2007 at 03:34 PM.
 
Old 03-16-2007, 05:35 PM   #6
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
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
 
Old 03-18-2007, 05:42 AM   #7
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 387

Rep: Reputation: 35
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
 
Old 03-18-2007, 12:34 PM   #8
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
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
 
Old 03-18-2007, 11:20 PM   #9
davidguygc
Member
 
Registered: Jul 2004
Location: Lubbock, Texas
Distribution: Slackware 12.0 with Beryl 0.2.1
Posts: 334

Original Poster
Rep: Reputation: 30
Hallelujah! Just had to switch disk to 0x81, Thanks a lot yall!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Traffic Generator Bugger Linux - Software 3 02-20-2006 05:17 AM
php generator webwolf70 Linux - Software 1 10-12-2005 05:26 PM
packet generator ddaas Linux - Networking 2 03-30-2005 04:34 PM
C Prime Generator Chrax Programming 9 12-23-2004 01:02 AM
When I run /sbin/lilo on Debian it says /proc/partitions does not exist coldy Linux - General 1 03-21-2004 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration