Install Manjaro alongside Windows and Ubuntu 20.04

I tried to install Manjaro Gnome on a system with a Windows partition and an Ubuntu 20.04 partition.

I followed the tutorial on creating partitions - [HowTo] Dual-boot Manjaro - Windows 10 - Step by Step

Especially at this point -

  1. EFI PARTITION
    Select the unpartitioned space → Create
    a. Size → input 512
    b. Filesystem → select FAT32
    c. Mountpoint → select /boot/efi
    d. Flags → check bootOK
  2. SWAP PARTITION
    Select the unpartitioned space → Create
    a. Size → input 2048
    b. Filesystem → select linuxswapOK
  3. ROOT PARTITION
    Select the unpartitioned space → Create
    a. Size → input 20480 (min. recommended size)
    b. Filesystem → select ext4
    c. Mountpoint → select / (root) → OK

Now, at system startup, grub does not feature Ubuntu 20.04.

Previously, when I had Manjaro Xfce in dual-boot with Windows, when I installed Ubuntu 20.04, in grub, although Manjaro appeared, it gave dependency error e and does not start.
So I installed Manjaro Gnome on the Ubuntu partition, following the tutorial above and the problem remained.
After I instaled Ubuntu 20.04 and now Manjaro Gnome.

Now my question is -
If I install Manjaro Gnome again and, on the boot partition, change to ext2 and /boot and boot flag, I will be able to have all 3 systems?

(When I installed Ubuntu 20.04, on the boot partition I was only able to select ext2 /boot and boot flag. There was no /efi /boot option and the installer complained about the fat32 option and had to change to ext2).

1 Like

The guide is targeted UEFI

Did you follow the checklist


Always ensure you install all systems the same way.

  • If your system boots in BIOS mode - install in BIOS mode.
  • If your system boots in EFI mode - install in EFI mode.

Partitioning

  • In BIOS mode you can use MBR or GPT - using GPT requires a 8MB unformatted bios-grub partition
  • In EFI mode you must use GPT (requires EFI partition of 300MB formatted using FAT32)

So the last time, I used EFI mode.

So, what went wrong?

Before I use Manjaro Xfce in dual boot with Windows. No problem. I followed the tutorial.

Now I followed too, I have Manjaro, Windows, but not the third system.

Boot into your Manjaro and post the output of the following commands:

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS

sudo os-prober

sudo parted -l

sudo blkid

efibootmgr -v

Copy the terminal output as text, paste it in your reply and click the </> button to format.

