How to have two Distros installed on one hard disk
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to have two Distros installed on one hard disk
HI
I recently went across a document to install two linux on one computer but with two hard disks
I am confused that if it is possible to install linux on two hard disks but the same computer it should also be possible to install it on the same hard disk.
I tried this
I installed WIN XP on D drive
I installed WIN 2003 on E drive
So boot loader for XP and 2003 is on first partition hda1
Now I installed fedora on hda7 as /boot hda8 as /root and hda9 as swap.
I still have 15 GB on which I installed EL WS 4 without the boot loader, as suggested in the the article, to partition hda10 /boot and hda11 as /root and tried to install EL WS with two options:-
one with hda9 as SWAP
two with hda11 as SWAP and hda12 as /root
under both the situations
I copied three files kernel vmlinuz.* initrd.* and Sysimage.* to the /boot partition.
Edited grub.conf on my Fedora to have a entry for EL WS kernel and intrd and location for the root with the appropriate boot drive selected in my case is hd(0,9) as hda10 is my /boot for EL WS
Now EL WS boots up and is unable to mount root files and the kernel goes to panic where I get the dancing keyboard lights
What is that I am doing wrong?
You shouldn't have to be copying kernel files. In fact, you shouldn't do it at all.
This is what, theoretically, should happen (and what worked for me--I'm currently tri-booting Windows XP, Mepis, and Ubuntu from one hard drive):
Windows is installed on one partition.
You install one Linux distro on another partition, but when you're asked where to install Grub, you say to install it to the first part of the /root partition.
You install the second Linux distro on another partition, but when you're asked where to install Grub, you install it to the MBR (master boot record). That Linux distro should recognize both your Windows installation and your other Linux installation.
If it doesn't recognize your other Linux distro (which sometimes happens), you can go into /boot/grub/menu.lst and add an entry for that distro.
By the way, you don't need /boot partitions, and one swap partition is fine to share between two Linux distros on one hard drive.
The way you suggested will work if I inistall from the beginning starting with Windows first then first linux OS and then other linux distro that I will install to manage the booting using grub on the MBR. Am I right in saying so?
Problem is that i already had WinXP , Win 2003 and Fedora Core 1 installed on the hard disk with Fedora core 1 managing the booting using grub on master boot record.
Now if I want to add another linux to the 15 GB hdisk unformatted space I have what should I do?
Or is this possible or not to install anothe distro with my setup?
I don't want to loose my linux and Win 2003 and Win XP OS.
Originally posted by jspsandhu Now if I want to add another linux to the 15 GB hdisk unformatted space I have what should I do?
Or is this possible or not to install anothe distro with my setup?
I don't want to loose my linux and Win 2003 and Win XP OS.
I don't see why it wouldn't be possible to install another distro. You've got free space, what's wrong with just using fdisk or something to make a new Linux partition from that space? After that, just install your distro on that space and configure it to use the swap space you've already got set up. Don't install a bootloader with the new distro, just add an entry for that partiton to your existing bootloader and it should be ok. I managed to dual boot Slack and Gentoo, but it shouldn't be any more difficult to boot several distros (and Windows).
Honestly, I don't know what could be wrong with yours. A few questions though:
How come you've got the star there in vmlinuz? Why isn't it just the full name (same with initrd, I guess)?
Also there's something that confuses me about GRUB and it was something I found in the Gentoo handbook as well: why do you have root (hd0,9) and then root=/dev/hda11? Why are there two root things and why are they different? Edit: as you can see, I've just made them the same (ie. /dev/hda3 = (hd0,2) in GRUB language)
I could get it working today the last thing that you mentioned was the problem
As I had /boot and /root on different partition I had to make the following changes
The thing on grub you asked is expplained also
The first root (hd0,9) is the location of the boot loader that is my /boot partition is /dev/hda10
then the second entry is for the /root the statement is ro root=/dev/hda11 this is same as /dev/hda11 that is this partition contains my / directory
That was the only mistake I made I was using ro root=/dev/hda10 which is wrong the confusion was that I read somewhere that in grub it is one no back so I thought that /dev/hda10 actually means /dev/hda11 which is not true only in grub format that is hd0,9 means /dev/hda10
Well anyways problem is resolved and I am really excited with the new distro will be exploring its features now
The stars in the entry for the kernel and initrd are because the computer is at home and I was at work when I was replying to the forum and I dnt remember the complete version of the new distros kernel.
We have been able to build a system with RedHat 9.0 from which we could boot the OS from
say either of /dev/hda1 and /dev/hda3 with GRUB. This allowed us to boot from the second
drive if the first drive was cactus or needed repair.
This is ALTERNATE booting, not DUAL boot.
When we try and do similar things with SuSE 9.3, it does not work.
Ideally we want to do what you can functionally do with a SUN and say
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.