N S SRIKANTH wrote:

Hi Listers,

I run a dual boot (Win 98/ PCQ Linux) PC at home. PCQ is on a 10 GB partition.
Now I got hold of Mandrake 9.0 and Slackware CD's. I would like to install them one by one on a fresh 5 GB partition which I will carve out of Windows and try it out keeping the PCQ installation undisturbed as my basic Linux distro.

I dual boot thru LILO which is on MBR. Now it presents linux and Dos (win) options. How to get the third option, say of booting Mandrake after installing it?

OK Fellow,

Here is what you would do.

Make at least three partitions
One(1) swap and
two(2) linux native
anything your *all distro kernels* can support.
Meaning if you have a Mandrake version of kernel
it should support the type of file system you are going to use for other distro too.
It is not mondatory but you can access the other partition without any difficulty of building your own fs modules.

Let me take this layout /dev/hda with
/dev/hda1 - swap
/dev/hda2 - linux native with any filesystem that can support the root parition(ext2,ext3,reiserfs,xfs)
/dev/hda3 - linux native with any filesystem that can support the root parition(ext2,ext3,reiserfs,xfs)

1. Install the first distro
Install your bootloader on to where ever you want
Here I am assuming You are installing the first distro onto /dev/hda2 and installing your bootloader to /dev/hda2 (*not* onto MBR)
if you install on to the MBR then reverse this steps(not exactly but read this posting carefully and do whatever make sense).

2. Install the second
Install your bootloader on to MBR
Here I am assuming You are installing the first distro onto /dev/hda3 and installing your bootloader to /dev/hda (*onto* MBR)

Now from your second distro add an another boot entry for the first distro as if it is a non linux system
(like DOS/BSD/WindowZ) and specify the /dev/hda2 as the non linux system and label it accordingly.

3. Reboot and you should be able to get two menu choices, chose the distro you want to work with.



Example:

For lilo.conf
------------

prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32

image=/boot/vmlinuz-2.4.18-14
label=
initrd=/boot/initrd-2.4.18-14.img
read-only
append="hdc=ide-scsi root=LABEL=/"
vga=792

other=/dev/hda2
label=Mandrake
table=/dev/hda

For grub: /boot/grub/menu.lst
------------------------------

default=0
timeout=10
splashimage=(hd0,2)/boot/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-17.8.0)
root (hd0,2)
kernel /boot/vmlinuz-2.4.18-17.8.0 ro root=LABEL=/ hdc=ide-scsi vga=792 ramdisk=65536
initrd /boot/initrd-2.4.18-17.8.0.img

title Mandrake
unhide (hd0,1)
hide (hd0,0)
hide (hd0,2)
rootnoverify (hd0,1)
chainloader +1
makeactive

The following is the output of my /etc/lilo.conf :
----------------------------------------------------
prompt
timeoutP
defaultbootmapinstallmessagelba32

image label initrd read-only
root append
other optional
label-------------------------------------------------------------------
Pl help




-------------------------------------------------------
This sf.net email is sponsored by: Influence the future of Java(TM) technology. Join the Java Community Process(SM) (JCP(SM)) program now. http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help


Reply via email to