LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-20-2003, 08:47 AM   #1
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Rep: Reputation: 47
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.....
 
Old 09-20-2003, 08:54 AM   #2
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Original Poster
Rep: Reputation: 47
would i create 2 of the previous lines in the file?

other=/dev/hdd
label=gentoo

other=/dev/hda
label=Mandrake

could this work
 
Old 09-20-2003, 09:03 AM   #3
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
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
 
Old 09-20-2003, 09:07 AM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
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
 
Old 09-20-2003, 09:10 AM   #5
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Original Poster
Rep: Reputation: 47
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???
 
Old 09-20-2003, 09:14 AM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
You installed Gentoo last - did you install LILO from Gentoo - are you using the lilo.conf file from Gentoo?
 
Old 09-20-2003, 09:16 AM   #7
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Original Poster
Rep: Reputation: 47
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
 
Old 09-20-2003, 09:17 AM   #8
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Original Poster
Rep: Reputation: 47
yes i installed lilo from gentoo last and am trying to config lilo in the gentoo install
 
Old 09-20-2003, 09:19 AM   #9
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
i think it is 'fdisk -l'
 
Old 09-20-2003, 09:21 AM   #10
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Original Poster
Rep: Reputation: 47
with <i>cat /etc/lilo.conf ; fdisk l</i> i recieved the same unable to open l
 
Old 09-20-2003, 09:23 AM   #11
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
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
 
Old 09-20-2003, 09:23 AM   #12
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
it is 'fdisk -l'.dont forget the '-'
 
Old 09-20-2003, 09:33 AM   #13
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Its

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

not

initrd=/boot/initrd.img

youll have to change it, save it then run


/sbin/lilo

again
 
Old 09-20-2003, 09:44 AM   #14
bosewicht
Senior Member
 
Registered: Aug 2003
Location: Houston, TX
Distribution: Arch
Posts: 1,381

Original Poster
Rep: Reputation: 47
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?
 
Old 09-20-2003, 09:48 AM   #15
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Is Gentoo already installed fully?
 
  


Reply



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
lilo.conf ---> how do i dual boot between kernels? nenyo Linux - Software 5 08-18-2005 09:46 PM
lilo.conf and linux as default boot whitshade Slackware 7 04-26-2005 08:47 PM
dual boot two linux distros on one hd with lilo darkleaf Linux - Software 11 02-24-2005 10:52 AM
dual boot - XP and Linux - Need to reinstall XP without effecting linux -LILO boot godofmind Linux - General 1 05-05-2004 08:13 AM
lilo dual boot two linux distros / hda and hdb rioguia Linux - Newbie 2 01-23-2003 12:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration