Computing: Computer Administration

Installing a Linux-Linux multiple boot with two harddisks (BIOS boot).

This tutorial is about the BIOS boot of three Linux distributions, installed on two computer harddisks. The Linux distributions used are Bodhi Linux 5.1 (English), BunsenLabs Boron (English), and Emmabuntüs DE5 (French), all of them the 32-bit release. Most of the tutorial's content should apply to most other Linux systems, provided that they still support legacy BIOS boot.

The implementation of a Linux multi-boot with two harddisks is not more complicated than with one single disk (cf. my tutorial Installing a Linux dual boot with one harddisk). In fact, the only challenge is the need of custom partitioning, the multi-boot configuration being so to say automatic, as Emmabuntüs (installed as third OS on the first harddisk, the other two OS having been installed before on the second disk) will find the Bodhi and BunsenLabs installations and add them to the GRUB boot menu, from which, at boot time, you can choose which of the three operating systems you want to start.

1. Installing Bodhi Linux.

Before beginning the installation, boot into BIOS Setup and make sure that the boot sequence is 1. CD-drive, 2. harddisk, 3. removable devices. Insert the Bodhi Linux DVD and power-on the computer. I chose to immediately start to Install Bodhi Linux.

Linux triple boot: Bodhi Linux installation - Choosing to install Bodhi to the harddisk

Follow the lead of the setup wizard until you get at the Installation type page. Here, we will choose to perform a manual partitioning. This will give us the possibility to install Bodhi as and where we want. Be sure that Something else is checked before continuing to the next page.

Linux triple boot: Bodhi Linux installation - Choosing to perform a custom partitioning

The first thing to do is to create a new partition table. As we want to install Bodhi Linux on the second harddisk, we have to select the /dev/sdb as device, where to create it.

Linux triple boot: Bodhi Linux installation - Creating a new partition table on second harddisk

In the free space on /dev/sdb (screenshot at the left), we will create a swap partition (screenshot on the right); create it as primary partition at the beginning of the free space; on my 30 GB disk, I choose a size of 2,212 MB for this partition.

Linux triple boot: Bodhi Linux installation - Creating a swap partition on the second harddisk [1]
Linux triple boot: Bodhi Linux installation - Creating a swap partition on the second harddisk [2]

We then create two further primary partitions (both 15,000 MB in my case). They will both be formatted using the ext4 filesystem. The first, that will be the installation partition for Bodhi Linux, has to be mounted as / (screenshot on the left); the second one (where we will later install BunsenLabs Boron) must not have a mount point (no screenshot). The screenshot on the right, shows the final partition layout on the second disk. Before committing the changes, set device for the bootloader = /dev/sdb2 (we install GRUB on the Bodhi root partition, with the intention to get Bodhi booted from the boot menu of the Emmabuntüs installation).

Linux triple boot: Bodhi Linux installation - Creating the Bodhi root partition on the second harddisk
Linux triple boot: Bodhi Linux installation - Partition layout of the second hardisk, with GRUB on /dev/sdb2

Note, that the partitioner will warn you that no mount point has be specified for partition #3; just push the Continue button to ignore it.

Confirm to write the partition changes to the disk and continue with the installation (local, computer name, users...). When the install is done, reboot the computer. With the DVD having been ejected, your system will not be bootable at this stage. As there is no bootloader in the MBR, the system tries to boot from the network and finally hangs with the message "No operating system found".

Linux triple boot: Bodhi Linux installation - With GRUB on /dev/sdb2, the system is not bootable at this stage

2. Installing BunsenLabs Boron.

Insert the BunsenLabs Boron DVD and power-on the computer. I chose to immediately Start the installer.

Linux triple boot: BunsenLabs Boron installation - Choosing to install BunsenLabs to the harddisk

Continue the installation until you get at the Partition disks screen. Here, choose to perform a manual partitioning.

Linux triple boot: BunsenLabs Boron installation - Choosing to perform a maunal partitioning

The screenshot below shows the partition layout on the two harddisks /dev/sda (no partitions for the moment) and /dev/sdb (the 3 partitions created before).

Linux triple boot: BunsenLabs Boron installation - Partition layout after the installation of Bodhi Linux

To change a partition, select it. Check that partition #1 is well used as swap (screenshot on the left). Be sure, that partition #2 usage = "do not use" (screenshot on the right). This is the partition where Bodhi Linux is installed, and of course, we must not touch it!

Linux triple boot: BunsenLabs Boron installation - Usage of the same swap partition as Bodhi Linux
Linux triple boot: BunsenLabs Boron installation - Be sure not to touch the partition where Bodhi Linux is installed

Note: I'm far away from being a Linux professional, and I'm not sure if using the same partition as swap area for two Linux systems is the normal way to proceed, even not sure if this is safe (?).

Now, lets change the settings of partition #3 (it's here where we will install BunsenLabs). When you select this partition on the partitions layout screen, you'll get the "edit partition" screen, as shown on the screenshot on the left: The usage of the partition is initially set to "do not use", and the boot flag is turned off. To make changes to the partition, select the settings that you want to change. Selecting the Use as settings, will give you the possibility to choose a filesystem (ext4 is the most obvious choice); I think that you should choose to reformat the partition. This partition has to be mounted as /. You'll also have to set the boot flag = on. All other settings may keep their default values (screenshot on the right).

