LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-29-2006, 10:45 PM   #1
volekvolek
LQ Newbie
 
Registered: Feb 2005
Posts: 15

Rep: Reputation: 0
Running Two Linux distribution on the same hardware


Hi:

My PC is currently running windows XP and Fedora 5.

I Like to install Fedora 6 and Ubuntu So I can boot to either one for testing applications. (Getting ride of windows alltogether, or maybe if possible run windows too, since I have a big hard dirve)


How this can be done? Which Os should I install first ?

Thanks
 
Old 12-29-2006, 10:55 PM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Just add the relevant entries to grub (menu.lst / grub.conf) and you will be able to boot from either of the linuxes.
You can even share the swap drive between the 2 distros and windows....
 
Old 12-29-2006, 11:38 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Basically, you need to install either distro first. During the partitioning step, create a / partition and a swap partition. Also create a partition mounted at /data, which you can use to share documents, music, etc between the different distros. Install the boot loader to the MBR. It should detect Windows if you want to keep it. Leave sufficient space for the other distro (about 10-20GB per distro is plenty).

Then install the other distro, creating a separate / partition. Use your /data partition from previously as /data again. Both distros can share the same swap partition. When you get to the boot loader step, tell it to install Grub to the / partition (not the MBR). Write down the partition that you installed this distro to (eg /dev/hda2).

Reboot your machine, and it should let you boot your first distro. Edit /boot/grub/menu.lst, and add the following entry:
Code:
title    Whatever your second distro was
root     (hd0,1)
chainloader +1
(Assuming that you installed the second distro to /dev/hda2.)

When you reboot your machine, you should get the choice of either Fedora or Ubuntu. Choosing your second distro, and you will be "chainloaded" to the boot loader of the second distro.

I have more information Here.

I know it sounds kind of complex, but it isn't really

I hope this helps
--Ian
 
Old 12-30-2006, 12:17 AM   #4
alaskazimm
Member
 
Registered: Mar 2004
Location: Watching it snow in bush Alaska
Distribution: *ubuntu, Smoothwall, WinXP Pro
Posts: 126

Rep: Reputation: 15
If you are going to run Windows as well, it should be installed first as NTLDR doesn't recognise any other operating systems. Then Linux can be installed in either order - they should pick up each other as well as windows, and configure grub accordingly.
 
Old 12-30-2006, 12:55 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you use a unique username ( and uid ) for the users of each linux distro, you can also share the /home partition without any problem. You might need to manually select a different UID when creating the initial normal user. Also, use a filesystem that all the linux distros understand during the installation. For example, ext3 would be fine, but FC might not recognize reiserfs without adding a kernel boot option at the boot menu.
http://www.linuxquestions.org/questi...ht=%3Dreiserfs
 
Old 12-30-2006, 04:04 AM   #6
decrepit
Member
 
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347

Rep: Reputation: 34
The only problem I've had with multi operating systems, is mixing LVM with ordinary partions, in this case it was a shared swap. I'd set core5 up with ordinary partitions, and then installed Mandriva, using the same swap partition. After that core5 could no longer use swap, I didn't realise Mandiva was using LVM and it relabeled/formated swap.
 
Old 12-31-2006, 12:07 PM   #7
mickeyboa
Senior Member
 
Registered: May 2004
Location: Indianapolis, Indiana
Distribution: FC-KDE, 32 and 64 bit
Posts: 1,719

Rep: Reputation: 68
I agree, when installing FC6 and Suse-10.2 as long as I used ext3 partitions everyting worked fine
at bootup.

Jim
 
Old 01-11-2007, 12:18 PM   #8
volekvolek
LQ Newbie
 
Registered: Feb 2005
Posts: 15

Original Poster
Rep: Reputation: 0
HI

Thanks for all the responses. At the moment I am experimenting with the suggestions mentioned here.

I forgot to mention I had purchased a 160G disk for my Toshiba laptop which came with a disclaimer saying some BIOS might not recognize beyond 137G. I understood this as "I have to install all boot loaders on the first parition If I choose to have 4 partition of 40G each".

Can I upgrade/reinstall any of OS's in their respective partitions at a later time if I choose the above scheme without needing to redo the bootloading sector except minor changes to the grub entry names ?

ex. Lets say partition 3 holds fedora 6 and I want to wipe it out and install fedora7 in few months.

Thanks for your thoughts
 
