LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 03-28-2005, 03:22 PM   #1
besttech01
LQ Newbie
 
Registered: Mar 2005
Location: Florida, USA
Distribution: Slackware 10.1, Fedora C3
Posts: 17

Rep: Reputation: 0
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?
 
Old 03-28-2005, 10:15 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 03-29-2005, 05:02 PM   #3
besttech01
LQ Newbie
 
Registered: Mar 2005
Location: Florida, USA
Distribution: Slackware 10.1, Fedora C3
Posts: 17

Original Poster
Rep: Reputation: 0
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 ?
 
Old 03-29-2005, 11:49 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 03-30-2005, 02:31 PM   #5
besttech01
LQ Newbie
 
Registered: Mar 2005
Location: Florida, USA
Distribution: Slackware 10.1, Fedora C3
Posts: 17

Original Poster
Rep: Reputation: 0
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?
 
Old 03-30-2005, 03:25 PM   #6
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 03-30-2005, 07:30 PM   #7
besttech01
LQ Newbie
 
Registered: Mar 2005
Location: Florida, USA
Distribution: Slackware 10.1, Fedora C3
Posts: 17

Original Poster
Rep: Reputation: 0
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 .

Last edited by besttech01; 03-30-2005 at 07:34 PM.
 
Old 03-30-2005, 08:57 PM   #8
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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
 
Old 03-30-2005, 11:04 PM   #9
besttech01
LQ Newbie
 
Registered: Mar 2005
Location: Florida, USA
Distribution: Slackware 10.1, Fedora C3
Posts: 17

Original Poster
Rep: Reputation: 0
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!
 
Old 03-31-2005, 02:19 PM   #10
besttech01
LQ Newbie
 
Registered: Mar 2005
Location: Florida, USA
Distribution: Slackware 10.1, Fedora C3
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 03-31-2005, 02:53 PM   #11
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Great !

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

Cheers,

mj
 
Old 03-31-2005, 04:19 PM   #12
besttech01
LQ Newbie
 
Registered: Mar 2005
Location: Florida, USA
Distribution: Slackware 10.1, Fedora C3
Posts: 17

Original Poster
Rep: Reputation: 0
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.
 
Old 03-31-2005, 07:08 PM   #13
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
Excellent news

Take care,

mj
 
Old 03-31-2005, 07:14 PM   #14
besttech01
LQ Newbie
 
Registered: Mar 2005
Location: Florida, USA
Distribution: Slackware 10.1, Fedora C3
Posts: 17

Original Poster
Rep: Reputation: 0
Well, it was done thanks to you. Greatly appreciated. 2 thumbs up.
 
  


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
How to config lilo to boot from two Hard Drives. mlsbraves Linux - General 4 09-13-2004 08:16 PM
What happens if the first image in my lilo.config doesn't boot? netstv Linux - General 2 06-02-2004 02:10 AM
How do i find out the fedora entry for the lilo config xiato Linux - Newbie 3 05-05-2004 02:50 PM
Linux will not boot (LILO doesn't start) SpecialK5106 Linux - Newbie 15 10-05-2003 09:42 PM
Lilo config can't boot slack Mojojo Slackware 8 07-02-2003 02:38 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration