3

I have tried using grub to boot into the filesystem but with no success. I don't want to reinstall the OS using external media. Help me out to recover this issue. Do check the screenshot of the error in the below link image.

I am using Ubuntu 18.04 LTS as the only OS in my HP pavilion g6 with an intel i5 processor and 8GB ram.

Error Image

I have tried 'e' options before booting into the system and changing the Linux command line by removing 'quiet splash' with 'nomodeset'. I have followed most of the solutions but without success.

I have tried to boot from grub using the following steps with failure and facing the same error. The commands below vary a bit as per my system -

grub> set root=(hd0,1) grub> linux /boot/vmlinuz-3.13.0-29-generic root=/dev/sda1 grub> initrd /boot/initrd.img-3.13.0-29-generic grub> boot

The problem occurred when I was not able to start vbox as virtualization was disabled in the BIOS, so I rebooted the system to enable virtualization in BIOS and again after rebooting the machine, I am facing this issue.

Right now, I am only able to access the grub command-line interface and advanced boot options in Linux with 'c' and 'e' options.

UPDATE 1: I disabled virtualization but it did not resolve the issue. I am also unable to locate the file zz-resume-auto using the locate command. Grub does not recognize this command. I also tried to do that using search.file zz-resume-auto but without success. I am not too familiar with the grub command-line interface. Do help me out with the command to search for the file.

The output of ls -al /boot :-

enter image description here

UPDATE 2: I am also unable to boot into the last kernel version. I am attaching the link for further information. I tried to troubleshoot this issue using boot-repair, but without any luck. Kindly check out the boot-repair report at - http://paste.ubuntu.com/p/F2kbMT6nd5/

Thank you.

3 Answers3

1

A "kernel panic" occurs when the kernel for some reason cannot continue running.

"Attempted to kill init" actually means: "init died or failed to start." This is process #1 and it has a special place in Linux such that the system cannot run without it. Most likely there's a library error or some other problem which prevented the process from starting at all. Check the dmesg logs immediately before the failure occurred.

1

This error...

You've installed an application (like maybe zram, or some such) that has installed an invalid file zz-resume-auto.*, or you've manually added a file named zz-resume-auto.* somewhere that has an error in it, or you have a defective /boot/initrd.img-5.3.0-40-generic file.

Locate this file and correct the script error. Use locate -b zz-resume-auto or find / -name zz-resume-auto to help find this file. It might be in /etc/initramfs-tools/conf.d/. If so, you'll need to do a sudo update-initramfs -c -k 5.3.0-40-generic after fixing the script.

Update #1:

Disable virtualization in the BIOS, and see if that gets you to boot.

Update #2:

Trying to boot an older -28 kernel.

Update #3:

sudo update-initramfs -c -k 5.3.0-40-generic solved the problem

heynnema
  • 70,711
1

It's entirely feasible that you have a corrupted initramfs image for the kernel you are attempting to boot. Based on your ls -al /boot output this is either 5.3.0-28 or 5.3.0-40

The initramfs is a gzipped cpio archive. At boot time, the kernel unpacks that archive into RAM disk, mounts and uses it as initial root file system. All finding of the root device happens in this early userspace. These are typically found in /boot and on my system are called initrd.img-kernel-version

You can check to see if the file in question exists in the image by using the command lsinitramfs /boot/initrd.img-5.3.0-28-generic | grep zz-resume-auto (for example, adjust your filenames accordingly to the image your searching in and what you are searching for)

If this is the case, the The update-initramfs script will likely resolve the problem. Here's an excerpt from the [man page]

EXAMPLES
   Update the initramfs of the newest kernel:

   update-initramfs -u

   Create the initramfs for a specific kernel:

   update-initramfs -c -k 2.6.18-1-686

For more detail on the boot process, here's a decent introduction.

Sources:

man update-initramfs

https://unix.stackexchange.com/questions/424599/is-update-initramfs-u-needed-after-adding-or-removing-a-module-with-modprobe

https://opensource.com/article/17/2/linux-boot-and-startup

Elder Geek
  • 36,023
  • 25
  • 98
  • 183