LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-01-2004, 03:36 PM   #1
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Rep: Reputation: 30
Lilo dual boot


Hi,
Last night I've installed a new distro besides Slackware 9.1 and Windows XP.
I've edited the lilo.conf so it'll look like this :
Quote:
lba32
boot = /dev/hda
prompt
timeout = 300
vga = 773
image = /boot/vmlinuz
root = /dev/hdb1
label = Distro1
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
image = /boot/vmlinuz
root = /dev/hda6
label = Distro2
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda3
label = Windows-XP
table = /dev/hda
# Windows bootable partition config ends
Problem is that when booting onto Slackware 9.1, it uses the kernel of the other distro (because two images have the same name vmlinuz).

Why doesn't Distro1 use the kernel under /boot/vmlinuz on hdb1 and Distro2 the kernel under /boot/vmlinuz but on hda6?
Shouldn't the root entry specify what I want ?

Thank you.
 
Old 08-01-2004, 04:11 PM   #2
nhs
Member
 
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
Lilo reads /boot/vmlinuz when you run /sbin/lilo because it needs to load this into RAM before passing it any command line options. What you need to do is to mount the root partition of your other install (/dev/hda6 I presume) somewhere and edit lilo.conf so that image=/other_distro_mnt_point/boot/vmlinuz for the other distro. The root= option just tells the kernel which partition it should mount first. This must then contain the prerequisites for completing the boot (/etc/fstab, /bin/* and whatever else is required). It can't affect which kernel image is loaded.
 
Old 08-02-2004, 05:03 AM   #3
hfawzy
Member
 
Registered: Aug 2002
Location: Egypt
Distribution: Debian Sarge, Slackware 10.0
Posts: 163

Original Poster
Rep: Reputation: 30
thanks, that helped..
 
Old 08-02-2004, 01:14 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
also u can copy ur vmlinuz,System.map,modules dir. of the other linux to /boot of current linux and then change the names and edit lilo.conf
this will also work
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot with Lilo Permaximus Linux - Newbie 3 04-27-2005 12:34 AM
lilo dual boot noir911 Slackware 7 10-20-2004 01:46 AM
Need dual boot help...LILO..Winxp wont boot Scrag Linux - Hardware 2 09-01-2004 12:26 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
should i use LILO? - no dual boot Abdulla Linux - Newbie 6 07-13-2003 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:42 AM.

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