1

I have installed Ubuntu 20.04 and I love it: it's really fast and great. However I have some software that is not yet supported and I need to have Ubuntu 18.04 on the same computer. What would be the best option to achieve it? Do I need to start from clean disk to make new partition? What about a Ubuntu 18.04 virtual machine?

Thank you

ldias
  • 2,135
redpill
  • 13

3 Answers3

2

1. How to install Ubuntu 20.04 on the same drive with ubuntu 18.04:

Use a separate partition as / (root) ext4 on the same drive:

example sdb4 as / ext4 and sdb5 as /home ext4 for 20.04 and sdb2 as / ext4 and sdb3 as /home ext4.

sdb1 (swap) will be used for both distributions.

UPDATE: I installed also with bootloader and it worked ok. If you install with below ubiquity -b then when the kernel is updated in the installation that was installed without grub (20.04 in this example), the "old" grub is not updated.

Install 20.04 using live cd -> try ubuntu -> in terminal run command ubiquity -b to install without boot loader (grub).

Reboot into the old distribution 18.04 and run in terminal sudo update-grub.

Reboot after the update finishes.

Choose Advanced for 20.04. Then second option from the top.

2. If you happen to have 2 hard drives on your computer:

Install each ubuntu distribution on a separate drive, with its separate swap, root and home partition.

Note UPDATE: for 2nd option and first with boot loader:

When you update the kernel in one of the distributions, the default grup will be the one that was last updated by the kernel update and the default Ubuntu from the top of the GRUB will be also the one that had its kernel updated last.

Example: Given the above situation your grup will have:

Ubuntu

Advanced...

Ubuntu 20.04

Advanced...

...

...

You update the kernel on 20.04 =>

Ubuntu

Advanced...

Ubuntu 18.04

Advanced...

...

...
0

If you want 18.04 on the same computer, you've two options: either create a virtual machine or dual boot Ubuntu 18.04 with current 20.04.

The best option depends on your system specifications. Like, if you have a better processor, high ram, and free space, the best option would be a virtual machine. For the same, you can either use VirtualBox or GNOME boxes.

Secondly, you can also dual boot by allocating space for Ubuntu 18.04 that will utilize the system resource power as an individual operating system.

For a better answer, can you elaborate on your system specs?

0

Create installation media for Ubuntu 18.04 and install it alongside your current installation. Use the 18.04 installation solely for the software that you need and then when your software supports 20.04, you can delete the 18.04 partition.

ldias
  • 2,135