Black screen after installing a second distro

You used the wrong command I guess

grub> search.file /etc/manjaro-release  root
grub> configfile /boot/grub/grub.cfg

@ZakiMate: check your boot entry of the ubuntu-grub by selection and pressing E instead of enter. Then check the line of initrd and see if you have intel-ucode.img only there. If so, exchange it for the kernel image. For Linux414 it would be: initrd /boot/initramfs-4.14-x86_64.img. With CTRL+X you may boot. Then if you're back in Manjaro, decide either to remove the package intel-ucode or reinstall grub of Manjaro.

It should have been

grub> search.file /intel-ucode.img

if you have separate boot. If not then

grub> search.file /boot/intel-ucode.img

Instead of an error, it just gives me back the command prompt.

Read the tutorial, please, if you want to save yourself from an un-needed re-install

@AgentS: I assume you mean this tutorial ...

1 Like

Do I over-promote it? :grin:
I think it is worth the advertisement!!!

Absolutely worth it, because with that / your help and philm's explanation, I can finally get a grasp of what happened. So basically: Ubuntu has overwritten the Manjaro bootloader with an older version of Grub that doesn't support that microcode-magic. By the way, I'm logged in (removing the ucode bit, and adding the kernel) hopefully now I can reinstall grub. Thank you guys!! I'll keep you updated.

Not exactly..
This would have been the case in an MBR/BIOS legacy system.
In (your) UEFI system, the system, after a big reset Ubuntu installation, deleted or overwrote the Manjaro boot entry.
This needs to be re-created and verified again.

efibootmgr -v
sudo parted -l
sudo blkid
findmnt -s
findmnt /boot/efi

and post the outputs in proper tagging, as explained here, so you/we see what is the situation and do what needs to be done.

Edited: I remembered another Topic, sorry

I'm looking forward to grub 2.04 which includes the needed bits. Arch, Gentoo and some other distros already patched the needed changes.

1 Like

Heh, there are same leftover boot entries.

[mate-desktop mate]# efibootmgr -v
BootCurrent: 0008
Timeout: 1 seconds
BootOrder: 0002,0004,0008,0000,0003,0001
Boot0000* Windows Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)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.}..._................
Boot0001* Salix-Xfce-14.2	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0002* ubuntu	HD(1,GPT,d3b3e017-b235-4acb-8dde-410a896e3554,0x1001,0x96001)/File(\EFI\ubuntu\shimx64.efi)
Boot0003* Linux Boot Manager	VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0004* ubuntu	HD(1,GPT,d3b3e017-b235-4acb-8dde-410a896e3554,0x1001,0x96001)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0008* UEFI OS	HD(1,GPT,d3b3e017-b235-4acb-8dde-410a896e3554,0x1001,0x96001)/File(\EFI\BOOT\BOOTX64.EFI)..BO
[mate-desktop mate]# parted -l
Model: ATA SanDisk Ultra II (scsi)
Disk /dev/sda: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system     Name  Flags
 1      2098kB  317MB  315MB   fat32                 boot, esp
 2      317MB   231GB  230GB   ext4
 3      231GB   240GB  9449MB  linux-swap(v1)

Model: ATA Corsair Force LE (scsi)
Disk /dev/sdb: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End    Size    File system     Name  Flags
 1      1049kB  512MB  511MB   fat32                 boot, esp
 2      512MB   231GB  230GB   ext4
 3      231GB   240GB  9299MB  linux-swap(v1)

Model: Unknown (unknown)
Disk /dev/nvme0n1: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

