LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-27-2006, 02:46 AM   #1
jk21
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian
Posts: 26

Rep: Reputation: 15
Putting two distros on same partition


I am currently trying to install two distros of linux on the same machine (Debian and Gentoo). I know that the standard method of doing that would be to create a separate partion for each one, but I was wondering if it would be possible to put them both on the same partition. What I was thinking was that the root directory of the partition would have two directories, and then each distro would mount a sub directory as the root (/) partition. The problem is, I only know how to mount a partition as /, not a sub directory. Is what I'm thinking possible, or should I just go with two partitions? Thanks!
 
Old 04-27-2006, 06:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
erm... what you want to achieve is kinda possible... i would look towards running a chroot environment for one of the distro's or something, but in practise it's just a bit of a non-starter in my opinion. really not something to want to do in the first place. i would personally rather look towards a virtual machine if you seriously could not add another partition.
 
Old 04-27-2006, 07:26 AM   #3
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
yeah, you could do that. but it sounds rather horrible - setting up your bootloader correctly, you'd need and initrd, then setting up the chroot etc etc

Then actually using it could become rather confusing.

Unless you want to use two systems at once, it would be far easier to create 2 seperate partitions......
 
Old 04-27-2006, 08:24 AM   #4
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
It sounds like what you're attempting to do is create two "virtual" partitions within one partition using directories.
Why not just go the extra mile and do it the proper way with two separate partitions?
You're just making things needlessly complicated for yourself.
 
Old 04-27-2006, 08:25 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
one other thins to toss in here would be the use of LVM, which means you can install inside a single partition, but still obvsiouly requires that you are already using LVM on the current distro, and both distro's you are using are happy to support it properly.
 
Old 04-27-2006, 08:33 AM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
lvm? how are you figuring that acid?
 
Old 04-27-2006, 08:43 AM   #7
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Why not just use debian? Why would you want to run anything other than debian?
 
Old 04-27-2006, 08:44 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well that's what LVM does... partition contains physical volumes, physical volumes contain logical volumes, logical volumes are therefor used instead of disk partitions
 
Old 04-27-2006, 08:50 AM   #9
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
yeah, i love my LVM. I've never thought of booting into a different logical volume, i must say!

Last edited by satinet; 04-27-2006 at 08:53 AM.
 
Old 04-27-2006, 11:01 AM   #10
jk21
LQ Newbie
 
Registered: Aug 2004
Distribution: Debian
Posts: 26

Original Poster
Rep: Reputation: 15
Gotcha

OK - thanks for the info everybody, that totally answers my question. I was mainly just looking to see if I could save some space (with two partitions, I may run out of space on one before the other), but it's not really that big of an issue. My reason for installing two at once on the same machine was to compare them directly on the same hardware, but it doesn't sound like I'd get a fair test if I had to boot one from the other anyway. I'll just keep it simple this time, but I may look into LVM later. Thanks!
 
Old 04-27-2006, 12:58 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by Agrouf
Why not just use debian? Why would you want to run anything other than debian?
sadly i don't even think that that's a joke... gotta "love" debian users. they manage to stereotype themselves so noone else even has to think!
 
Old 04-27-2006, 01:00 PM   #12
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Quote:
Originally Posted by acid_kewpie
sadly i don't even think that that's a joke... gotta "love" debian users. they manage to stereotype themselves so noone else even has to think!
Yeah, ive also noticed the phenomena.. d: .. Especially against slackers (;
 
Old 04-27-2006, 03:39 PM   #13
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

Rep: Reputation: 80
Quote:
Originally Posted by acid_kewpie
sadly i don't even think that that's a joke... gotta "love" debian users. they manage to stereotype themselves so noone else even has to think!
Sorry about that. That was a joke. I was just trying to having some fun. I was in a weird mood. On the other thread I posted that the bible said that only debian users would be saved at judgement day. I thought that was funny because I didn't think someone could *really* think something like that. Indeed that's a problem. I don't even use debian myself (although I use some derivatives). apt-get is nice but debian is not the only way. I use mandriva with much fun and I discovered pclinuxOS, which is kind of a mix between mandriva and apt-get and I like it, although it is only available in english currently (but that will change this summer). I'm turning that into some kind of Red Hat, installing package after package, dependency after dependency from the red hat repositories and that didn't breack yet. LFS is much much fun. Oh and gentoo, arch and and ... BSD! freeBSD is NOT boring. FreeBSD is fun to learn and sooo stable. I didn't tryed openSolaris, but I HAVE to give it a shot. God let's even give that windows vista a chance. I'll probably won't give the bucks for that, but I want to know how it looks like on friend's computers and get nostalgic. Windows is getting old, but this version will be pretty, for sure. I will install slackware on one of my computers one of these rainy week ends, because I haven't managed to try it yet, but have heard so much good about it. Many friends of mine use it with much fun.
In any way, all apologies for offending anybody with my weird mood and please don't take me seriously in the future when what I say is not technical.

Last edited by Agrouf; 04-27-2006 at 03:48 PM.
 
  


Reply

Tags
partition



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I know which partition my distros are on? (Multi distros) glenn69 Linux - Newbie 3 06-18-2005 02:43 AM
Auto partition distros viniosity Linux - General 1 09-24-2004 02:40 AM
Formating a FAT32 partition, putting the partition correctly into FSTAB, and more. squall14716 Linux - General 14 10-27-2003 10:16 PM
Two linux distros on one partition? aviceda Linux - Newbie 3 09-08-2003 09:45 PM
putting /home on a seperate partition ludwig W Linux - General 2 05-06-2003 02:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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