Adding Ubuntu into my already dual boot (windows and opensuse tumbleweed) made opensuse undetected

A little backstory :
I have my dualboot computer (windows 10 and opensuse tumbleweed) until last week, in which, I joined my lecturer’s research on NDN (Named-data Network). Unfortunately, the NDNSim itself, so far have been succesfully installed in ubuntu. Also the lecturer advised me to use Ubuntu, to get rid of any unnecesarry OS-related problem in the future.

So last night I installed Ubuntu. The problem came when I realized the grub only detected ubuntu and windows 10. The opensuse is nowhere to be seen.

Does anyone ever troubleshoot this kind of problem?? Thank you very much

BTW: most of my work is in opensuse, and I don’t want to lose/reinstalled it.

Start with showing partitions

sudo fdisk -l

In your hard drive check IF you created new partitions so Ubuntu used one partitions for root another for /home, or used existing partitions.

Check where is what, re-boot your computer, into your new Ubuntu.
IF you see GRUB or other boot screens, note which options are listed

Open your terminal, then list partitions using (sudo required) command: sudo fdisk --list
this will show partitions in your Hard Drive(s).

Which partitions currently used by Ubuntu, use command: **mount | grep ‘/dev/s’ **
(OR for all details command mount )

IF you did have records, mount each partition to learn what is on it, then unmount it.

I am sorry, I forget to ask the question.
Yes the opensuse’s partition like “/” and “/home” is still there. What I mean to ask is “How to make opensuse bootable again?” Because grub only show ubuntu and windows 10

Ubuntu is controlling the boot you must make it see openSUSE/ Perhaps ask on Ubuntu forum?

Note you should be able to mount the openSUSE partitions from Ubuntu

You using EFI or MBR boot??

Yes, I can mount openSUSE partitions from Ubuntu. I am using EFI.

I’m guessing.

My guess is that you are using “btrfs” for opensuse.

In my experience, grub (or, really, os-prober) sometimes fails to find a linux system installed using “btrfs”.

Additionally, os-prober fails to find a linux system installed in an encrypted LVM, unless the LVM is made accessible before updating grub.

Possible solutions/workarounds in your case:

  1. Re-install grub2 for opensuse. That should find ubuntu and add to the menu, because you are probably not using “btrfs” for ubuntu.
  2. Manually force an entry for opensuse in your ubuntu grub. You can do this in “/etc/grub.d/40_custom”. You would probably need to use the “configfile” command to access the existing opensuse grub.cfg. Ask if you need further help with this.

My personal practice: I usually install grub to a partition, rather than to the MBR. I leave generic boot code in the MBR. If I use a separate “/boot”, then I install grub to boot from “/boot”. Otherwise I set it to boot from the root partition. (Note that this assume traditional legacy booting – UEFI is different and probably not your concern).

Opensuse is pretty good about allowing booting to be installed in a partition. Some distros don’t give that choice – they insist on using the MBR. But I seem to recall that Ubuntu does give you a choice if you are careful and look for it.

By installing grub to a partition, rather than to the MBR, I can switch to whichever I want for booting (by setting the active partition).

Yes, I am using BTRFS and XFS for / and /home or vice versa.

I am using UEFI, GPT instead of MBR.

Can you give me some help for the first solution?? I have never reinstall grub2, or even bother as to what grub2 is.

Thank you for your quick response sir.

Can you boot to openSUSE from EFI boot menu?