[mate-desktop mate]# blkid
/dev/nvme0n1: PTUUID="bf8256b5-599e-4024-a168-d8145dc8e5c8" PTTYPE="gpt"
/dev/sda1: UUID="9E62-DA78" TYPE="vfat" PARTUUID="d3b3e017-b235-4acb-8dde-410a896e3554"
/dev/sda2: UUID="62e366bd-4836-4c70-81d8-e7ef21f900d0" TYPE="ext4" PARTUUID="bb52af90-d544-4782-9236-43ed679ac264"
/dev/sda3: UUID="9005b31f-3ee2-4c51-afb0-8b46be774b54" TYPE="swap" PARTUUID="a1bc1b04-798c-46f0-bfd0-130df9f17ccc"
/dev/sdb1: UUID="C8F2-EFBC" TYPE="vfat" PARTUUID="548eb524-66b3-4d8e-927d-8d5432ccb662"
/dev/sdb2: UUID="eef6fc5c-1650-4c62-baee-b64a88f0ecdc" TYPE="ext4" PARTUUID="19dc7046-3242-428f-b5ec-c61b645025e0"
/dev/sdb3: UUID="88d65782-d18f-494d-aa11-8631318c0318" TYPE="swap" PARTUUID="fe156828-636c-478c-aa6d-1bc07233ef65"
[mate-desktop mate]# findmnt -s
TARGET    SOURCE                                    FSTYPE OPTIONS
/boot/efi UUID=9E62-DA78                            vfat   defaults,noatime
/         UUID=62e366bd-4836-4c70-81d8-e7ef21f900d0 ext4   defaults,noatime,discard
swap      UUID=9005b31f-3ee2-4c51-afb0-8b46be774b54 swap   defaults,noatime,discard
/tmp      tmpfs                                     tmpfs  defaults,noatime,mode=1777
[mate-desktop mate]# findmnt /boot/efi
/boot/efi /dev/sda1 vfat   rw,noatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
[mate-desktop mate]# inxi -Fxxxz
System:    Host: mate-desktop Kernel: 4.14.56-1-MANJARO x86_64 bits: 64 compiler: gcc v: 8.1.1 
           Desktop: Cinnamon 3.8.8 dm: lightdm 1.26.0 Distro: Manjaro Linux 
Machine:   Type: Desktop System: Gigabyte product: Z370N WIFI v: N/A serial: N/A 
           Mobo: Gigabyte model: Z370N WIFI-CF v: x.x serial: N/A UEFI: American Megatrends v: F2 
           date: 11/09/2017 
CPU:       Topology: Quad Core model: Intel Core i3-8100 bits: 64 type: MCP arch: Skylake rev: B 
           L2 cache: 6144 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 28808 
           Speed: 800 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 1039 2: 854 3: 2277 4: 1677 
Graphics:  Card-1: Intel 8th Gen Core Processor Gaussian Mixture Model vendor: Gigabyte driver: i915 v: kernel 
           bus ID: 00:02.0 chip ID: 8086:3e91 
           Display: x11 server: X.Org 1.19.6 driver: intel unloaded: modesetting alternate: fbdev,vesa tty: N/A 
           OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3x8 GT2) v: 4.5 Mesa 18.1.4 
           compat-v: 3.0 direct render: Yes 
Audio:     Card-1: Intel 200 Series PCH HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:a2f0 
           Sound Server: ALSA v: k4.14.56-1-MANJARO 
Network:   Card-1: Intel Ethernet I219-V driver: e1000e v: 3.2.6-k port: N/A bus ID: 00:1f.6 chip ID: 8086:15b8 
           IF: enp0s31f6 state: up speed: 100 Mbps duplex: full mac: <filter> 
           Card-2: Intel I211 Gigabit Network driver: igb v: 5.4.0-k port: e000 bus ID: 05:00 
           chip ID: 8086:1539 
           IF: enp5s0 state: down mac: <filter> 
           Card-3: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel bus ID: 06:00 chip ID: 8086:24fd 
           IF: wlp6s0 state: down mac: <filter> 
Drives:    Local Storage: total: 670.71 GiB used: 5.34 GiB (0.8%) 
           ID-1: /dev/nvme0n1 model: Force MP500 size: 223.57 GiB speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           rev: E7FM02.1 scheme: GPT 
           ID-2: /dev/sda vendor: SanDisk model: Ultra II 240GB size: 223.57 GiB speed: 6.0 Gb/s 
           serial: <filter> rev: 00RL scheme: GPT 
           ID-3: /dev/sdb vendor: Corsair model: Force LE200 SSD size: 223.57 GiB speed: 6.0 Gb/s 
           serial: <filter> rev: 61.0 scheme: GPT 
