Score:1

Ubuntu upgrade to 22.04 with dual boot - Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

tt flag

I don't have enough reputation to answer any question, so I decided to create a new one to share a solution to my problem.

In my case, I have a dual boot with Windows 10 and Ubuntu. I did an automatic upgrade of my Kubuntu from 20.04 to 22.04. Once the process finished, I got the error "out of memory" error when loading initial ramdisk that leads to "Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)" when booting to my Kubuntu partition.

I followed this thread: Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) without success. They focused mainly in a messy upgrade process, but in fact my problem was with the ESP partition size that was not able to load initramfs. Luckily, my /etc/initramfs-tools/initramfs.conf was configured to load all the possible modules, so I modified the variable MODULES from most to dep following this thread: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1970402.

MODULES=dep 

Now, the error disappeared and I can boot normally. Is it possible that during the linux upgrade a new ESP was created? In fact, I created initially a ESP partition with more than 300MB when installing the dual-boot to have enough space. I should have performed manually the upgrade instead of relying on the automatic upgrade...

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.