LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   LILO Boot config to start up Fedora (https://www.linuxquestions.org/questions/fedora-35/lilo-boot-config-to-start-up-fedora-307117/)

besttech01 03-28-2005 03:22 PM

LILO Boot config to start up Fedora
 
What is the LILO config that I must paste in order to boot up Fedora Core 3 on /dev/hda2 ?

image = /boot/vmlinuz
root = /dev/hda2
label = Fedora_Core_3
read-only

This one doesnt seem to work, what do I edit?

mjrich 03-28-2005 10:15 PM

What else do you have on your system (hard drive configuration, OS that contains your /etc/lilo.conf and Lilo binary) ? - Are you setting your boot options up from within Slackware ?

Cheers,

mj

besttech01 03-29-2005 05:02 PM

Yes I am doing everything in Slackware since I'm "locked-out" from Fedora. My current HDD Config is:

/dev/hda1 Windows XP Pro
/dev/hda2 Fedora /
/dev/hda3 Fedora /home
/dev/hda4 Extended (rest of HDD, about 88 GB)
/dev/hda5 Fedora /usr
/dev/hda6 Fedora /opt
/dev/hda7 Swap
/dev/hda8 Slackware /
/dev/hda9 Slackware /home
/dev/hda10 Swap (yes I, by mistake, made 2 swaps)
/dev/hda11 Slackware /usr
/dev/hda12 Slackware /opt

I would guess my LILO binary is at the MBR? or wihtin Slackware itself. There is a lot of mistakes with this HDD configuration becasue this is my first Slackware 10.1/Windows XP Pro/Fedora core 3 installation. But my question still remains, what must I edit from the above LILO config to be able to boot up with Fedora Core 3 at /dev/hda2 ?

mjrich 03-29-2005 11:49 PM

If you're doing this from your Slack installation, then you'll need to use the absolute path to your Fedora kernel:
Code:

image = /mnt/hda2/boot/vmlinuz
root = /dev/hda2
label = Fedora_Core_3
read-only

- Edit the mount point for hda2 as appropriate, and make sure that it's mounted before running lilo again.

Cheers,

mj

besttech01 03-30-2005 02:31 PM

Hmm.. I pasted the code in exactly as you posted it, but it still won't load up.
Quote:
"- Edit the mount point for hda2 as appropriate, and make sure that it's mounted before running lilo again"
I don't understand how to mount hda2. I am new to Linux. How do I mount hda2?

mjrich 03-30-2005 03:25 PM

Check that /dev/hda2 is included in your /etc/fstab file - if not, then add it using the same format, e.g.
Code:

/dev/hda2      /mnt/hda2      auto    defaults                0      0
and create the mount point (directory) for it, thus (as root): mkdir /mnt/hda2. Now all you need to do is issue the following
Code:

mount /mnt/hda2
lilo

Mounting a drive makes it available for read and optionally, write access. Thus after running the mount command, you should be able to just browse hda2 as normal, entering it from /mnt/hda2.

Cheers,

mj

besttech01 03-30-2005 07:30 PM

Hey thanks, I managed to mount the partition onto the file. LILO in terminal errored-out with FC3, becasue vmlinuz doesn't exist on /mnt/hda2/boot, which is true (after browsing /boot, it isn't there). Unless you know the boot file, I'll have to try all of them. The closest one to vmlinuz is vmlinuz-2.6.9-1.677, but its s SELinux script :) It looked quite funny running SELinux scripts during setup up with no kernel loaded. If i get to find out what boot file it is, I will post it up ASAP.
mjrich, I really appriciate all your help. Thank you for helping out a Linux newbie :).

mjrich 03-30-2005 08:57 PM

Great to hear you have the FC3 partition mounted :)

The kernel (boot) image you're looking for, should be in either the FC3 root directory (/mnt/hda2/ if you did mount it as above) or otherwise in /mnt/hda2/boot/. The name should be something along the lines of bzImage* or vmlinuz*, so I'm surprised that it isn't vmlinuz-2.6.9-1.677. vmlinuz (whether at the root or boot directory) is normally just a symbolic link (shortcut) to the real kernel image.

The image itself should be about 800 kb - 1 Mb. You can use ls -lh from within a directory to list the file sizes and whether it's a link to another file.

If you really can't find the kernel image for FC3, then simply browse to the original lilo config file within FC3 (most likely at /mnt/hda2/etc/lilo.conf) and see what's listed there.

Finally, don't forget to run lilo after any changes to the config file... ;)

Cheers,

mj

besttech01 03-30-2005 11:04 PM

Now why didnt I think of that...I will leave that to last resort to give myself a challenge ;), once again thank you A++ help!

besttech01 03-31-2005 02:19 PM

image=/boot/vmlinuz-2.6.9-1.667
label=linux
initrd=/boot/initrd-2.6.9-1.667.img
read-only
append="rhgb quiet root=LABEL=/1"

That is the LILO code I found in the LILO Config of Fedora Core 3! YAY! couldn"t have done it without mjrich.

mjrich 03-31-2005 02:53 PM

Great !

Let us know how you get on after adding the FC3 kernel data to Slackware's lilo.conf :)

Cheers,

mj

besttech01 03-31-2005 04:19 PM

WOW! It worked. Fedora Core 3 boots up like it was before with no problems what so ever. My config:

Code:

image=/mnt/hda2/boot/vmlinuz-2.6.9-1.667
label=Fedora_Core_3
initrd=/mnt/hda2/boot/initrd-2.6.9-1.667.img
read-only
append="rhgb quiet root=LABEL=/1"

-For people who would want to use this config to boot with
Fedora, remember to edit the directories to where your files are mounted.

mjrich 03-31-2005 07:08 PM

Excellent news :)

Take care,

mj

besttech01 03-31-2005 07:14 PM

Well, it was done thanks to you. :) Greatly appreciated. 2 thumbs up.


All times are GMT -5. The time now is 10:33 AM.