LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-30-2004, 10:42 AM   #1
vasilakis
LQ Newbie
 
Registered: Jun 2004
Location: Greece
Posts: 11

Rep: Reputation: 0
Two Linux distr in one PC


Is it possible at all ?

I had winXP and Fedora Linux in my PC
then I decided to put also Debian 3.0
created partition for root and swap
but now I am only able to boot to winXP and Debian, but not to Fedora
 
Old 06-30-2004, 11:24 AM   #2
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
vasilakis; ah jealousy between os,s . read some where some linux os,s not
compatible. kernels differ slightly.
 
Old 06-30-2004, 11:32 AM   #3
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
here are two possibilities:

1.)
if you are using lilo you can but one bootloader in the master boot record (mbr) of the first drive (hda) and a "second stage" bootloader (ex. for the second linuxsystem) in the second drive's mbr (hdb) or even into a partition on the first drive (ex. hda3).

examlpe:
hda is partitioned to hda1 (linux01) , hda2 (ms) and
hdb is partitioned in hdb1 (linux02)
then configure you first bootloader: (/etc/lilo.conf at linux01)

boot=/dev/hda
root=/dev/hda1
image=/vmlinuz <-- linux01 kernel
label=linux01
other=/dev/hda2 <-- ms
label=microshit
other=/dev/hdb <-- this is the second bootloader
label=linux02

and then boot into linux02 (root=/dev/hdb1) and change lilo.conf:

boot=/dev/hdb
root=/dev/hdb1
(disable prompting for input so lilo boots straight trough)

now both linux distributions are independent. this is not the case in the next example:

2.)
just use one boot-directory(partition) where you but kernels for both linux in (but you'll
likely have to manage this directory by hand).
be sure both lilo.conf tell the same -or- don't even mount the /[real]boot at startup then there will be no troubles.

use append="root=/dev/[1st linux rootpartition]" for one entry in your lilo.conf's image= and append="root=/dev/[2nd linux rootpartition]" for the other image.

if you're using another bootmanager this will afaik work quite similar, but i can't tell how :-)

sl mritch.
 
Old 06-30-2004, 01:32 PM   #4
vasilakis
LQ Newbie
 
Registered: Jun 2004
Location: Greece
Posts: 11

Original Poster
Rep: Reputation: 0
Mritch, I tryed the first of your examples

My hard disk is partitioned as follows: hda1, hda4 - ms
hda2- Fedora root
hda5 - Fedora swap
hda6 - Debian 3 root
hda7- Debian swap

I added in lilo.conf ( of Debian) as you told me this command :
other=dev/hda6
label=" Fedora Linux"

When I run lilo command it tells Fatal error that there is no bootable section in hda6
but before installing Debian I could boot from this section

My lilo menu still have only 2 options to boot : microshit and Debian
 
Old 06-30-2004, 02:36 PM   #5
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
i'm little confused about your partition overview. this does not look right.

you wrote "other=dev/hda6" - should be "other=/dev/hda2" (i assume hda2=fedora) two typo's?

i forgot to say that lilo won't be able to install itself to an extended partition. maybe hda2 (fedora root) is no primary partition?
the error could also mean that you'll have to install lilo first in the beginning of hda2, then there will be a bootable partition there.
another issue could be that the partition is not marked as "bootable". take a look with "parted /dev/hda" or another partitioning-program like cfdisk and watch out for the bootable flag.

afaik this will not work with lilo if it's a extended partition.

hint: you may eliminate your second swap partition since you can use one for both
systems. be sure to format the swap with "mkswap -v1 /dev/hdax" to get the new swap-layout (should anyway be version 1).

sl mritch.
 
Old 06-30-2004, 04:10 PM   #6
sterrenkijker
Member
 
Registered: Mar 2004
Location: the Netherlands
Distribution: Debian Sarge
Posts: 302

Rep: Reputation: 31
Huh? Lilo can not be installed on an extended partition? Strange, cause I have... I've both slackware and Debian on my computer, have lilo installed in slackware's partition (hda11). I chainload slackware with grub, works fine...

