Dual OS on two SSDs

  • Thread starter Deleted member 161260
  • Start date


Brickwizard

Well-Known Member
Joined
Apr 28, 2021
Messages
4,944
Reaction score
3,310
Credits
36,789
as long as you are sure you have installed Ubuntu twice, once on each drive, It probably will do as both installations are identical, you will probably have to choose which drive you boot from using the short boot menu as you switch on
 

atanere

Well-Known Member
Joined
Apr 6, 2017
Messages
2,787
Reaction score
3,006
Credits
1,738
When I install Ubuntu on both hdd's only one installation shows up.
Assuming you are using a UEFI system. When you install Ubuntu, the GRUB bootloader is stored at /boot/efi/EFI/ubuntu. So it is very important when you install each of your systems that you specifically tell the installer to put GRUB on the drive you are installing on... yet I have a feeling this will still fail because when you install the 2nd copy of Ubuntu, it will automatically "update-grub" at the conclusion of the install causing the 2nd install to "see" the first install. My guess is that it overwrites the GRUB from the first install. It will not make a ubuntu(2) folder for GRUB, so only one is being recognized.

I think the best way to be sure you each drive is separately bootable is to actually only have one drive at a time inside the computer when you install Ubuntu. After the first one is complete, remove that drive, put in the other drive and install Ubuntu again. With this arrangement, it's hard to tell which will boot first, or how to tell them apart. You can use your BIOS Boot Menu at boot time, but both will look the same to you to choose from. Also in this arrangement, I don't think I would allow either Ubuntu to update GRUB (while both drives remain installed at the same time).

I think I would do it differently... I would install the drive internally for the Ubuntu that you intend to use the most (for online stuff, probably), and leave it with just the one drive. Then for the 2nd drive (offline stuff), I would put it in an external case and install Ubuntu on it... only booting on that external drive when needed. This arrangement should not have problems with the encryption you intend to apply. But again, you'll need to use the BIOS Boot Menu to choose the right drive when you start your computer if you want the external drive.

BTW, you would have this same problem with Ubuntu and Linux Mint too because Linux Mint also uses /boot/efi/EFI/ubuntu to store GRUB, and other Ubuntu-based distros may do the same. This would not be as complicated if you used different Linux distros.... Ubuntu + Fedora, or Ubuntu + Debian, or Ubuntu + "something else."

The very best arrangement would be separate computers. @wizardfromoz runs a lot of distros on a single drive, so he may have better advice about how to keep two different Ubuntu's together in the same drive. Good luck!
 
Last edited:

osprey

Well-Known Member
Joined
Apr 15, 2022
Messages
1,125
Reaction score
1,102
Credits
10,705
I would like two independent Linux (Ubuntu) installations residing on two separate SSDs both installations encrypted with luks.
One installation for web surfing. & the other installation completely for offline use.

When I install Ubuntu on both hdd's only one installation shows up.
Assuming grub was installed properly, it looks like two issues ought to be addressed.
Does grub see all the bootable installations?
That can be tested by running, as root, the command:
Code:
 os-prober
with no options. It should scan all disks available on the system for other operating systems.
If it returns nothing, then it can't see the other systems.

Possible action then is to include the grub config GRUB_DISABLE_OS_PROBER=true, in /etc/default/grub and update grub. This config can also be checked in the files of the directories: /etc/default/grub.d and /etc/grub.d (if they exist), where if it says "false", it can changed to "true", and update grub.

It may be that the unseen installation is not being marked as bootable.

Also, to help grub menu appear, comment out the config: GRUB_TERMINAL=console
if it's not already commented out with # at the start of its line.

On the matter of having two installations, with one installation offline, there are ways of keeping part of a single installation sequestered from online access within a single installation rather than using the much larger resource of having a whole separate installation. Something perhaps to consider, but YMMV.
 
Last edited:

wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
9,186
Reaction score
8,138
Credits
39,448
0cd7RxV.gif


(Wizard appears in a puff of smoke, trips over a console and turns it into a grub. The grub appears large and appetising, so he puts it on a grub menu to try later)

I'll wait until the OP indicates how he went with the suggestions detailed by the good folk above, before coming up with further ideas.

I do have a couple of questions for now, of the OP @someone123 -
  1. Are the Ubuntu distros LVM as well, or just luks? (I can help with neither, no experience)
  2. Can you give us the contents of /etc/default/grub for each Ubuntu?
  3. Are the drives described as eg /dev/sda and /dev/sdb (or nvme combinations) and provide details, please?
  4. An answer to @z7vl7abxc 's question at #3 would help.
Also, to help grub menu appear, comment out the config: GRUB_TERMINAL=console
if it's not already commented out with # at the start of its line.

If it IS commented out, then between

GRUB_DEFAULT=saved

and

GRUB_TIMEOUT=<value, perhaps>

you can place a line

GRUB_TIMEOUT_STYLE=menu

and save and then update-grub.

Cheers

Wizard
 
OP
D

Deleted member 161260

Guest
aa
 
Last edited by a moderator:
OP
D

Deleted member 161260

Guest
aa
 
Last edited by a moderator:

Members online


Top