I would like to install several Linux distro's on one 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.
I would like to install several Linux distro's on one disk
My question
I would like to install multiple Linux distros on one disk.
Relevant software and hardware that I use
. I have HP 250 G6 with 1 TB ssd drive, i3 processor, 8 GB memory. UEFI bios.Now with opensuse leap 15.5.
What I've already found or tried
is reading and trying everything about it. Disc divided into scores. Somewhere someone had written, Multiple bootable computer: Multiboot So if you have multiple distros on one hard disk: give each distro only a root partition and leave it at that. And that's where it actually starts a root partition: partition is not a problem in Partied as it happens. But Root? Yes I can name the partition root, but that seems too easy to me. I've done it, but I can't get anything installed on it. Then put flags with boat, esp and legassy, boat that also has no result, see also the Gparted recording. These partitions are made with e.g. Live Ubuntu. So the question is, what am I doing wrong?
There is no need to name any partitions "root", or even to name any of the partitions at all. There is no need to set any boot flag on any partitions either.
Most linux installers will let you specify existing partition(s) to install to, along with asking whether you wish to erase the current contents. Most linux installers also have a simple partitioning tool so you do not need to actually create the target partion(s) beforehand.
There really shouldn't be any problem with the partitions you've created. All current linux installers support ext4 file system, and all of your ext4 file systems have plenty of space for any fresh install.
There is absolutely nothing you need to do to make an ext4 partition suitable for a linux installer to use, other than creating it and having it be big enough (20GB is fine, and yours are all way bigger than that). It doesn't need any name. It doesn't need any boot flag or any other flag set.
What linux installers are you trying to use? I know for sure that the Debian installer will work with this no problem.
would be nice to explain what did you try to install and what went wrong. During installation you need to select the required partition. Also you need to have one common boot loader.
I don't know what you mean when you say 'disc divided into scores', scores? You generally will have to select a mount point for the partition on which you are installing and that will be the symbol '/', meaning the root of the filesystem. You do not need or want Root either upper or lowercase as a mount point. The /root directory is the home directory for the root user and in almost always empty or near empty.
You would either flag an EFI/vfat partition as /boot and esp if it is an EFI install or bios_boot if it is a Legacy install on a GPT drive.
I don't know what you mean when you say 'disc divided into scores', scores? You generally will have to select a mount point for the partition on which you are installing and that will be the symbol '/', meaning the root of the filesystem for the partition on which you are installing. You do not need or want Root either upper or lowercase as a mount point. The /root directory is the home directory for the root user and is almost always empty or near empty.
You would either flag an EFI/vfat partition as /boot/efi if it is an EFI install or an unformatted 1MB bios_boot if it is a Legacy install on a GPT drive. Your post shows you have multiple partitions flagged as /boot/esp and some are ext4 filesystems. You should only have one partition flagged /boot esp and it should be vfat.
Note there is only one ESP partition, and only one of any other. Each of #'s 7-19 is a "root partition", meaning, it is intended to be mounted on / if it is the one selected for the purpose from the bootloader menu after power-up or reboot.
Linux only needs one bootloader per PC, regardless of number of installed distros, or number of disks. Only the bootloader of the first installed distro also gets its bootloader installed on mine. Distros that don't permit not installing a bootloader don't get their installations completed here. The additionals each have bootloader installation withheld, and are booted via the only installed bootloader. This explains how I do it.
The one useful thing to do when installing multiple distros is to create a swap partition, because all distros can use it, as long as you don't plan to hibernate. This saves you the space of having a swapfile in each distro. Your screenshot shows an 8GB swap partition, so that's already good. Just install each distro on one of your other partitions, as I assume thats why you created lots of partitions already.
Each distro will ask if/where you want to install the grub bootloader. You only need this once. If you install a second distro, you have two options - either select the same drive as before for bootloader, or don't install bootloader again. If you choose not to install bootloader, you'll have to boot the distro that controls the bootloader in order to add the new distro to the menu. So easier just to keep overwriting the bootloader with next distro. In any case, if you ever want to configure grub bootloader, you have to do it with the distro that you used to install it.
The one useful thing to do when installing multiple distros is to create a swap partition, because all distros can use it, as long as you don't plan to hibernate. This saves you the space of having a swapfile in each distro.
In my experience it's also useful to have a common "data" or "MyDocuments" partition which will be permanently mounted in a suitable place in all your distros. I mount mine on /home/data. Don't mount anything on your current distro's home directory; use it only as a home for that distro's personal configuration files and for temporary docs. To make this work well, you need to have the same user ID number on all your systems, so that you will own all your data files no matter which distro you created them in, but most distros give the first registered user the number 1000 anyway.
Quote:
Each distro will ask if/where you want to install the grub bootloader. You only need this once. If you install a second distro, you have two options - either select the same drive as before for bootloader, or don't install bootloader again. If you choose not to install bootloader, you'll have to boot the distro that controls the bootloader in order to add the new distro to the menu. So easier just to keep overwriting the bootloader with next distro. In any case, if you ever want to configure grub bootloader, you have to do it with the distro that you used to install it.
A small warning here: not every distro installer gives you the option of not installing GRUB.
I learn a lot about Linux: From another site: Make partition Root: use / (slash stands for root)As a newbie you read a lot about Linux, but you don't known what's important and what's not. So I look over the internet searching for "important" things. And read a lot of not so important things and that cost time. And indeed, after set starting point and / then I can install p.e. Linux Mint.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.