Fresh Install of Manjaro 20 Gnome Kernel Panic Solved

Alexzee

Well-Known Member
Joined
Jun 1, 2019
Messages
3,681
Reaction score
1,963
Credits
21,897
I just performed a fresh installation of Manjaro 20 Gnome and I've got the dreeded:
Kernel panic - not syncing VFS: Unable to mount root fs.

I found a temporary fix by editing the kernel line by pressing 'e' at the grub menu and removing the intel-ucode.img and replacing it with /initrd /boot/initramfs-(manjaro's kernel image) -x86_64.img.

Anyone know how I can permanently fix this so I don't have to keep editing the kernel line?
 


Sudo update-grub
I tried that and rebooted. That didn't work.
Upon reboot I still have 'kernel panic'.
So I rebooted again and pressed 'e' to edit the kernel line hit F10 and was able to boot into Manjaro.

What grub config file do I have to edit to make the kernel line permanent?
 
Here's a pic of the kernel line that I have to keep editing every time I boot my pc.

See where it says initrd /boot/initramfs-5.6-x86_64.img--
I have to keep typing in by backspacing over the words " intel-ucode.img" in order for Manjaro to boot.

0428201803.jpg
 
You may edit the /etc/default/grub file and then do sudo grub-mkconfig - o /boot/grub/grub.cfg
 
won't work, peer, sorry

sudo grub-mkconfig - o /boot/grub/grub.cfg

and

sudo update-grub

are effectively one and the same

update-grub is simply a stub (like a shortcut) for the full command.

alex - it is fundamentally a part of manjaro that they load intel-ucode before they load initrd/initramfs, and that can cause problems with other distros, but usually in a dual-boot or multi-boot situation.

i have 20 GNOME on board, but it was originally one of the 17's or 18's and has just rolled to 20, may be a little different.

i'm running updates and timeshift on elementary juno now, but when finished can look further into it.

questions

1. are you running any other OSes on that rig, if so, which?

2. what is your communication line to us, another pc or other means?

chris
 
won't work, peer, sorry

sudo grub-mkconfig - o /boot/grub/grub.cfg

and

sudo update-grub

are effectively one and the same

update-grub is simply a stub (like a shortcut) for the full command.

alex - it is fundamentally a part of manjaro that they load intel-ucode before they load initrd/initramfs, and that can cause problems with other distros, but usually in a dual-boot or multi-boot situation.

i have 20 GNOME on board, but it was originally one of the 17's or 18's and has just rolled to 20, may be a little different.

i'm running updates and timeshift on elementary juno now, but when finished can look further into it.

questions

1. are you running any other OSes on that rig, if so, which?

2. what is your communication line to us, another pc or other means?

chris
Yes I'm running 2 other distro's on this rig.
I've got Linux Mint 19.3 XFCE on the nvme and Debian 10 Buster Mate on the 1 TB Seagate.

Manjaro is installed to my 500 GB WD.

I use this rig to chat with you here at Linux.org.
 
i'm just going to slip into my Manjaro GNOME for a reference point, run updates and a Timeshift snapshot and i'll be back, plus i can hear my girl stirring so have to buy her a cuppa tea so she is not a linux widow.

but if you had Buster and Tricia on first and then added MJRO, i can likely fast-track us.

which has the primary partition, that is, top of the grub menu?

chris
 
Last edited:
i'm just going to slip into my Manjaro GNOME for a reference point, run updates and a Timeshift snapshot and i'll be back, plus i can hear my girl stirring so have to buy her a cuppa tea so she is not a linux widow.

but if you had Buster and Tricia on first and then added MJRO, i can likely fast-track us.

which has the primary partition, that is, top of the grub menu?

chris
Linux Mint has the boot as it's at the top of the grub menu.
 
Last edited by a moderator:
Mint and Debian have been running great for the last several months.
Parrot became unstable so I installed Manjaro.

Is it just me or this is a fight over which distro has the top priority over the grub bootloader?

bb later gotta fire up the grill:-
 
@wizard,

Is editing the /boot/grub/grub.cfg file a bad idea?
 
...this is a fight over which distro has the top priority over the grub bootloader?

it would seem that way, like a pissing match, but it has been that way for years.

Is editing the /boot/grub/grub.cfg file a bad idea?

yes and no, ie how long is a piece of string? :)

