Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I boot using lilo, I believe that lilo refers to the lilo.conf file to determine what kernel to boot. I also believe that, if I have attached my hd's to the ATA 100 channel, that info needs to be contained within my lilo.conf
But, when I boot from a floppy, I am not clear about what the system uses to determine what kernel to boot.
Here is my lilo.conf:
-----------------------------------------------
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
message=/boot/message
linear
Questions:
[list=1][*]When I boot using a floppy, does /etc/linux.conf get used at all?[*]If linux.conf does not get used, how does the system know that it should go to the ATA 100 channel to find the HD?[*]Can I have more than one append entry? Can I add another append entry, e.g., append="ide2=0x9400, 0x9002 ide3=0x8800, 0x8402"?[*]Should the append command in my syslinux.cft have something other than 'append root=/dev/hde5?
[/list=1]
Last edited by rdaves@earthlink.net; 09-07-2001 at 12:20 AM.
When lilo boots off your hard drive, it doesn't read your lilo.conf. If you have ever made changes to lilo.conf, you know that you have to run lilo after you make the changes, or the changes don't take effect. That's because, when you run lilo, it reads its lilo.conf file and makes any changes that it needs too. If you don't run lilo after making changes, it will act like you didn't make any changes and wiil boot up like it did before.
As for knowing which kernel to use, it stores that info when you run lilo. So, when you type in the name of the kernel at the lilo boot prompt, it has the info stored in it so that it can find and load that kernel. Including the root partition location, appends, and that it should be mounted read-only.
Looking at your floppy info, I see that you get a prompt and a message is displayed for I believe 10 seconds if you don't press any keys. If you don't press any keys, it will boot into the default image which is ' new ' and ' new ' is the image named ' mykernel-2.4.2. That kernel image is probably on the boot disk. If you look around some more, you might find a file named ' mykernel-2.4.2 '.
Q1. No.
Q2. When the lilo program is run on the hard drive, it processes the lilo.conf file and writes the info it needs to the places that allow it to boot and find the kernel and anything else it needs.
Q3. I don't know. It does seem that it is possible. You could try this with a copy of your boot disk.
default new
prompt 1
display boot.msg
timeout 100
label new
kernel mykernel-2.4.2
append root=/dev/hde5
append ide2=0x9400, 0x9002 ide3=0x8800, 0x8402
Make sure you use a copy of you disk.
Q4. That's all it needs. The read-only part has been programed into it by lilo when you ran lilo after making changes to lilo.conf.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.