Skip to content

26 comments

There are many possible causes but honestly i would just chroot and reinstall the kernel. If that doesn't work install an older kernel. If that fails then i would dig into it a bit more but chroot is fast and easy so it's always worth a try.

38 points

Was /boot mounted when you installed the kernel?

16 points

If /boot wasn't mounted then no new kernel would have been installed

-8 points

Yes it would, it would've installed on / partition under the folder /boot. Then when starting through grub it will use the /boot partition with the old initramfs and when fstab is invoked it will unmount this partition. Though it shouldn't cause a kernelpanic just not being able to load any kernelmodules...

12 points

Which bootloader are you using?

13 points

Grub. In response to everyone, the Internet says this is because my initramfs is missing. No one has said this, is it right? How could that happen?

Edit: So I just saw this and remembered that although I do have an AMD cpu, intel-ucode was installed, and seeing that, I removed it because I thought it was a mistake. Could that be the issue? How do I fix it?

6 points

Do you know your boot partition? If you do, you can try to manually boot from grub terminal. You can check which partition has the kernel and initrd by using ls (hd0, partition_number) Then write the following commads

root=/dev/sda<partition_number>

initrd (hd0, partition_number)/initrd.img

boot

Suppose your boot partition is number 1. Then the commands will go

root=/dev/sda1

initrd (hd0, 1)/initrd.img

boot

3 points

I had this problem because a problem in the /lib64 folder that made the initramfs fail. Just chroot reinstall the kernel and try to find the problem. I am sure that the Intel ucode is not the problem

2 points

As already stated, there can be several reasons. You really need to give more information to solve this (if any of the tips already given didn't work).

Only thing we know from the error message, is that the Kernel can not mount root. This could be cause by (by no means conclusive list): 1) boot loader misconfiguration, 2) missing initramfs (providing initramfs has modules your kernel needs to mount root), 3) corrupted filesystem on root or 4) broken hard disk (or other hw)

I'd try to boot manually from grub, but to do that you need to be familiar with it's command line syntax - it is impossible to give universal step-by-step instructions.

Use some live-linux (usb-bootable arch will do fine), check with parted that your hds and partitons are still there, run fsck, and THEN chroot and re-install kernel. Check grub configuration before reboot, there's a chance it misdetects something.

1 points

Clearly grub can find and boot your kernel, since you're making it this far.

I'm guessing your initramfs isn't set up correctly, since it should be responsible for mounting your root filesystem rather than the kernel doing so directly.

Boot from an Arch ISO, mount your rootfs and boot partitions, arch-chroot into your install, rebuild your initramfs with mkinitcpio -P, and refresh your grub config with grub-mkconfig -o /boot/grub/grub.cfg.

8 points

I've got a similar kernel panic when I accidentally deleted my initcpio file in /boot. This seems likely

1 points

Yeah, on the current Arch kernel config, basically all filesystems are modules, including ext4 and FAT. This guarantees an "unable to mount root" panic without an initramfs.

3 points

Worked perfectly, thanks for getting me through my first major issue with arch!

1 points

Yikes. There's a ton of possibilities for why it did that. I would try to boot using the LTS kernel and fall back to an older version.

6 points

Hi, I'm having the same problem after updating to latest kernel.

I'm using systemd-boot and the logs it's giving me are less helpful:

EFI stub: ERROR: Failed to read file
Trying to load files to higher address
EFI stub: ERROR: Failed to read file
3 points

Okay, I solve my issues, for me the /boot partition is mounting as read-only which I don't understand because I clearly have rw in my fstab, so I boot in a usb recovery with arch in it, mounted the /boot manually and rebuild the initramfs. I dual boot with Windows so probably different from OP's problem.

Fun fact: I googled the error and the second result was a blog post I wrote 2 months ago when I had more or less the same issue.....

Thanks and I hope this help someone out there.

6 points

Looks like you're using wrong rootfs for the kernel you're loading. Look for the rootfs corresponding to your kernel or boot with a different kernel if you have one.

1 points

also try fixing the filesystem with fsck -fy from eg. a live usb, it helps if it can’t mount file systems because they are corrupted. At least that’s the first thing i do when i get such an error....

Correct me if I’m wrong but it might help

1 points

Try setting the root parameter in GRUB to the device node (e.g. /dev/sda1) instead of the UUID and see if that'll let you boot. I've had GRUB configure an incorrect UUID before (which caused the same KP you're hitting), and I compile my own kernels.

0 points
unknown author

Deleted before we saved it.

-2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.