up to 4 - 5 years ago, we could not even edit it, and a legacy of that is that

DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub

... is at the top

more in a minute or two

wiz
 
This might prove useful reading, https://linux.org/threads/manjaro-k...tips-for-arch-based-distros.19795/#post-58697

... was covering this issue with @Jeffrey Lapinski a bit over 18 months ago.

i think i called the application of a

custom.cfg

a fix where it is really a workaround. as is the arcolinux method.

nothing wrong with a workaround :), but the only real fix will be when the arch-based distros get their act together to share the top of the leaderboard.

as well as Arcolinux, there are a number of Arch-based distros that share this problem.

Archman, a Turkish offering, does not.

Manjaro have

[chris@MJRO-GNOME-HDD ~]$ sudo update-grub
[sudo] password for chris:
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
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

.... whereas

Archman has no problem, because

[chris@ArchmanXfce-SSD ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg
[sudo] password for chris:
Generating grub configuration file ...
Found background: /home/chris/Pictures/archman-manyas1.png
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: initramfs-linux-fallback.img
Found Debian GNU/Linux 10 (buster) on /dev/sda10
...


noticeably absent is the ubiquitous intel-ucode microcode reference

Manjaro Forum have this

https://forum.manjaro.org/t/it-is-safe-to-delete-the-microcode/59729/3

and that is worth reading from top to bottom, even though its OP is focussed on overclocking.

Manjaro Forum's Goh Lip is the venerable fellow i got the custom.cfg tip from a few years ago.

so i will be back with more, but for the moment, we can look at the Arcolinux option, and the custom.cfg option.

with the custom.cfg option, it is simply a case of adding the file into /boot/grub for each of Buster and Tricia Xfce - no need to update grub, the lines will appear.

then there is a 3rd option, and i will briefly describe that too.

wiz
 
Last edited:
I read the thread with Jeffery Lapinski and that was good information so thank you for that.
I'm not so sure I fully understand how to create the custom.cfg.
I'll have to read the thread again and decide if that's what I want to do:-

You said:
but the only real fix will be when the arch-based distros get their act together to share the top of the leaderboard.
I completely agree:-


then there is a 3rd option, and i will briefly describe that too.

Thanks Wizard-
I'll wait to read about the 3rd option and make a decision from there.
 
Last edited:
Trying to fix Manjaro isn't something I really want too pursue now. However; I've got a plan-

If I install Manjaro on my Sony Vaio it will be the only distro on the machine.
This way there won't be any war over the bootloader.
End of story:-:cool:
 
hang on asecond if you haven't blown manjaro away
 
create a file called custom.cfg, in your /boot/grub beside grub.cfg on tricia GNOME

its only content is (substitute your own UUID from that screenshot, you can get it from gparted or blkid)

Code:
menuentry "Manjaro GNOME - configfile "  {
    insmod part_gpt
    part part_msdos
    insmod ext2
    search --no-floppy  --fs-uuid --set=root 58c5f278-e6b9-49cc-ab90-e100261da3c2
    configfile /boot/grub/grub.cfg
}

SAVE the file and reboot, you'll see the entry and it opens a new menu to manjaro

wiz
 
create a file called custom.cfg, in your /boot/grub beside grub.cfg on tricia GNOME

its only content is (substitute your own UUID from that screenshot, you can get it from gparted or blkid)

Code:
menuentry "Manjaro GNOME - configfile "  {
    insmod part_gpt
    part part_msdos
    insmod ext2
    search --no-floppy  --fs-uuid --set=root 58c5f278-e6b9-49cc-ab90-e100261da3c2
    configfile /boot/grub/grub.cfg
}

SAVE the file and reboot, you'll see the entry and it opens a new menu to manjaro

wiz

I found and wrote down the uuid from blkid so that's done.

I know how to create a file but I don't understand how to place it in the /boot/grub besides grub.cfg.
Can you explain how to do it another way? Please-
 
Last edited:
say you write it in home, so it's something like

/home/alex/custom.cfg

then

Code:
sudo mv custom.cfg /boot/grub

check your file manager, Thunar in Xfce, and you'll see it there.

reboot the computer and bob's your uncle

if you like the outcome, repeat the process in Buster, that way, whichever of the two is head of the leaderboard, manjaro boots.

i'll show you a couple of pix of my setup, but don't wait up for them.

cheers

wiz
 


Latest posts

Top