Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] lilo: Getting Fedora into my lilo menu.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
mshmsh
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 107
Location: Foster City, CA

PostPosted: Sun Feb 10, 2008 11:18 pm    Post subject: [Solved] lilo: Getting Fedora into my lilo menu. Reply with quote

Hi, I have 2 hard disks
/dev/hda and
dev/hdb

Code:


fdisk -l

Disk /dev/hda: 122.9 GB, 122942324736 bytes
16 heads, 63 sectors/track, 238216 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Disk identifier: 0x009e22d6

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1           49608       80610    15625512   83  Linux
/dev/hda2   *       33734       49607     8000496   83  Linux
/dev/hda4           80611      238216    79433393    5  Extended
/dev/hda5           80611      111613    15625480+  83  Linux
/dev/hda6          111614      115582     2000344+  82  Linux swap / Solaris
/dev/hda7          120000      168441    24414768   83  Linux
/dev/hda8          168442      216883    24414736+  83  Linux
/dev/hda9          115583      119999     2226105   83  Linux
/dev/hda10         216884      238216    10751800+  83  Linux

Partition table entries are not in disk order

Disk /dev/hdb: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x394cd3ec

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1          25      200781   83  Linux
/dev/hdb2              26        4111    32820795   8e  Linux LVM


hda is my gentoo installation and my primary master that boots up by default.
I use lilo to control the kernel I like to use

I just installed Fedora on my second hard disk hdb and like to get this to show up on my lilo menu.
I am a little confused as to how to get this into my lilo.conf. On the fedora hard disk, my grub.conf has the following entry.

Code:

default=0
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.1-42.fc8)
       root (hd1,0)
              kernel /vmlinuz-2.6.23.1-42.fc8 ro
              root=/dev/VolGroup00/LogVol00 rhgb quiet
                     initrd /initrd-2.6.23.1-42.fc8.img


How do I convert this to an equivalent entry on gentoo's lilo.conf

Currently my lilo.conf looks like this, but Fedora hangs during boot up:

Code:

boot=/dev/hda
prompt
timeout=50
default=2.6.22

image=/boot/kernel-2.6.22-gentoo-r9
label=2.6.22
read-only
root=/dev/hda2

image=/boot/kernel-2.6.19-gentoo-r5
label=2.6.19
read-only
root=/dev/hda2

image=/redhat/vmlinuz-2.6.23.1-42.fc8
initrd=/redhat/initrd-2.6.23.1-42.fc8.img
label=Fedora
read-only
root=/dev/hdb2

image=/boot/memtest86/memtest.bin
label=Memtest86



(I have /dev/hdb1 mounted as /redhat when running lilo after setting this conf)

Do I need to do anything special to get lilo to recognize the LVM file system on /dev/hdb. Is my translation of grub.conf to the redhat entry looking okay?

Many thanks,
Shyam


Last edited by mshmsh on Mon Feb 11, 2008 3:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Mon Feb 11, 2008 12:20 am    Post subject: Reply with quote

I'm a longtime lilo user, but I'd say in your situation "emerge -C lilo && emerge grub" would be the sane choice.

Cheers,

Jon.
Back to top
View user's profile Send private message
mshmsh
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 107
Location: Foster City, CA

PostPosted: Mon Feb 11, 2008 1:28 am    Post subject: Reply with quote

jesnow wrote:
I'm a longtime lilo user, but I'd say in your situation "emerge -C lilo && emerge grub" would be the sane choice.

Cheers,

Jon.


Just what I did not want to hear, being a long time lilo user myself ...
Thanks for your response :D

Shyam
Back to top
View user's profile Send private message
jesnow
l33t
l33t


Joined: 26 Apr 2006
Posts: 856

PostPosted: Mon Feb 11, 2008 3:25 am    Post subject: Reply with quote

OK here goes,

I don't think that the grub on the seocnd HD is necessary. I'm pretty sure that you can add
a boot=/dev/hdb line to a lilo enty, just remember that it will apply to all subsequent entries. The image= line should then point to the boot partition of the fedora install, just like normal. If you run lilo from gentoo, you'll need to have the fedora boot partition mounted when you run it. I've done this (long ago) and I'm pretty sure that's what worked. Windows is often not happy being run from /dev/hdb, you have to do funny tricks to get it to work. Not linux.

Good luck!

Jon

mshmsh wrote:
jesnow wrote:
I'm a longtime lilo user, but I'd say in your situation "emerge -C lilo && emerge grub" would be the sane choice.

Cheers,

Jon.


Just what I did not want to hear, being a long time lilo user myself ...
Thanks for your response :D

Shyam
Back to top
View user's profile Send private message
Simba7
l33t
l33t


Joined: 22 Jan 2007
Posts: 706
Location: Billings, MT, USA

PostPosted: Mon Feb 11, 2008 3:35 am    Post subject: Reply with quote

8O Someone still uses lilo?
Back to top
View user's profile Send private message
mshmsh
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2004
Posts: 107
Location: Foster City, CA

PostPosted: Mon Feb 11, 2008 3:36 pm    Post subject: Reply with quote

jesnow wrote:
OK here goes,

I don't think that the grub on the seocnd HD is necessary. I'm pretty sure that you can add
a boot=/dev/hdb line to a lilo enty, just remember that it will apply to all subsequent entries. The image= line should then point to the boot partition of the fedora install, just like normal.

Jon.


Adding a second boot=<> line was giving me errors when running lilo.

Code:


boot=/dev/hda
prompt
timeout=50
default=2.6.22

image=/boot/kernel-2.6.22-gentoo-r9
label=2.6.22
read-only
root=/dev/hda2

image=/boot/kernel-2.6.19-gentoo-r5
label=2.6.19
read-only
root=/dev/hda2

image=/boot/memtest86/memtest.bin
label=Memtest86

image=/redhat/vmlinuz-2.6.23
initrd=/redhat/initrd-2.6.23.1-42.fc8.img
boot=/dev/hdb
label=Fedora
read-only
root=/dev/VolGroup00/LogVol00

Syntax error at or above line 21 in file '/etc/lilo.conf'


I took the easy way out and got myself going by moving to grub on my gentoo box

Thanks,
Shyam
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum