As of a few days ago I noticed my computer would at times lose its ability to connect to the Internet – often still indicating it was connected, just not actually connected in practice – and this was often accompanied by Firefox freezing, trouble shutting down, or failure to restart. The last time it happened, maybe an hour ago, I decided that the problem was severe enough to warrant me using Timeshift. And so I backed up all my files; tried looking up whether Timeshift was safe; and then bit the bullet and did the thing. But then Timeshift seemed to get stuck rebooting, so I looked up whether it was safe to do a hard shutdown, and it seemed to be, so I did it.

Tried to turn on my computer again and I was met with a screen reading “KERNEL PANIC! Please reboot your computer. VFS: Unable to mount root fs on unknown-block(0,0)”

Cursed a lot; messaged some friends about it but have only gotten read receipts and consolation; all I can think to do now is use my months-old live USB and just reinstall everything. Is there anything else I can do?

I’m just so pissed off about this, I swear.

Edit: I selected recovery mode from the bootloader and that fixed it. We are Back Baby!!

Edit 2: From what these comments are saying I guess things aren’t quite so straightforward. I have no-one to blame but myself. Saiaku.

Edit 3: Looks like it wasn’t the fact that I used recovery mode that let me start my computer like normally, but the fact that I chose the bottom option from the “advanced settings” list.

  • Do you have a grub boot menu with options? If there is “Advanced options for Linux Mint” (or maybe it says Ubuntu?) you can try booting into a different kernel or recovery mode. If there isn’t I’m not sure what to do.

    Very sorry for you that this is happening. As much as it is the “Year of the Linux desktop” it isn’t without problems.


    This user is suspected of being a cat. Please report any suspicious behavior.

      • Yeah, I searched up the error, and it might be that initramfs is missing.

        I would love to tell you what the exact correct next step is but I’m not entirely sure. Maybe dpkg --configure -a, maybe checking to make sure /boot isn’t full. But that’s if your system isn’t completely borked from the timeshift.


        This user is suspected of being a cat. Please report any suspicious behavior.

          • PorkrollPosadist [he/him, they/them]@hexbear.net
            link
            fedilink
            English
            arrow-up
            6
            ·
            edit-2
            2 months ago

            “Recovery mode” is akin to Windows’s “Safe Mode,” (though exactly what it does depends on the distro). It will attempt to boot the OS with most non-essential features disabled (potentially including networking, graphics, and multi-user mode). It doesn’t do anything to automatically diagnose or repair problems. It’s more of a Hail Mary to get a (one) working terminal so you can diagnose and repair the problem yourself without needing to fetch another computer to flash a bootable USB.

            Many distros also keep the previous 1-3 kernel versions around to try if the most recent one doesn’t boot. These options will usually be labeled “fallback” and have a lower version number. These options should boot normally (with full functionality), assuming there are no other problems, but the oldest one will be removed each time a new one is installed, so this is not a permanent solution either.

            I’m not exactly sure what the root cause is here, but like others mentioned, non-specific random problems like this often indicate a hardware issue. Random delays in completely unrelated software like this can be triggered by disk IO blocking, which could be a hardware thing or (disk) memory exhaustion. Could also be filesystem corruption, though this is exceedingly rare with “modern” (of this millennium) journaling filesystems. Or it could be (RAM) memory exhaustion if you are using a swap partition - when there is not enough RAM, lower priority processes begin having their memory shuffled back and forth between RAM and the disk. This will effectively grind your system to a standstill as long as its ongoing, even with fast disks. If you don’t have swap enabled, the system will instead just kill arbitrary processes, which is bad, but at least it isn’t slow :)

            VFS: Unable to mount root fs typically indicates a problem with the initramfs. There are a million different ways to configure the kernel, but what most modern distros do is ship a highly modular kernel. Instead of building thousands of drivers into a single kernel binary, they are stored on the disk as thousands of separate modules which can be loaded if / when needed. This creates a chicken-and-egg problem though. Like if you need the NVMe driver to read an NVMe disk, but the NVMe driver is stored on the NVMe. To work around this, an extra (normally invisible) boot-strapping step takes place. An initramfs image is created after installing a kernel containing a minimal bootable filesystem which includes the drivers and utilities which are essential to boot your system, and the bootloader loads it into memory along with the kernel. The kernel mounts the initramfs as root, begins to boot, and the early-init system will do what it needs to mount your real root filesystem and transfer control to your real PID 1 init process. If the initramfs image corresponding to the specific kernel you’re booting is missing (or damaged) from your boot directory, this will not function correctly. A lot of times problems can occur from an undersized ESP or boot partition filling up with old kernels. This should not impact performance at all if the system is booting normally, though, so it doesn’t answer original question.

            • Erika3sis [she/her, xe/xem]@hexbear.netOP
              link
              fedilink
              English
              arrow-up
              5
              ·
              2 months ago

              Thank you for the very in-depth and easy to follow explanation. My current plan is to keep booting into an older kernel until the next kernel update; hope that the update magically fixes everything; and if it doesn’t, boot into an older kernel and try checking whether boot is full and then regenerating initramfs; and if that doesn’t work, cry and do a fresh install.