About primary and logical partitions: hda1 - hda4 is primary, hda5 and higher is logical.

I know it's quite a hassle to boot several linux's. I've done it with Red Hat 9 / Debian too...

Succes,

Corien
 
Old 06-30-2004, 05:11 PM   #7
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
yeah- you're right. i was tangling 'bout logical and extended partitions. extended should work fine since there is a partition table to write to.

sl mritch.
 
Old 07-01-2004, 10:26 AM   #8
vasilakis
LQ Newbie
 
Registered: Jun 2004
Location: Greece
Posts: 11

Original Poster
Rep: Reputation: 0
You are right, it was my mistake.

my lilo.conf looks like this :

boot=/dev/hda
root=/dev/hda6

install=/boot/boot-menu.b
map=/boot/map
delay=20

prompt
timeout=150

default=Linux

image=/vmlinuz
label=Linux
read-only
image=/vmlinuz.old
label=LinuxOLD
read-only
optional


other=/dev/hda1
label="Windows XP"

other=/dev/hda2
label="Fedora "



Primary Partitions: hda1, hda2, hda4
Logical Partitions: hda5, hda6,hda7

Bootable: hda1,hda2,hda6

Now I think may be the problem is because before installing Debian I used GRUB to boot Fedora and Windows ?
 
Old 07-01-2004, 12:59 PM   #9
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
the above lilo.conf is the debian's. and you can boot into debian and ms. right?

it shouldn't matter if you're using grub on the fedora (hda2 bootblock) and lilo on the debain (hda bootblock).

now you should boot into fedora (if you can't do that via the lilo just use a bootfloppy or boot with the fedora-cdrom) and configure grub to write itself into the bootblock of hda2. i don't know about the grub-configs; under lilo it would look like this:

boot=/dev/hda2
root=/dev/hda2
image=vmlinuz <- the fedora kernel

and run the grub installer.

finally boot into debian and add
other=/dev/hda2
label=fedora
to the lilo.conf.
run lilo and it shouldn't complain about a nonbootable partition there.

if this won't work consider using lilo under fedora too - since i know working systems with this configuration.

sl mritch.
 
Old 07-01-2004, 02:04 PM   #10
bob49
LQ Newbie
 
Registered: Dec 2002
Location: Swindon UK
Distribution: FC2, Slackware 8.1 and 10
Posts: 29

Rep: Reputation: 15
Hi,

I dual-boot with Debian Sarge on /dev/hda1 (mounted as / for Debian) and Fedora 2 on /dev/hda2 ( mounted as / for FC2) I use a common swap partition /dev hda3 and individual /home directories on /dev/hda5 and dev/hda6. Grub is used to boot, installed on the MBR and controlled only by Fedora - i.e. it is the /etc/grub.conf on /dev/hda2 that contains all of the Debian and Fedora entries

If there is a kernel update with Fedora then the grub.conf file is automaticaly updated; if it's Debian, then I have to edit grub.conf myself.

It all works well - there are no incompatibilities or problems.

Why do I have both distros on the one PC? Why not - basically to compare them for my own interest.

Bob
 
Old 07-01-2004, 02:08 PM   #11
penguin4
Senior Member
 
Registered: May 2004
Location: california
Distribution: mdklinux8.1
Posts: 1,209

Rep: Reputation: 45
bob-49; right on
 
  


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
Small Server oriented Distr andrewholt Linux - Distributions 5 10-06-2005 04:06 PM
knowing which bootloader my linux distr uses nag9_s Linux - Newbie 5 02-25-2005 02:06 AM
Linspire Is The Best Linux Distr Geneius Linspire/Freespire 18 05-10-2004 01:13 AM
Lycoris (Redmond) distr.?? Install quest. Frost Linux - Distributions 3 05-03-2002 06:54 PM
which distr do I use for a 300MB Laptop tuyojrc Linux - Distributions 6 04-24-2002 05:29 AM

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

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