LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-29-2011, 03:22 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
HOWTO: install multiple distro's onto same primary drive


I want to put several different linux distro's on the same workstation.

Q1. How do I partition for multiple distro's?
Q2. How do I manage GRUB2 for multiple distro's?

I'm stumped to discover how to deploy more than one or two distro's per drive regardless of the drive capacity.

The legacy workstation has a primary disk drive typically /dev/sda*. The partitioning rules allow for a total of four(4) primary partitions. One of those primary partitions might be an "extended" partition, and those can provide additional "logical" partitions. The linux convention assigns sda1-sda4 to the primary partitions with sda5-up for logical partitions.

One approach to partitions and linux install looks something like this:
Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       15298   122881153+   7  HPFS/NTFS
/dev/sda2           15299       16700    11261565   12  Diagnostics
/dev/sda3           16701       60801   354241220+   5  Extended
/dev/sda5           52516       60801    66557295    7  HPFS/NTFS
/dev/sda6           16701       24602    63472752   83  Linux
/dev/sda7           24603       24845     1951866   83  Linux
/dev/sda8           24846       26061     9767488+  83  Linux
/dev/sda9           44613       52514    63472783+  83  Linux
/dev/sda10          26062       43975   143889690   83  Linux
/dev/sda11          43975       44612     5118976   82  Linux swap
This partition plan allows for dual-boot with M$ Windows(tm) and a bootable Vendor supplied rescue/recovery application.

Thanks in advance,
~~~ 0;-Dan
 
Old 08-29-2011, 03:36 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
I don't understand what the problem is? Each install needs at least one partition to itself. So yes, partition the disk into multiple partitions, one per OS plus one for swap, minimum. As far as I know, Linux can boot from an extended partition. And Grub2 should automatically find the installed OSes and add them to the list.
 
Old 08-29-2011, 05:23 PM   #3
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
I need one swap and one $HOME. They could be primary partitions. That leaves one other primary partition and an extended partition.

The other primary partition could be /wrk or /data or whatever -- or simply fold this space into $HOME.

It probably doesn't make sense to have a /boot partition -- leave that in the per-distro folder tree.

I could then slice the extended partition into root-file systems for each distro.
What would be a reasonable amount of space for a distro "/" tree given that it will hold not only the distro software but also /var and /boot? Analysis of my current workstations says that 12-16 GiB are used... but I don't spend a lot of time trimming distro fat and I also add a lot of my own trinkets and toys.

Now what do I do with GRUB-2 and its parts? Will update-grub or its equivalent see all of those viable distro's scattered across the drive?

Thanks in advance,
~~~ 0;-Dan
 
Old 08-29-2011, 07:33 PM   #4
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You need only one swap partition for all your distros. Most of linux distros work just as well from logical partitions as primary. You can save your primary for any windows or if not there are a couple of unix distros that want to use primay distros. I usually use two partitions for each distro one / and one /home and they all share the same swap partition. The extended partition will holds the logical partitions. Grub2 is pretty good about finding the other distros.

Quote:
What would be a reasonable amount of space for a distro
My primary distro is on a 12 gig root partition with a 10 gig home. It is fat in the root a little 6 gig used. My home is 10 gig with about 2 gig used. The rest I put on single 12 gig partitions except for two that are 4 gig reserved for the small distros. I have 250 gig partition for my data for all the distros.
Quote:
Now what do I do with GRUB-2 and its parts? Will update-grub or its equivalent see all of those viable distro's scattered across the drive?
If you install the distro using grub2 last using default grub install it should do everything for you.
 
1 members found this post helpful.
  


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
[SOLVED] How to start to install multiple distro's on a clean Hard Drive? Joseph Szikora Linux - Desktop 4 10-06-2010 09:20 PM
multiple bonds = multiple primary interfaces? turbo_acura Linux - Server 1 02-17-2009 11:15 AM
tried to install ubuntu on removable drive, now primary won't boot windows Pfaust Ubuntu 3 05-23-2007 08:44 AM
Partitioning a drive for multiple distro's Ravager Linux - Newbie 23 11-02-2004 01:27 PM
Installing Win98 on slave drive to pre-existing linux install on primary eliszka Linux - Software 8 11-07-2001 10:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:29 PM.

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