1

I got a 1TB HDD, is it possible to partition it in say 128GB sections and install a different Linux in each (i.e 8 different flavors on 1 hard drive) and be able to carry it around?

If so, what are the steps?

Yaron
  • 13,173
  • as long as its the latest grub, should be fine. so install ubuntu 16 first with grub 2, if u already got the partitions. else boot from ram or other HDD and make the partitions first. Then latest grub2. then should be able to install different linuxes to different partitions – tgkprog Jul 10 '17 at 12:42
  • just 1 by 1 being careful to choose correct partition identifier so u dont over write an earlier install – tgkprog Jul 10 '17 at 12:43
  • Should be simple and self explanatory, however I'm opting for some adjustments. First of all I recommend using common Home directory and/or common swap partition. Well, if you could.... – Sławek Śpiewak Jul 10 '17 at 11:46
  • Might not work, beacuse of the unportable nature of UUIDs, but good luck anyways. – Sławek Śpiewak Jul 10 '17 at 11:48
  • Oh and os-prober is your friend here. – Sławek Śpiewak Jul 10 '17 at 11:49

2 Answers2

1

First off, since you want to install eight different flavors, it would be good practice to create 8 partitions with 124 GB each and use the remaining 8 GB as a SWAP partition.

Here there is also a decision to be made about the kind of Partition table structure to implement. If the flavors of Linux that you are opting to install have the support for it and the hardware you are running has support for UEFI (Universal Extended Firmware Interface), you should use a GPT partition table structure but, if you are planning on running the systems on older machines that implement MBR(MSDOS)-BIOS, then you should create three Primary partitions and one extended partition where the remaining five flavors of linux and the SWAP partition can reside in.

Both the creation of the Partition table, the partitions and later the file-systems on each partition, can be done with gparted which can be downloaded from here or it's highly likely that one of the linux boxes you are running has already got the program installed.

gparted is a GUI tool, so using it is a fairly straightforward process and you can very easily learn how to do each task i.e. creating a GPT or MBR partition table, creating the 9 partitions and file-systems on the partitions you just created from videos on YouTube.

To start you off, here is my favorite article on creating a GPT partition structure in gparted. And here is one for manipulating MBR/MSDOS primary and secondary partitions in gparted .

endrias
  • 597
0

I would create partitions for each of the linux distros, that you want to try, plus one common swap partition plus one common data partition. The data partition is where you can store your personal files including documents, pictures, videoclips, music.

  • It is enough with 40-50 GB for each of the linux distros.
  • If you want hibernation you should have at least as much swap as RAM in the same units GiB (gibibytes), base 2 (while GB (gigabytes) uses base 10). Otherwise it is probably enough with 1 or 2 GB swap. If the computer starts swapping it will be very slow. You don't want your systems to swap (except for emergency swapping to avoid a program crash).
  • The data partition can become the biggest one, around half of the drive space.
    • If you intend to share data with Windows, use the file system NTFS and let it be partition number one. It can still be located physically at the end of drive space. (The number in the partition table decides if it will be seen by Windows when connected via USB.)
    • If you intend to share data with MacOS, use the file system FAT32.
    • If you intend to use the data partition only with linux, use a linux file system. I suggest ext4.

See the following link and links from it for more details about installed systems in USB drives.

  • Try Ubuntu (Kubuntu, Lubuntu, Xubuntu, ...) before installing it

  • Please notice that you might use an external case with USB 3 as well as eSATA connections.

  • You need not worry about wear with a USB hard disk drive, so you need no tweaks to reduce wear (for example, keep journaling, it makes the file system more stable).

sudodus
  • 46,324
  • 5
  • 88
  • 152
  • 1
    I use 25GB for each / (root) partition, have a small swap as I never hibernate and have over 4GB of RAM, so it does not normally need swap space. I do not share /home as then your user settings may get changed by one install and change other installs settings also. Best to just share data, but I also include Firefox & thunderbird profiles in my data partition so I have same email & bookmarks in all installs. If newer UEFI system, be sure to install all installs in UEFI mode, but backup /EFI/ubuntu before next install as all flavors use same ESP. And if external, you need ESP on external. – oldfred Jul 10 '17 at 16:30
  • @oldfred, thanks for your tips in general and in particular reminding about UEFI and the ESP, the EFI system partition. My tip: unplug (disconnect) the internal drive before installing in order to force the UEFI bootloader (the ESP and it's files) to be installed into the external drive. Otherwise it will be installed into the internal drive, which is normally detected as the first drive, and the external drive will not boot by itself (this is all about UEFI mode). – sudodus Jul 10 '17 at 18:20