LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-23-2014, 05:44 PM   #1
Tracey2031
LQ Newbie
 
Registered: Jul 2014
Posts: 8

Rep: Reputation: Disabled
disk partitioning for multiple Distributions of Linux


How should a dedicated 80GB HDD be partitioned to install multiple Distributions of Linux (trial purposes only, not a permanently operational installation)?

Please advise.
Thanks, Tracey the Linux Newbie

I have separately tested several Distributions of Linux using vmware Workstation 5.5.9.

Now I want to evaluate them installed.

Can/Should each installation share the "/home" and "/swap" directory in separate partitions and have each distribution with its own separate "/" (root) partition?
-or-
Should each installation have its own "/" and "/home" and "/swap" partitions?

Does Linux require a minimum of 2 partitions ("/" & "/swap")?

Also I see ext2, ext3, and ext4 partition types (among others).
I also see LVM, but I find LVM VERY confusing when trying to understand the partition layout for the above purpose.
 
Old 08-23-2014, 07:32 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by Tracey2031 View Post

Can/Should each installation share the "/home" and "/swap" directory in separate partitions and have each distribution with its own separate "/" (root) partition?
-or-
Should each installation have its own "/" and "/home" and "/swap" partitions?
swap can either be a directory (/swap) or a partition. Making swap a partition is better. You can use the same swap partition for all of the linux installations.


Quote:
Originally Posted by Tracey2031 View Post
Does Linux require a minimum of 2 partitions ("/" & "/swap")?
Yes and no. Linux can run without having any swap at all. Linux can run with /swap as a directory within the / partition. Linux can run with a separate swap partition. A separate swap partition is best, especially since you can share the swap partition among all of your installed Linux systems.

Quote:
Originally Posted by Tracey2031 View Post
Also I see ext2, ext3, and ext4 partition types (among others).
I also see LVM, but I find LVM VERY confusing when trying to understand the partition layout for the above purpose.
ext3 and ext4 are journaling file systems. ext2 is not a journaling file system. If you have a system crash a journaling file system will recover during boot much faster than an ext2 file system. I recommend that you use ext4 for all of your file systems (except swap which has no file system). LVM is handy for large servers with many disks and which have to periodically rearrange their disk configuration. For what you are doing LVM is an unnecessary complication.

--------------------------
Steve Stites
 
1 members found this post helpful.
Old 08-23-2014, 07:46 PM   #3
m.a.l.'s pa
Member
 
Registered: Oct 2007
Location: albuquerque
Distribution: Debian, Arch, Kubuntu
Posts: 366

Rep: Reputation: 139Reputation: 139
The way I do it, each distro has its own / and /home, but they all share the same swap partition. Also, a large data partition. Still using ext3 on some installations, but ext4 on the ones I've put in more recently.

As you see there are several ways to approach it; for example, the next user wouldn't want separate / and /home partitions.
 
1 members found this post helpful.
Old 08-23-2014, 08:17 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136Reputation: 6136
If this is for testing only, I don't think you need to give each distro a separate /home partition. /home for each distro could be contained within each distro's root partition (that's the default with most installation routines). That means a separate partition for each of however many distros you expect to be testing at the same time, plus a single swap partition that all the distros can use, since, in a multiboot system, you will only be using one distro at a time.

It is probably not wise to ask multiple distros to share the same /home partition--different configuration choices in the different distros could lead to very confused configuration files if they try to share a single /home partition.

It might also be useful to create an extra partition that could be used as a shared partition, sort of like a built-in "network" share, that could be used to move files among the various partitions. An external USB drive could serve the same purpose.

As for file systems, ext4 is likely best, but ext3 is perfectly serviceable, as they are both journaling file systems; ext2 is not a journaling file system, so I would recommend against it. Again, since this is for testing, LVM probably would not be necessary.

Just a few thoughts.

Last edited by frankbell; 08-23-2014 at 08:18 PM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: One CD disk, multiple Linux distributions: Netboot CD LXer Syndicated Linux News 0 10-04-2011 02:23 AM
Binary package on multiple Linux distributions Tux-Slack Programming 5 12-01-2007 11:29 AM
Partitioning for Multiple Linux Distributions Query Tony Bradley Linux - Desktop 1 01-18-2007 07:45 AM
How to install multiple linux distributions on a computer orpolo Linux - General 17 12-25-2006 12:07 AM
Multiple Linux Distributions jaydwire2 Linux - Newbie 3 10-20-2003 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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