Old 01-11-2007, 06:53 PM   #9
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
If you do it how I suggest Here, with a "master" GRUB and then each distro in control of its own GRUB, then you can just install a new distro in the old ones place and change the name in the master GRUB.

AFAIK, this should mean that any BIOS limitation is taken care of.

--Ian
 
Old 01-11-2007, 07:02 PM   #10
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Iball,

Nice Link. I need guys like you to take the newbies by the hand. Haven't got patience myself to explain everything in details but glad the message spreads out.
 
Old 01-30-2007, 03:26 PM   #11
volekvolek
LQ Newbie
 
Registered: Feb 2005
Posts: 15

Original Poster
Rep: Reputation: 0
Thanks for All the replies specially Mr. IBall. I can now boot to 3 Os from a master grub with its own small partition and visible to all the distros.

I have something like following. I have yet to figure out how to call another grub from this master grub, ie in the following under Fedora 6 , instead of the binary location , I call a local grub on that partition. /Fedora6/boot/grub/menu.lst


default=1
timeout=10
splashimage=(hd0,4)/master_grub/boot/grub/splash.xpm.gz
title Fedora Core 6 (2.6.19-1.2895.fc6)
root (hd0,4)
kernel /boot/vmlinuz-2.6.19-1.2895.fc6 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.19-1.2895.fc6.img
title Windows XP
root (hd0,1)
chainloader +1
title Ubuntu.....(Not installed yet )
root (hd0,5)
chainloader +1
 
Old 01-30-2007, 03:54 PM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Guys

Booting should be a child play in Linux.

In the volekvolek's menu.lst

The next partition after Ubuntu is (hd0,6), right?

If the next Linux is installed there and its boot loader is installed inside the root partition of (hd0,6) then these 3 line in the FC6 menu.lst will fire it up
Code:
title My Linux in (hd0,6) which could be hda7 or sda7
root (hd0,6)
chainloader +1
The above, Gentlemen, is all you need to boot all the way to 100+ systems. In other word, install a Linux in (hd0,7) then add the same 3 lines but change the root statement for the new partition reference to (hd0,7) and so on.
 
Old 02-04-2007, 05:39 PM   #13
zouzou85
Member
 
Registered: Jan 2007
Distribution: Mandriva2007 & OpenSuSE 10.2
Posts: 30

Rep: Reputation: 16
I have been having the same problem, as I am trying to install Mandriva 2007, OpenSuSE 10.2, and DreamLinux (of course with winXP).I have a 60G HD. It is divided as follows: about 4G for windows Recovery (Laptop bought with it), and 7G partition for WinXP.
So in my attempts to achieve my goal, What I did was:
1-create 512M SWAP as a primary partition (which is going to be shared by all linux Os's).
2-create an extended partition with the rest of the HD( since i can't have anymore primary partitions).
3-create a 100M /boot partition within the extended part.
4-create a 19G /home partition within the extended partition which I intend it to be shared, I also prefer to have the same user name.
5-create three partitions that would be the root partition for each distro.
But the problem is with the /boot partition. every distro seems to prefer a different type of file journaling which requires to format the /boot partition.
first, Am I doing the best way of partitioning and multi-booting linux?
 
Old 02-04-2007, 05:56 PM   #14
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I think you can run into problems when more than one Linux wants to use "vmlinuz" as the kernel name or a backup kernel.

I recommend single partition per Linux and a data only partition available for mounting whenever you want.

In a single partition /boot, /home, /usr, /etc ... are just subdirectories to /. Nothing can be mixed up. When you boot, resize or migarte you do it with one partition.
 
Old 02-04-2007, 10:22 PM   #15
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Even if you go with saikee's advice,

Or if you don't, you should not share a common user in a /home partition. Desktop settings can become corrupt between the different versions of desktop managers making your shared user account un-accessible. Even if you use KDE for example for all distributions, the different versions of KDE can render the account un-accessible.
 
  


Reply



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
How tell what Linux distribution and version is running? johnkantor12 Linux - General 4 12-17-2007 11:35 AM
Cannot install any Linux distribution due to hardware problem mrdesai Linux - Hardware 11 01-08-2007 07:28 AM
At day Two with linux need Hardware suggestion and Distribution advice. maillavell Linux - Laptop and Netbook 4 04-10-2006 10:22 PM
Is there a linux distribution that will work on my hardware? cyrilthefish Linux - Hardware 1 11-01-2003 03:45 PM

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

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