LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   help me conf lilo for dual linux boot (http://www.linuxquestions.org/questions/linux-newbie-8/help-me-conf-lilo-for-dual-linux-boot-94816/)

bosewicht 09-20-2003 08:47 AM

help me conf lilo for dual linux boot
 
i have mandrake 9.0 on hda and just installed gentoo on hdd. what is the right way to write lilo.conf would it be:

other=/dev/hda
label=linux

????

any help would be greatly apprec.....

bosewicht 09-20-2003 08:54 AM

would i create 2 of the previous lines in the file?

other=/dev/hdd
label=gentoo

other=/dev/hda
label=Mandrake

could this work

arunshivanandan 09-20-2003 09:03 AM

there must be default
here is a sample /etc/lilo.conf.

#/etc/lilo.conf
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
default=linux

# Linux Partition
image=/boot/vmlinuz-2.2.12-20
label=linux
initrd=/boot/initrd-2.2.12-20.img
root=/dev/hda1
read-only

# Windows Partition
other=/dev/hda2
label=win
table=/dev/hda

Skyline 09-20-2003 09:07 AM

For Linux distributions you need to use

image=....................

directives and stanzas

For Windows you would use

other=...............


Can you post the output of

cat /etc/lilo.conf ; fdisk L

bosewicht 09-20-2003 09:10 AM

currently i have
image=/boot/kernel-2.4.20-gentoo-r5
root=dev/hdd3
initrd=/boot/initrd-2.4.20-gentoo-r5
append="root=/dev/hdd3 init=/linuxrc"

other=/dev/hda
label=linux

i have a single partition on hda and three partitions on hdd
so could i just plug in my versions in

#/etc/lilo.conf
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
default=linux

# Linux Partition
image=/boot/kernel-2.4.20-gentoo-r5
label=linux
initrd=/boot/initrd-2.4.20-gentoo-r5
root=/dev/hda1
read-only


would this work???

Skyline 09-20-2003 09:14 AM

You installed Gentoo last - did you install LILO from Gentoo - are you using the lilo.conf file from Gentoo?

bosewicht 09-20-2003 09:16 AM

cat /etc/lilo.conf ; fdisk L

this gets me:

boot=/dev/hdd
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
lba32
default=linux
image=/boot/kernel-2.4.20-gentoo-r5
root=dev/hdd3
initrd=/boot/initrd-2.4.20-gentoo-r5
append="root=/dev/hdd3 init=/linuxrc"

other=/dev/hda
label=linux
Unable to open L

bosewicht 09-20-2003 09:17 AM

yes i installed lilo from gentoo last and am trying to config lilo in the gentoo install

arunshivanandan 09-20-2003 09:19 AM

i think it is 'fdisk -l'

bosewicht 09-20-2003 09:21 AM

with <i>cat /etc/lilo.conf ; fdisk l</i> i recieved the same unable to open l

Skyline 09-20-2003 09:23 AM

I used capital L just to show its an L rather than an i - never mind - if your configuring LILO from Gentoo do this

su
root password

mkdir /mnt/mandrake

mount -t ext3 -o rw /dev/hda1 /mnt/mandrake

open lilo.conf with an editor

and put this stanza in

image=/mnt/mandrake/boot/vmlinuz
label="Mandrake9"
root=/dev/hda1
initrd=/boot/initrd.img
read-only

save the file

then type

/sbin/lilo

then reboot and see

arunshivanandan 09-20-2003 09:23 AM

it is 'fdisk -l'.dont forget the '-'

Skyline 09-20-2003 09:33 AM

Its

initrd=/mnt/mandrake/boot/initrd.img

not

initrd=/boot/initrd.img

youll have to change it, save it then run


/sbin/lilo

again

bosewicht 09-20-2003 09:44 AM

i'm at the end of the install after i type all of this in, should i

etc-update
exit
cd /
unmount /mnt/gentoo/boot
unmount /mnt/gentoo/proc
unmount /mnt/gentoo
reboot


and it should be ok?

Skyline 09-20-2003 09:48 AM

Is Gentoo already installed fully?


All times are GMT -5. The time now is 11:58 PM.