LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   dual instances of linux (https://www.linuxquestions.org/questions/linux-software-2/dual-instances-of-linux-470423/)

brian15 08-03-2006 09:20 AM

dual instances of linux
 
is it possible to install two different versions of linux at the same time? i tried not realizing that they are both dependant on the "/" folder. i want to boot windows xp, ubuntu, and mandriva, i have the first 2 installed already

Nylex 08-03-2006 09:22 AM

Yes of course you can have two (or more) distributions installed. They should each have their own partition(s).

konsolebox 08-03-2006 09:25 AM

you can have grub as a loader for that. search google for 'grub howto' for more info.

weibullguy 08-03-2006 09:27 AM

Yes. Probably the best way would be to put each OS on its own hard drive. However, most people (including myself) put each OS on its own partition. If you don't have a "spare" partition laying around on your hard drive, you need to repartition or install a second drive.

I have no experience with installing Mandriva, but I'll assume there is a step in the installation where the hard drive is partitioned. Choose to do this manually and select your new partition for the Mandriva /. You can use the same swap space as Ubuntu. Sharing /home, /boot, and other things is possible too, but a little trickier.

brian15 08-03-2006 09:27 AM

so it's completely fine that both partitions are called "/"

Nylex 08-03-2006 09:29 AM

Your root partition for, say Mandriva won't be mounted on / in Ubuntu. Both distros will have their own root (/) partition, but if you want to access the files from one distro in the other, that partition will be mounted somewhere else.

weibullguy 08-03-2006 09:31 AM

Yes. When you use Ubuntu, it won't mount the Mandriva partition and vice versa. Therefore, there will only be one / that each distro "sees."

Edit: Nylex beats me to the punch again!

brian15 08-03-2006 10:12 AM

everyone thanks for your help, now i am at the screen where it asks me to choose a boot device, do i chose the partition that i wrote monandriva on? here are the options

/dev/hda (windows xp)
/dev/hda5 (ubuntu)
/dev/hda6 (linux swap)
/dev/hda7(now mandriva)xp

weibullguy 08-03-2006 10:19 AM

Quote:

Originally Posted by brian15
everyone thanks for your help, now i am at the screen where it asks me to choose a boot device, do i chose the partition that i wrote monandriva on? here are the options

/dev/hda (windows xp)
/dev/hda5 (ubuntu)
/dev/hda6 (linux swap)
/dev/hda7(now mandriva)xp

I'm not sure I understand your question. Are you in the middle of the Mandriva installation and it is asking you where you want to install it? If so, then choose /dev/hda7.

Or have you already installed Mandriva and you are at a menu asking which OS you want to boot? From what you've posted, this is the impression I get.

brian15 08-03-2006 10:25 AM

well i am at the part where it has already copied the cd content to the harddrive partition. it asked me to choose a boot manager and i chose grub but now it's asking to choose a boot device

weibullguy 08-03-2006 10:54 AM

It sounds like it's asking you where you want to install the boot loader (GRUB). Does the installer say something like "Where do want to install the bootloader?" And does it give you choice like the first sector of the drive, Master Boot Record, or MBR?

If that's where you're at, I would pick the MBR which is probably the first choice in the list you provided. If not, I would you to clarify exactly where you are.

brian15 08-03-2006 12:57 PM

thats that worked but when i reboot my pc, ubuntu isn't on the grub boot options anymore, i then tried reinstalling ubuntu but after doing this Mandriva isn't on the Grub boot list

tredegar 08-03-2006 01:28 PM

Mandriva generally uses lilo as the boot manager, ubuntu uses grub.
This can be a PITA.

The solution is to find out which partitions your different distros are on, then modify the grub.lst file or lilo.conf (depending on which you have ended up with) to add a section to make the other distro known to the boot manager.

Oh, and please make sure you are not installing the different distros to the same partition! You can only have one distro per partition, and then whichever partition gets mounted on / runs the distro that is on that partition.
You can list your partitions with the fdisk -l command (and that is minus-ell, not minus-one)

HTH

brian15 08-03-2006 02:01 PM

thanks, i am installing them on different partitions, how do i edit the grub.lst, where would it generally be located

weibullguy 08-03-2006 04:09 PM

It is found at /boot/grub/menu.lst.
Code:

# nano -w /boot/grub/menu.lst
Look at the other Linux distro entry in this file as a guide. You'll have to edit this as root. Here is the manual for GRUB that you can use as a reference. Here is an example of my menu.lst.
Code:

# Default kernel is the first Fedora Core 5 kernel in the
# list below.
default=2

# Give me 30 seconds to make a choice before booting the
# default kernel.
timeout=30

# Use a pretty picture for the boot selection menu
# background.
splashimage=(hd0,0)/grub/scientific_splash.xpm.gz

#-------------------------------------------------------#
# Following are the Fedora Core 5 kernels on this      #
# machine.  The Fedora Core 5 installation is on hda5.  #
#-------------------------------------------------------#
title ___________________________________________________
root
title Fedora Core Kernels
root

title Fedora Core 5.0 (2.6.17-1.2145_FC5)
        root (hd0,0)
        kernel /vmlinuz-2.6.17-1.2145_FC5 ro root=/dev/hda5
        initrd /initrd-2.6.17-1.2145_FC5.img

title Fedora Core 5.0 (2.6.17-1.2139_FC5)
        root (hd0,0)
        kernel /vmlinuz-2.6.17-1.2139_FC5 ro root=/dev/hda5
        initrd /initrd-2.6.17-1.2139_FC5.img
        savedefault 2

#-------------------------------------------------------#
# Following are the Gentoo 2006.1 kernels on this      #
# machine.  The Gentoo installation is on hda7.        #
#-------------------------------------------------------#
title ___________________________________________________
root
title Gentoo Kernels
root

title Gentoo 2006.0 (2.6.16-DAR-6 nVidia)
        root (hd0,0)
        kernel /gentoo/gentoo-2.6.16-DAR-6 ro root=/dev/hda7
        savedefault 2

title Gentoo 2006.0 (2.6.16-DAR-7 nVidia)
        root (hd0,0)
        kernel /gentoo/gentoo-2.6.16-DAR-7 ro root=/dev/hda7
        savedefault 2



All times are GMT -5. The time now is 01:09 AM.