#kernel panic, cant mount root

35 messages · Page 1 of 1 (latest)

tawdry whale
#

its the 1st time the kernel panicked at me,
i need to know is there ANYTHING i can do without reinstalling the system, because I dont have a usb rn and i need my laptop as soon as possible

little info:
it panicked after i updated it and installed power-profile-daemon package

dawn granite
#

Doesn't look amazing. Of course try rebooting first to make sure this issue persists. On the second screen it appears your initramfs files are missing, which is bad. Initramfs is loaded early in the boot process and it being broken is most likely the cause of the panic. I'm not sure how to fix it without a live usb to repair files or reinstall.

tawdry whale
#

maybe grub shell will help?

#

but it seems its only useful to install grub themes

dawn granite
#

I don't think grub will help. You will most likely have to regenerate initramfs which is only possible from a system or live usb. Not sure how power-profiles-daemon or a system update could cause this. Just to make sure you did a full system upgrade sudo pacman -Syu?

dawn granite
#

Grub shell might be helpful in making sure you do or do not in fact have an initramfs image. In shell do ls to see what volumes there are

tawdry whale
dawn granite
#

Ok so those are the volumes you have in your system. Perform ls (hd0,gpt1) and ls (hd0,gpt2). You are looking for a /boot partition

tawdry whale
dawn granite
#

Oh mb try adding a slash afterwards ls (hd0,gpt1)/

#

That one looks like boot as it is fat filesystem type

tawdry whale
dawn granite
#

ok now check /boot with ls (hd0,gpt1)/boot/

tawdry whale
#

its on gpt2 but seems empty

dawn granite
#

Yeah thats a big yikes. No initramfs at all. You'd have to boot a live iso and regenerate then from there. Or do a clean install. Grub shell itself can't help with that, sorry.

inner bear
#

It'd be worth regenerating the initramfs from an iso, first

tawdry whale
inner bear
#

No need to reinstall because a system isn't booting. That's like scrapping your car because it has a flat tyre

tawdry whale
#

and maybe connect it to my phone because this laptop doesnt have an cd reader

inner bear
dawn granite
tawdry whale
#

theres kernel panic report if it can help finding out what made boot partition empty

dawn granite
#

It all appears normal until it panics because it can't find/mount initramfs.

tawdry whale
#

i wish i installed a second os

dawn granite
#

Yeah 🙁 You should always have a second arch usb or window usb that you can boot/install from. I always cary extras becuase mistakes happen

#

Sometimes its not even your fault. It just breaks cuz why not

inner bear
#

I've seen that panic in 4 situations;

  • The kernel has been built without compatibility with the filesystem - the arch kernel is built with modules for pretty much every FS, so it wont be this
  • The initramfs has not been built with the tools needed to mount the filesystem - unlikely, mkinitcpio is pretty smart (unless you've been messing with it)
  • The initramfs is broken somehow - entirely possible, especially if the mkinitcpio call in pacman was interrupted
  • The UUID being passed to the kernel via the commandline is wrong - depending on how you set this up, probably most likely if you typed any of that UUID in manually (it needs to match perfectly)
dawn granite
inner bear
#

Pretty much

tawdry whale
#

ok never mind