Partition: ID-1: / size: 210.11 GiB used: 5.33 GiB (2.5%) fs: ext4 dev: /dev/sda2 
           ID-2: swap-1 size: 8.80 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda3 
Sensors:   System Temperatures: cpu: 40.0 C mobo: 27.8 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 183 Uptime: 24m Memory: 7.68 GiB used: 921.6 MiB (11.7%) Init: systemd v: 239 Compilers: 
           gcc: 8.1.1 Shell: bash (su) v: 4.4.23 running in: gnome-terminal inxi: 3.0.18 

So where is Manjaro installed?
I guess on sdb (1 = /boot/efi, 2 = /)
Post your Manjaro fstab, please. Mount your Manjaro partition and get /etc/fstab, so we know the partitions in use.

Edit: Also, check the contents of /dev/sdb1 , supposed to be /boot/efi partition. Does it include the proper folders and files? It didn't show up in the commands (findmnt)

/dev/sda1 is the EFI partition, it's got 2 directories (EFI, grub), and a bunch of files.
/dev/sda2 is the file system
/dev/sda3 is a swap partition
The nvme is empty, and Ubuntu is on sdb.
Also fstab:

# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=9E62-DA78                            /boot/efi      vfat    defaults,noatime 0 2
UUID=62e366bd-4836-4c70-81d8-e7ef21f900d0 /              ext4    defaults,noatime,discard 0 1
UUID=9005b31f-3ee2-4c51-afb0-8b46be774b54 swap           swap    defaults,noatime,discard 0 2
tmpfs                                     /tmp           tmpfs   defaults,noatime,mode=1777 0 0

Your Manjaro boot option is deleted.
Mount manjaro partitions and create a new boot option

mkdir -p /mnt/mjr
mkdir -p /mnt/mjr/boot/efi
mount /dev/sda2 /mnt/mjr
mount /dev/sda1 /mnt/mjr/boot/efi
cp /mnt/mjr/boot/grub/x86_64-efi/core.efi /mnt/mjr/boot/efi/EFI/boot/bootx64.efi efibootmgr -c -d /dev/sda -p 1 -L "Manjaro" -l "\EFI\Manjaro\grubx64.efi"

Check results and post

efibootmgr -v

Edit: All above commands need root permissions. If in su, all is fine.
These would be better done (not subjectively) from a Manjaro ISO boot. It should work from Ubuntu too.

@AgentS, OP is already booted into Manjaro (and he should say that) when he finally provided data in post number 33.
as shown below..

findmnt -s

/boot/efi UUID=9E62-DA78 vfat defaults,noatime
/ UUID=62e366bd-48

He just needs to do step 6 while booted into Manjaro

sudo grub-install 
sudo update-grub
sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
sudo efibootmgr -c -d /dev/sda -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"

that is if he says correctly (he himself may get it wrong) manjaro is in sda and ubuntu is in sdb

And he needs to provide

Maybe he has a tied-in (microsoft slave) vendor.

[edit] - damn, can't use quote for the parenthesis (") (") ('...."), can't use quotes, must use codes.

This solved the problem

sudo grub-install 
sudo update-grub
sudo cp /boot/grub/x86_64-efi/core.efi /boot/efi/EFI/boot/bootx64.efi
sudo efibootmgr -c -d /dev/sda -p 1 -L "manjaro" -l "\EFI\Manjaro\grubx64.efi"

Thank you all. It's up and running again.
I'm going to read those instructions a few more times and get familiar with this efi boot thing, because it's a "tiny bit" more complicated than bios with mbr a few years ago...
Also, does anyone know why all those old uefi entries showed up with "efibootmgr -v"? I can't see them in the boot menu, just empty spaces.

Zaki, Start a new topic.
Hopefully, @AgentS will again answer you.
But please... please follow instructions /commands.
If you do not understand ... But I think the link is very clear.
Right, petsam?

1 Like

You can delete them (after you are done with your main issue).

efibootmgr -b 0001 -B

Before that, you have to check the current order numbers

Help is your friend

<command> --help

Thanks again, for the patience too! :smiley:

1 Like

This topic was automatically closed after 180 days. New replies are no longer allowed.

Forum kindly sponsored by