LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-20-2006, 06:11 AM   #1
vijayan
LQ Newbie
 
Registered: Nov 2006
Location: India
Distribution: Slackwarelinux
Posts: 1

Rep: Reputation: 0
How can I dual boot another linux with LILO?


I have Slackware 10.2 and am thinking of moving to 11.0. My boot loader is LILO. I also have Wndows XP and LILO has correctly detected it. But after I installed PClinuxOS (with boot loader in its root partition), I can't configure Slackware's LILO to detect it. What to do?
 
Old 11-20-2006, 07:18 AM   #2
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
You need to edit the file /etc/lilo.conf and then run lilo (as root).

So assuming that you are in your slackware installation

You need to mount your PCLinuxOS partition for example to /mnt/pclinuxos

The lines that you add to lilo.conf will depend on how your pclinuxos set up but will be something like:

image=/mnt/pclinuxos/boot/vmlinuz
label=PCLinuxOs
root=/dev/sdb4
read-only

check what you have in /mnt/pclinuxos/boot/ and whether you need an initgz file

If you have an /etc/lilo.conf or a /boot/grub/menu.lst in the pclinuxos partition you ought to be able to work out how to do it.

I much prefer grub as a boot loadder because you can make these changes simly by editing the file menu.lst without having to re-install grub

Last edited by arubin; 11-20-2006 at 07:33 AM.
 
Old 11-20-2006, 07:30 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Quote:
Originally Posted by vijayan
I have Slackware 10.2 and am thinking of moving to 11.0. My boot loader is LILO. I also have Wndows XP and LILO has correctly detected it. But after I installed PClinuxOS (with boot loader in its root partition), I can't configure Slackware's LILO to detect it. What to do?
Hi,

You can include a stanza in the current Slackware lilo.conf file for the 'PClinuxOS' then run 'lilo' to update the MBR.
Such as;

Code:
# Windows bootable partition config begins
other = /dev/hda1
  label = Windows98
  table = /dev/hda
# Windows bootable partition config ends
# << PClinuxOS Linux bootable partition config begins >>
image = /boot/vmlinuz-PClinuxOS           #kernel for PClinuxOS 
  root = /dev/hda4                        #partition
  label = PClinuxOS 
  read-only
# <<PClinuxOS Linux bootable partition config ends>>
#
## Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.13
  root = /dev/hda3
  label = Linux2613
  read-only
# Linux bootable partition config ends
#

# Linux bootable partition config begins
image = /boot/vmlinuz-generic-2.6.13
  root = /dev/hda3
  label = Linux2613
  read-only
# Linux bootable partition config ends
#
You could modify your lilo.conf as per the above example. Notice that I did not include the complete lilo.conf just the stanzas.

After you modify the lilo.conf then;
Code:
lilo -v -t -b /dev/hda               #test the lilo.conf
lilo -v -b /dev/hda                  #write the lilo to mbr
 
Old 11-20-2006, 07:38 AM   #4
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
Quote:
image = /boot/vmlinuz-PClinuxOS #kernel for PClinuxOS
For lilo doesn't this have to be a path to somewhere that lilo can see when you run it, ie via a pclinuxos mountpoint?
 
  


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
Dual Boot: Linux Boot Problems with LILO on Mandrake 10.0 verity Linux - General 7 10-13-2006 04:48 AM
Installing dual Boot 98/Linux - WONT 'LILO' Dual Boot !? L1nux3d Linux - Laptop and Netbook 15 02-11-2006 05:36 AM
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
help me conf lilo for dual linux boot bosewicht Linux - Newbie 17 09-20-2003 10:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:24 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