Hit F12 while booting. Many systems will give a BIOS boot menu, and you can probably select “opensuse” (or “opensuse-secureboot” there. On HP computers, that’s F9 rather than F12.

Or, when running ubuntu, try the command (as root):

efibootmgr

That should list the boot options known to the BIOS. You can change the boot order (“efibootmgr -o n1,n2,n3”) to put opensuse first.

If that works for you, then once in opensuse you can run:

# grub2-mkconfig -o /boot/grub2/grub.cfg

to update the menu. That should pick up an entry for ubuntu.

Yes I can

Thank you, I am finally able to return openSUSE in boot option. BTW, It is F11 in my computer

One more thing, I noticed that after all these problems solved, the booting time for openSUSE has become quite long.
Can you help me again?

Here is the boot.log, if it helps, :


 (58s / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (59s / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (59s / 1min 30s)
[K[     [0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 1s / 1min 30s)
[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 1s / 1min 30s)
[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 2s / 1min 30s)
[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 2s / 1min 30s)
[K[[0;1;31m*[0m[0;31m*    [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 3s / 1min 30s)
[K[[0m[0;31m*     [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 3s / 1min 30s)
[K[[0;1;31m*[0m[0;31m*    [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 4s / 1min 30s)
[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 4s / 1min 30s)
[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 5s / 1min 30s)
[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 5s / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 6s / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 6s / 1min 30s)
[K[     [0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 7s / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 7s / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 8s / 1min 30s)
[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 8s / 1min 30s)
[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 9s / 1min 30s)
[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 9s / 1min 30s)
[K[[0;1;31m*[0m[0;31m*    [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 10s / 1min 30s)
[K[[0m[0;31m*     [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 10s / 1min 30s)
[K[[0;1;31m*[0m[0;31m*    [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 11s / 1min 30s)
[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 11s / 1min 30s)
[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 12s / 1min 30s)
[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 12s / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 13s / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 13s / 1min 30s)
[K[     [0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 14s / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 14s / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 15s / 1min 30s)
[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 15s / 1min 30s)
[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 16s / 1min 30s)
[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 16s / 1min 30s)
[K[[0;1;31m*[0m[0;31m*    [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 17s / 1min 30s)
[K[[0m[0;31m*     [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 17s / 1min 30s)
[K[[0;1;31m*[0m[0;31m*    [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 18s / 1min 30s)
[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 18s / 1min 30s)
[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 19s / 1min 30s)
[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 19s / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 20s / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 20s / 1min 30s)
[K[     [0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 21s / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 21s / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 22s / 1min 30s)
[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 22s / 1min 30s)
[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 23s / 1min 30s)
[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 23s / 1min 30s)
[K[[0;1;31m*[0m[0;31m*    [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 24s / 1min 30s)
[K[[0m[0;31m*     [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 24s / 1min 30s)
[K[[0;1;31m*[0m[0;31m*    [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 25s / 1min 30s)
[K[[0;31m*[0;1;31m*[0m[0;31m*   [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 25s / 1min 30s)
[K[ [0;31m*[0;1;31m*[0m[0;31m*  [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 26s / 1min 30s)
[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 26s / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 27s / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 27s / 1min 30s)
[K[     [0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 28s / 1min 30s)
[K[    [0;31m*[0;1;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 28s / 1min 30s)
[K[   [0;31m*[0;1;31m*[0m[0;31m*[0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 29s / 1min 30s)
[K[  [0;31m*[0;1;31m*[0m[0;31m* [0m] A start job is running for dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device (1min 29s / 1min 30s)
[K[[0;1;31m TIME [0m] Timed out waiting for device dev-disk-by\x2duuid-53918a78\x2d6726\x2d49bb\x2d9caa\x2d42c00b510369.device.
[0;1;33mDEPEND[0m] Dependency failed for Resume from hibernation using device /dev/disk/by-uuid/53918a78-6726-49bb-9caa-42c00b510369.
[0;32m  OK  [0m] Reached target Local File Systems (Pre).
         Starting File System Check on /dev/disk/by-uuid/4757e6a6-4dff-4a08-9187-6909019ce114...
[0;32m  OK  [0m] Reached target Local File Systems.
[0;32m  OK  [0m] Reached target System Initialization.
[0;32m  OK  [0m] Reached target Basic System.
[0;32m  OK  [0m] Started File System Check on /dev/disk/by-uuid/4757e6a6-4dff-4a08-9187-6909019ce114.
         Mounting /sysroot...
[0;32m  OK  [0m] Mounted /sysroot.
[0;32m  OK  [0m] Reached target Initrd Root File System.
         Starting Reload Configuration from the Real Root...
[0;32m  OK  [0m] Started Reload Configuration from the Real Root.
[0;32m  OK  [0m] Reached target Initrd File Systems.
[0;32m  OK  [0m] Reached target Initrd Default Target.
         Starting Cleaning Up and Shutting Down Daemons...
[0;32m  OK  [0m] Stopped target Timers.
[0;32m  OK  [0m] Stopped target Remote File Systems.
[0;32m  OK  [0m] Stopped target Remote File Systems (Pre).
         Starting Plymouth switch root service...
[0;32m  OK  [0m] Stopped dracut cmdline hook.
[0;32m  OK  [0m] Stopped Cleaning Up and Shutting Down Daemons.
[0;32m  OK  [0m] Stopped target Initrd Default Target.
[0;32m  OK  [0m] Stopped target Basic System.
[0;32m  OK  [0m] Stopped target System Initialization.
[0;32m  OK  [0m] Stopped target Local File Systems.
[0;32m  OK  [0m] Stopped target Local File Systems (Pre).
[0;32m  OK  [0m] Stopped Apply Kernel Variables.
[0;32m  OK  [0m] Stopped udev Coldplug all Devices.
[0;32m  OK  [0m] Stopped dracut pre-trigger hook.
         Stopping udev Kernel Device Manager...
[0;32m  OK  [0m] Stopped target Swap.
[0;32m  OK  [0m] Stopped Load Kernel Modules.
[0;32m  OK  [0m] Stopped target Sockets.
[0;32m  OK  [0m] Stopped target Paths.
[0;32m  OK  [0m] Stopped target Slices.
[0;32m  OK  [0m] Stopped udev Kernel Device Manager.
[0;32m  OK  [0m] Stopped Create Static Device Nodes in /dev.
[0;32m  OK  [0m] Stopped Create list of required static device nodes for the current kernel.
[0;32m  OK  [0m] Closed udev Control Socket.
[0;32m  OK  [0m] Closed udev Kernel Socket.
         Starting Cleanup udevd DB...
[0;32m  OK  [0m] Started Cleanup udevd DB.
[0;32m  OK  [0m] Reached target Switch Root.
[0;32m  OK  [0m] Started Plymouth switch root service.

The log above is only 1/4 of the actual log, because of the limitation of message line.