Linux triple boot: BunsenLabs Boron installation - Configuring the BunsenLabs root partition [1]
Linux triple boot: BunsenLabs Boron installation - Configuring the BunsenLabs root partition [2]

The screenshot below shows the final partition layout on the second disk. Select Finish partitioning and write partitions to disk and push the Continue button to do so (you'll have to confirm this on the next screen).

Linux triple boot: BunsenLabs Boron installation - Partition layout of the second hardisk

Continue with the installation until you get at the Install the GRUB bootloader screen. As before with Bodhi Linux, we will not install GRUB into the MBR, but on the Linux root partition (with the intention to get BunsenLabs started from the boot menu of the Emmabuntüs installation). Thus, neither /dev/sda, nor /dev/sdb will suit our needs; instead choose Enter device manually (screenshot on the left). Then, on the following screen, set device for the bootloader = /dev/sdb3 (screenshot on the right).

Linux triple boot: BunsenLabs Boron installation - Installation of GRUB to /dev/sdb3 [1]
Linux triple boot: BunsenLabs Boron installation - Installation of GRUB to /dev/sdb3 [2]

Finish the installation. As before, when trying to reboot, the system will hang with a "no operating system found" error message...

3. Installing Emmabuntüs.

Insert the Emmabuntüs DVD and power-on the computer. You may select the language (I chose "French") before the boot menu is displayed. From this menu I chose Try without installing or install using Calamares (French: "Essayer sans sans l'installer, ou l'installer avec Calamares").

Linux triple boot: Emmabuntüs installation - Choosing to try out or to install using Calamares

On the next screen, you have the possibility to switch to the LXQt desktop; I chose to continue using XFCE. The system boots into the Live-CD. Calamares may be launched by clicking the shortcut on the desktop.

Linux triple boot: Emmabuntüs installation - Launching the Calamares installer from the desktop

Emmabuntüs offers two installation modes: OEM and personal. Choose Classic install (French: "Installation classique") to perform a personal installation.

Continue with the installation until you get at the Partitions screen. Here, we can accept the default (automatic) installation: Use entire disk (French: "Effacer le disk" = wipe out the disk). Just be sure that /dev/sda is selected!. You may or may not create a swap partition; I chose to create a swap partition without hibernation (French: "Swap sans hibernation"). And (really very important!): Be sure to install the bootloader to the MBR (/dev/sda).

Linux triple boot: Emmabuntüs installation - Automatic partitioning of the first harddisk

Terminate the installation, remove the DVD and reboot. This time, the computer starts up, showing the GRUB boot menu (Emmabuntüs). So far, so good, just a little problem: There are no boot menu entries for Bodhi Linux and BunsenLabs!? I don't know if this is Emmabuntüs specific, or (more probably) is due to the fact that these two OS are located on /dev/sdb. Anyway, as we will see, it's not a big deal: All we'll have to do is update the bootloader.

Linux triple boot: Emmabuntüs boot menu (after initial installation)

4. Customizing the multi-boot.

Emmabuntüs includes a launcher to update GRUB in Settings > Personal (French: "Paramètres > Personnel"). Double-click the Update GRUB (French: "Mise-à-jour GRUB") icon to run the update-grub utility.

Linux triple boot: Launching GRUB Update on Emmabuntüs

The default configuration of update-grub includes to search for other operating systems installed. This is actually done here, and you will be asked if you want to add other OS to the boot menu. Of course, you do... After GRUB update is finished, we have to reboot. And, the boot menu now includes entries for Bodhi Linux and BunsenLabs.

Linux triple boot: Emmabuntüs boot menu with all 3 OS (after having updated GRUB)

We can now start Bodhi Linux and BunsenLabs from the (Emmabuntüs) boot menu. Bodhi Linux boots up with its own boot menu (choice between Ubuntu 4.9 kernel and Ubuntu 4.9 kernel recovery mode); BunsenLabs immediately displays the login screen. We don't really want boot menus for Bodhi Linux and BunsenLabs. There is a simple way to get rid of them: Updating their respective GRUB, setting the boot menu timeout value to 0.

To change the boot menu timeout value, we can edit /etc/default/grub and set GRUB_TIMEOUT=0. The screenshot below shows the file /etc/default/grub opened in the default text editor of Bodhi Linux (with the value already changed).

Linux triple boot: Bodhi Linux - Setting GRUB_TIMEOUT=0

You cannot save this file to /etc/default as standard user. Instead save it to your home directory and then, as root, copy it to its destination. After this, you'll have to run update-grub to make the changes become active. The screenshot below has been taken on Bodhi Linux (it's similar for BunsenLabs).

Linux triple boot: Bodhi Linux - Copying the modified grub file and running update-grub

I updated /etc/default/grub on Emmabuntüs, too, setting GRUB_TIMEOUT=15. After having run update-grub, the boot menu includes the "real names" for the 3 operating systems.

Linux triple boot: Emmabuntüs boot menu with all 3 OS (after having updated GRUB on all 3 systems)

Finally, I changed the names of the boot menu entries as shown on the screenshot below. The easiest way to edit the GRUB boot menu entries is to use a tool called GRUB Customizer, that you can install, using the command
    sudo apt install grub-customizer
For details, please have a look at my Linux help text Configuring the GRUB bootloader.

Linux triple boot: Final Emmabuntüs boot menu with all 3 OS (after having edited the menu entries)

If you find this text helpful, please, support me and this website by signing my guestbook.