LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   dual booting two versions? (https://www.linuxquestions.org/questions/linux-general-1/dual-booting-two-versions-23944/)

fool_inteligent 06-20-2002 10:25 PM

dual booting two versions?
 
friends i am new here and posting my first question here.

i want to know that is there any possibility to dual boot my machine with any two versions of redhat linux like win98 and win2k dual booting?

i have tried something and i want to tell you.

1. i installed win98 on /dev/hda1

2. i installed redhat linux 7.0 on /dev/hda5,6,7 (lilo on mbr) and lilo configured it self with win98.
that time i had two option linux and dos(dos = windows) .

3.then i installed redhat linux to dev/hda8,9,10 (lilo on mbr)
but it configured itself with dos and no previous versionwas there.

any possibilities?

trickykid 06-20-2002 10:58 PM

You need to edit your /etc/lilo.conf file and add your other linux image to it. usually by default it won't configure 2 different linux images.
and always run /sbin/lilo after making changes so it writes it to the MBR...

fool_inteligent 06-21-2002 01:52 PM

tricky kid thanks
but i should aad like this
1. other =


or

image=dev/hdax//boot/vmlinuz
label=
initrd=/dev/hdax/boot/initrd
reed-only
root=/dev/hdax


please tell me friend

linuxcool 06-22-2002 12:01 AM

Re: dual booting two versions?
 
Use the other= way to boot the first installation of linux.

First, you're going to have to fix a problem. When you installed the second version of red hat, it wrote into the mbr where the first installation wrote its lilo. You need to fix that by writing lilo into the root ' / ' partition of the first linux installation.

Get out your red hat install cdrom disk and boot up with it. When you get the prompt enter:
linux root=/dev/hda?. Replace the ? with the correct root ' / ' partition number. It will be 5, 6, or 7. If you don't remember which one it is, try them one at a time until it boots. When it boots up, remember what number worked.

Next, edit your /etc/lilo.conf file. Change the boot=/dev/hda to boot=/dev/hda?. Replace the ? with the number that you used to boot up linux. Then make sure your /etc/lilo.conf file has all the correct information in it and then run /sbin/lilo.

Now reboot without the cdrom disk and select linux. Edit your /etc/lilo.conf by adding these lines to it:

other=/dev/hda?
label= First linux install


Replace the ? with the number that booted up the first linux installation and run /sbin/lilo. Then reboot and see if you can select the first linux installation and that it boots up.

fool_inteligent 06-22-2002 02:05 PM

thanks friends very very very ................................ much.
but i have solved my problem in this way

you have seen the procedure i have written in my thread of installation.

now what i done after this which solved my problem.

i edited lilo.conf ( just added these lines in the end)
for configuration of redhat 7.0 (dos and 7.3 were already there)


image=/dev/hda6/vmlinnuz-2.2.16-22
label=redhat7.0
read-only
root=/dev/hda7


but it did not worked. because /dev/hda6 was not mounted.
so it gave the error (when i typed "lilo") that "no such diractory". then i mounted that ext2 partition in "/mnt"
through
mount -t ext2 /dev/hda6 /mnt/

and then i added these lines in lilo.conf

image=/mnt/vmulinuz-2.2.16-22
label=redhat7.0
read-only
root=/dev/hda7

and it worked for me and now i am running three redhat7.0 redhat 7.3 and dos(win98).

so thats my little story for doing this appreciate my work because i am a newbie in linux.

and one thing we cant dual boot when we install redhat 7.3 first and 7.0 later because 7.0 kernal does not support ext3. so we cannot mount it . and the MBR will have that time the lilo of 7.0 on it not 7.3.

thanks again.

linuxcool 06-23-2002 02:17 AM

Glad to hear you got it working. :)


All times are GMT -5. The time now is 04:18 PM.