Tried to change kernel 4.13

OK i did that. Now i have a kernel panic with other commands in it.

Does msm can update Ubuntu’s grub?


It seems in the end, manjaro does not like to be grubbed from other system. It needs to use its own grub

Ok, so just to clarify once again, did you use Ubuntu’s grub to load Manjaro before (after you did some tweaking in order to be able to), or Manjaro’s own grub?

Ubuntu’s grub is default as the main grub yes

And could you successfully load Manjaro from it before?

yes. before i tried to switch the kernel to 4.13. when it was on kernel 4.9 it booted in from the start

That’s strange because by default another distro’s grub shouldn’t be able to load Manjaro unless you do some tweaking manually.

Anyway, there is a tutorial you could try and tell us if it didn’t work

1 Like

I have used that guide before that guide is flawless. :slight_smile:

So your saying i shouldn’t have been using Ubuntu’s grub anyway. The only reason why i wanted to use it becuase of solus OS. because i was on Arch before and it wouldn’t boot with solus. I think you needed Ubuntu based grub.

i didn’t really want to use Arch main grub screen. but idk

Manjaro (inherited from Arch) loads the intel microcode image separate from the kernel, thus the grub config is different. Other grubs don’t take this into account, thus kernel panics happen when attempting to boot Manjaro from other grubs.

Manjaro grub…

$ sudo cat /boot/grub/grub.cfg | grep ucode

        initrd  /boot/intel-ucode.img /boot/initramfs-4.13-x86_64.img
                initrd  /boot/intel-ucode.img /boot/initramfs-4.13-x86_64.img
                initrd  /boot/intel-ucode.img /boot/initramfs-4.13-x86_64-fallback.img
                initrd  /boot/intel-ucode.img /boot/initramfs-4.9-x86_64.img
                initrd  /boot/intel-ucode.img /boot/initramfs-4.9-x86_64-fallback.img

3 Likes

You could make Manjaro’s grub your main grub, because it can load other distros, just not the other way around.
Or you can make your Ubuntu’s grub to be able to load Manjaro - there is a link how to do that at the end of the above tutorial.

If you don’t want to do any tweaking and changing and you are on UEFI, there is a shortcut key that takes you to your efibootmanager’s screen where you can choose at each boot which grub to use.

How do i do that.? That link you gave me will only give you the manjaro grub screen back…

Depends on your installation setup.

test -d /sys/firmware/efi && echo UEFI || echo BIOS
lsblk
sudo parted -l

What distros / OSes are installed on which partitions?

This is one way…
There are other ways too.

Don’t mind me much. I don’t have anything to add to this discussion. Just dealing with a pet peeve of mine: i.e. don’t pipe grep with cat. grep will read your file if you pass it as an argument. See man grep.

$ sudo grep ucode /boot/grub/grub.cfg
3 Likes

what does that command do?

Also i should note that i’m using Legacy Boot Not UEFI

Disk /dev/loop0: 81.4 MiB, 85385216 bytes, 166768 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/loop1: 81.4 MiB, 85348352 bytes, 166696 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x5b39687b

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 523546623 523544576 249.7G 83 Linux
/dev/sda2 523546624 941099007 417552384 199.1G 83 Linux
/dev/sda3 941099008 1953523711 1012424704 482.8G 83 Linux

Manjaro is on /dev/sda3

At Ubuntu terminal, create custom.cfg

sudo touch /boot/grub/custom.cfg

Open up the file and put in the the entry as follows. Save file. Done.

menuentry "Manjaro Configfile " {
    part part_msdos
    insmod ext2
    search --no-floppy --fs-uuid --set=root xxxxxxxxxxxxxxxxxx
    configfile /boot/grub/grub.cfg
}

where xxxxxxxxxxxxxxxx is your Manjaro uuid.
Entry will appear at bottom of Ubuntu grub menu.

No need to ‘update-grub’ and entry won’t appear in ‘update-grub’ or os-prober.
Any change of kernel, grub in either Ubuntu or Manjaro will not need any edit in either OS.

1 Like

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

Forum kindly sponsored by Bytemark