[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
UEFI

sudo os-prober

/dev/sda12:Ubuntu 20.04 LTS (20.04):Ubuntu:linux
/dev/sda2@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi

sudo parted -l

Model: ATA TOSHIBA MQ01ABD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                  Sinalizador
 1      1049kB  1075MB  1074MB  ntfs            Basic data partition  escondida, diag
 2      1075MB  1180MB  105MB   fat32           Basic data partition  boot, esp
 3      1180MB  1314MB  134MB   ntfs            Basic data partition  msftres
 4      1314MB  424GB   422GB   ntfs            Basic data partition  msftdata
12      424GB   498GB   74,3GB  ext4
 5      498GB   499GB   975MB   ntfs                                  escondida, diag
 6      499GB   903GB   404GB   ntfs            Basic data partition  msftdata
 9      903GB   903GB   537MB   fat32                                 msftdata
10      903GB   905GB   2147MB  linux-swap(v1)                        swap
11      905GB   987GB   81,3GB  ext4
 7      987GB   987GB   480MB   ntfs                                  escondida, diag
 8      987GB   1000GB  13,2GB  ntfs            Basic data partition  escondida, diag

sudo blkid

/dev/sda1: LABEL="WinRE" BLOCK_SIZE="512" UUID="8A74A41874A40951" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="78e04b22-1076-4e36-b8b6-263767dbfe54"
/dev/sda2: LABEL="ESP" UUID="54A5-2C1D" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="Basic data partition" PARTUUID="97410e7c-0058-4b0f-81b1-56314a0ca1ad"
/dev/sda3: BLOCK_SIZE="512" UUID="86E0FBEEE0FBE27B" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="da647d65-f724-4004-a61c-ae7bb283c83b"
/dev/sda4: LABEL="Disco Local" BLOCK_SIZE="512" UUID="C2EEAF76EEAF6181" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="7d7e3d7e-c39c-4c44-9200-ed0437f3a167"
/dev/sda5: BLOCK_SIZE="512" UUID="E4442D54442D2B2E" TYPE="ntfs" PARTUUID="d24f4488-520b-4d8b-aa4b-04717d6c79e3"
/dev/sda6: LABEL="Disco Local" BLOCK_SIZE="512" UUID="BE923F5F923F1AFB" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="2dad7eff-ff79-4e30-b3fa-95b008c08224"
/dev/sda7: BLOCK_SIZE="512" UUID="6E30F94130F910B7" TYPE="ntfs" PARTUUID="73c48cb4-7d7c-4bac-9ad4-985bd6161dcb"
/dev/sda8: LABEL="Recovery" BLOCK_SIZE="512" UUID="4A10093510092991" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="db40dc9a-2bcf-4539-9191-6a719677cb58"
/dev/sda9: UUID="BC35-0777" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="17cd62bb-153e-3e43-ac7a-bd1983096d6d"
/dev/sda10: UUID="ae5267ee-1de8-45da-9fd2-2fdb892772da" TYPE="swap" PARTUUID="cc60f411-13fe-4261-9dce-d23c53ff794a"
/dev/sda11: UUID="37ca1ca6-9bfe-4cb3-b086-fb3f0f030b21" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="38dc4743-261b-46f3-b0ad-2437169e86d9"
/dev/sda12: UUID="fb259a29-6ddd-41ff-a1a3-c451bcc391cb" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="0ee33db1-e400-4bf8-85b5-84e5f154bc11"

efibootmgr -v

BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0006,0003,2003,2001,2002
Boot0001* Realtek PXE	PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(2c600c9e5af1,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0002* Realtek PXE	PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(2c600c9e5af1,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0003* Windows Boot Manager	HD(2,GPT,97410e7c-0058-4b0f-81b1-56314a0ca1ad,0x200800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0004* Manjaro	HD(9,GPT,17cd62bb-153e-3e43-ac7a-bd1983096d6d,0x69137800,0x100000)/File(\EFI\Manjaro\grubx64.efi)
Boot0006* ubuntu	HD(2,GPT,97410e7c-0058-4b0f-81b1-56314a0ca1ad,0x200800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC

To me it all looks as it should.

What does

sudo update-grub

say in Manjaro?

Run the command and see if it will add Ubuntu's boot entry to the Grub boot menu. It should do that, since:

sudo os-prober

dev/sda12:Ubuntu 20.04 LTS (20.04):Ubuntu:linux
/dev/sda2@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi

sudo update-grub

Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.6-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-5.6-x86_64.img
Found initrd fallback image: /boot/initramfs-5.6-x86_64-fallback.img
Found Ubuntu 20.04 LTS (20.04) on /dev/sda12
Found Windows Boot Manager on /dev/sda2@/efi/Microsoft/Boot/bootmgfw.efi
Found memtest86+ image: /boot/memtest86+/memtest.bin
done

I'll try now. Thank you, Marte!

1 Like

No. I restarted and the Ubuntu entry does not appear in grub.

This is an odd one! I don't really know why it isn't added to the menu while it is being captured by Manjaro's Grub.

To just make sure that your Ubuntu is bootable at all, boot up your Manjaro live usb and choose "detect efi bootloaders" on the boot screen. Search for an entry that should look like

HD(2,GPT,97410e7c-0058-4b0f-81b1-56314a0ca1ad,0x200800,0x32000)/File(\EFI\ubuntu\shimx64.efi)

more or less. See if you can boot Ubuntu from there.

I got this entries -
(hd2, gt2)/efi/ubuntu/grubx64.efi
(hd2, gt2)/efi/ubuntu/shimx64.efi
(hd2, gt2)/efi/ubuntu/mmx64,efi
The first two returned an error - no such device.
In particular, shimx64.efi returned - no such device - 063c338e-e59e-4a52-994c-6c21e7f557e4

The last, boot but nothing happened.

Looking above this topic -

efibootmgr -v

BootCurrent: 0004
Timeout: 0 seconds
BootOrder: 0004,0006,0003,2003,2001,2002
Boot0001* Realtek PXE	PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(2c600c9e5af1,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0002* Realtek PXE	PciRoot(0x0)/Pci(0x1c,0x3)/Pci(0x0,0x0)/MAC(2c600c9e5af1,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0003* Windows Boot Manager	HD(2,GPT,97410e7c-0058-4b0f-81b1-56314a0ca1ad,0x200800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0004* Manjaro	HD(9,GPT,17cd62bb-153e-3e43-ac7a-bd1983096d6d,0x69137800,0x100000)/File(\EFI\Manjaro\grubx64.efi)
Boot0006* ubuntu	HD(2,GPT,97410e7c-0058-4b0f-81b1-56314a0ca1ad,0x200800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
Boot2001* EFI USB Device	RC
Boot2002* EFI DVD/CDROM	RC
Boot2003* EFI Network	RC

Windows and Ubuntu have the same HD(2,GTP, number.. here??

If I am not mistaken, Ubuntu's installer -Ubiquity- picks the first EFI system partition on the disk as the place for installation of its bootloader. That one is the same as the Windows', that is /dev/sda2.

If you can consider a reinstallation of your Ubuntu, I would suggest one of the following alternatives:

  1. Install Ubuntu without bootloader:
  • Boot up your Ubuntu live usb
  • Mount /dev/sda2 in the file manager and remove the folder "ubuntu"
  • Open a terminal and launch the installer with the command line: ubiquity -b
  • Install on /dev/sda12 (where your current Ubuntu is)
  • When done, boot up your Manjaro and update grub
  1. Install Ubuntu with the bootloader on it's own EFI sysytem partition.
  • Boot up your Ubuntu live usb

  • Mount /dev/sda2 in the file manager and remove the folder "ubuntu"

  • Launch Gparted and remove the flags esp and boot from /dev/sda2

  • Still in Gparted delete /dev/sda12 (where your current Ubuntu is)

  • In the unallocated space create:

    1. 512 MB Fat32 partition flagged as boot,esp
    2. The rest of the space, an EXT4 formatted partition
  • Launch the installer, choose manual mode and use these new partitions for the installation of Ubuntu. Use /boot/efi as mountpoint for the Fat32 partition, always with the flags esp and boot. And / for the EXT4 partition

  • When done boot up Manjaro, launch Gparted and put back the flags esp and boot on /dev/sda2 and update grub

Thank you, Marte, for your time.

I prefer the first method, which seems simpler. I am afraid of losing the Windows partition, as I need it for work.

Previously, when I had Manjaro Xfce in dual-boot with Windows, when I installed Ubuntu 20.04, in grub, although Manjaro appeared, it gave dependency error e and does not start.

Alright, try the first method first. I hope ubiquity -b still works. It was quite a while ago that I used it to install Ubuntu. Anyway try it.

You won't be loosing your Windows as long as you are careful with Gparted and don't delete/format /dev/sda2. Just removing the flags is a temporary measure to "fool" Ubiqity to install the bootloader to another EFI system partition.

At any rate, do as you feel comfortable and take caution anyway when picking what partiton to instal on.

Keep my fingers crossed!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by