Announcement

Collapse
No announcement yet.

kernel panic after upgrade

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Installation] kernel panic after upgrade

    Hi, I have a dual boot setup windows/kubuntu. amd slimbook pro x.

    Recently was prompted to update kubuntu as it will stop being updated. After running the updater it seemed to fail. File explorers would not open but web browser would pretty unusable. Next I rebooted to recovery and ran dpkg and defaulted to 'No' on any changes of modified config files by me or script and booted and everything seemed great. A pop up then followed saying a restart would be needed to finish installation. After restarting I ended up with a kernel panic. Recovery mode also is a kernel panic. There are no other kernels to choose from. Just a note the windows partition is working fine.

    Can anyone help me fix this??

    #2
    Honestly, it will take much less time to re-install than to try and replace the kernel.

    A short explanation of what you'd have to do to fix it: Kernel panic usually means the initrd image is corrupted or missing a vital module. You'd have to boot to a live USB, chroot into the system, rebuild initramfs, and cross your fingers. It will take some preparation, research, time, swearing, and luck.

    If you are wise and have /home on a separate partition (or in a separate subvolume) re-installation is a no brainer. I know it's a kind of a pain in the neck, but IMO it's the best option. If you do not have a separate home, make a backup of it now then restore it into your new installation.

    Now it's time for me to preach about BTRFS: If you had used BTRFS as your file system, you could have made a snapshot of your OS before you attempted the upgrade. It takes about 5 seconds to restore the system's previous condition and reboot. You would have had time to re-attempt the upgrade or figure out how to fix it while still booting into your previous install, and when it was working, simply point fstab at your existing @home subvolume and go on with your day.

    Please Read Me

    Comment


      #3
      I did a bootinfo summary report paste.ubuntu.com/p/sc92qYQCbX
      It looks like it might be able to fix but I was advised not to attempt the autofix until it was reviewed. Its a bit over my head. does it look like this is possible or should i just go ahead and do a fresh install? was hoping to recover some apps and things. foolish me for not having a backup ha oshunluvr

      Comment


        #4
        The bootinfo summary report you linked to requires an Ubuntu Pastebin account (login) before it can be viewed. You should be able to post that report directly here; you have enough posts to allow that.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Snowhog
          boot-repair-4ppa125 [20221215_1724]

          ============================== Boot Info Summary ===============================

          => No boot loader is installed in the MBR of /dev/nvme0n1.
          => Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sda.

          nvme0n1p1: __________________________________________________ ___________________

          File system:
          Boot sector type: -
          Boot sector info:

          nvme0n1p2: __________________________________________________ ___________________

          File system: ntfs
          Boot sector type: Windows 8/2012: NTFS
          Boot sector info: No errors found in the Boot Parameter Block.
          Operating System: Windows 8 or 10
          Boot files: /Windows/System32/winload.exe

          nvme0n1p3: __________________________________________________ ___________________

          File system: vfat
          Boot sector type: FAT32
          Boot sector info: According to the info in the boot sector, nvme0n1p3
          starts at sector 2048. But according to the info from
          fdisk, nvme0n1p3 starts at sector 489023488.
          Operating System:
          Boot files: /efi/BOOT/fbx64.efi /efi/BOOT/mmx64.efi
          /efi/ubuntu/grubx64.efi /efi/ubuntu/mmx64.efi
          /efi/ubuntu/shimx64.efi /efi/ubuntu/grub.cfg
          /efi/Microsoft/Boot/bootmgfw.efi
          /efi/Microsoft/Boot/bootmgr.efi
          /efi/Microsoft/Boot/memtest.efi

          nvme0n1p4: __________________________________________________ ___________________

          File system: ext4
          Boot sector type: -
          Boot sector info:
          Operating System: Ubuntu 22.04.1 LTS
          Boot files: /boot/grub/grub.cfg /etc/fstab /etc/default/grub

          sda1: __________________________________________________ ________________________

          File system: vfat
          Boot sector type: SYSLINUX 4.03 2010-10-22 ........>..sr>........j.9...0...~.....~...f...M.f. f....f..0~....>E}.u......
          Boot sector info: Syslinux looks at sector 2002464 of /dev/sda1 for its
          second stage. SYSLINUX is installed in the directory.
          No errors found in the Boot Parameter Block.
          Operating System:
          Boot files: /boot/grub/grub.cfg /syslinux.cfg
          /efi/BOOT/grubx64.efi /ldlinux.sys


          ================================ 2 OS detected =================================

          OS#1: Ubuntu 22.04.1 LTS on nvme0n1p4
          OS#2: Windows 8 or 10 on nvme0n1p2

          ============================ Architecture/Host Info ============================

          CPU architecture: 64-bit
          Live-session OS is Ubuntu 64-bit (Boot-Repair-Disk 64bit 20200604, bionic, x86_64)


          ===================================== UEFI =====================================

          BIOS is EFI-compatible, and is setup in EFI-mode for this live-session.
          SecureBoot disabled.

          efibootmgr -v
          BootCurrent: 000A
          Timeout: 1 seconds
          BootOrder: 000A,0009,0000
          Boot0000* Windows Boot Manager HD(3,GPT,9933a473-ab16-4fe8-8f41-a44498e832e7,0x1d25e800,0x100000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS..... ....x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...d................
          Boot0009* ubuntu HD(3,GPT,9933a473-ab16-4fe8-8f41-a44498e832e7,0x1d25e800,0x100000)/File(\EFI\UBUNTU\SHIMX64.EFI)
          Boot000A* UEFI: PNY USB 2.0 FD 1100, Partition 1 PciRoot(0x0)/Pci(0x8,0x1)/Pci(0x0,0x3)/USB(1,0)/HD(1,MBR,0x20bebf63,0x800,0x3b7b800)..BO

          c152ec201c37b6e97bbc2207e49d1271 nvme0n1p3/BOOT/fbx64.efi
          fdafb5eece6caeccb788c946a28e6872 nvme0n1p3/BOOT/mmx64.efi
          3795ef72a4ed0369ca44e711527904bf nvme0n1p3/ubuntu/grubx64.efi
          fdafb5eece6caeccb788c946a28e6872 nvme0n1p3/ubuntu/mmx64.efi
          728124f6ec8e22fbdbe7034812c81b95 nvme0n1p3/ubuntu/shimx64.efi
          0b9a871f514710bf66f792485b3735a0 nvme0n1p3/Microsoft/Boot/bootmgfw.efi
          4de69f3cf5c6592298220fd89a820a23 nvme0n1p3/Microsoft/Boot/bootmgr.efi
          728124f6ec8e22fbdbe7034812c81b95 nvme0n1p3/BOOT/BOOTX64.efi


          ============================= Drive/Partition Info =============================

          Disks info: __________________________________________________ __________________

          nvme0n1 : is-GPT, no-BIOSboot, has---ESP, not-usb, not-mmc, has-os, 2048 sectors * 512 bytes

          Partitions info (1/3): __________________________________________________ _______

          nvme0n1p2 : is-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
          nvme0n1p3 : no-os, 32, nopakmgr, no-docgrub, nogrub, nogrubinstall, no-grubenv, noupdategrub, farbios
          nvme0n1p4 : is-os, 64, apt-get, signed grub-efi , grub2, grub-install, grubenv-ng, update-grub, farbios

          Partitions info (2/3): __________________________________________________ _______

          nvme0n1p2 : isnotESP, part-has-no-fstab, no-nt, haswinload, no-recov-nor-hid, no-bmgr, notwinboot
          nvme0n1p3 : is---ESP, part-has-no-fstab, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot
          nvme0n1p4 : isnotESP, fstab-has-goodEFI, no-nt, no-winload, no-recov-nor-hid, no-bmgr, notwinboot

          Partitions info (3/3): __________________________________________________ _______

          nvme0n1p2 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, nvme0n1
          nvme0n1p3 : not-sepboot, no-boot, part-has-no-fstab, not-sep-usr, no---usr, part-has-no-fstab, std-grub.d, nvme0n1
          nvme0n1p4 : not-sepboot, with-boot, fstab-without-boot, not-sep-usr, with--usr, fstab-without-usr, std-grub.d, nvme0n1

          fdisk -l (filtered): __________________________________________________ _________

          Disk nvme0n1: 465.8 GiB, 500107862016 bytes, 976773168 sectors
          Disk identifier: A959C58A-2EDC-41B3-9B06-D81DB32CCB41
          Start End Sectors Size Type
          nvme0n1p1 2048 34815 32768 16M Microsoft reserved
          nvme0n1p2 34816 489023487 488988672 233.2G Microsoft basic data
          nvme0n1p3 489023488 490072063 1048576 512M EFI System
          nvme0n1p4 490072064 976773119 486701056 232.1G Linux filesystem
          Disk sda: 29.8 GiB, 31935430656 bytes, 62373888 sectors
          Disk identifier: 0x20bebf63
          Boot Start End Sectors Size Id Type
          sda1 * 2048 62373887 62371840 29.8G c W95 FAT32 (LBA)
          Disk zram0: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram1: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram2: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram3: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram4: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram5: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram6: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram7: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram8: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram9: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram10: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram11: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram12: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram13: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram14: 987.3 MiB, 1035227136 bytes, 252741 sectors
          Disk zram15: 987.3 MiB, 1035227136 bytes, 252741 sectors

          parted -lm (filtered): __________________________________________________ _______

          sda:31.9GB:scsi:512:512:msdos:PNY USB 2.0 FD:;
          1:1049kB:31.9GB:31.9GB:fat32::boot, lba;
          nvme0n1:500GB:nvme:512:512:gpt:WDC WDS500G2B0C-00PXH0:;
          1:1049kB:17.8MB:16.8MB::Microsoft reserved partition:msftres;
          2:17.8MB:250GB:250GB:ntfs:Basic data partition:msftdata;
          3:250GB:251GB:537MB:fat32::boot, esp;
          4:251GB:500GB:249GB:ext4::;
          zram5:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram11:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram3:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram1:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram8:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram14:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram6:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram12:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram4:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram10:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram2:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram0:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram9:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram15:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram7:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;
          zram13:1035MB:unknown:4096:4096:loop:Unknown:;
          1:0.00B:1035MB:1035MB:linux-swap(v1)::;

          blkid (filtered): __________________________________________________ ____________

          NAME FSTYPE UUID PARTUUID LABEL PARTLABEL
          sda
          └─sda1 vfat BA78-B8FE 20bebf63-01
          zram0
          zram1
          zram2
          zram3
          zram4
          zram5
          zram6
          zram7
          zram8
          zram9
          zram10
          zram11
          zram12
          zram13
          zram14
          zram15
          nvme0n1
          ├─nvme0n1p1 574b0ca2-a7c9-46c0-a6f2-04991b37d8c3 Microsoft reserved partition
          ├─nvme0n1p2 ntfs 0062227F62227A14 40ae8460-7ec1-42d7-b2cb-100a35fb7341 Basic data partition
          ├─nvme0n1p3 vfat C0DE-9B36 9933a473-ab16-4fe8-8f41-a44498e832e7
          └─nvme0n1p4 ext4 4e4c40ae-0244-4990-9e82-2e0d2da076dd 41dd1fca-d466-4f39-b19c-b8d0f881680e

          df (filtered): __________________________________________________ _______________

          Avail Use% Mounted on
          nvme0n1p2 179.6G 23% /mnt/boot-sav/nvme0n1p2
          nvme0n1p3 480.5M 6% /mnt/boot-sav/nvme0n1p3
          nvme0n1p4 179.5G 17% /mnt/boot-sav/nvme0n1p4
          sda1 28.8G 3% /cdrom

          Mount options: __________________________________________________ ________________

          nvme0n1p2 rw,relatime,user_id=0,group_id=0,allow_other,blksi ze=4096
          nvme0n1p3 rw,relatime,fmask=0022,dmask=0022,codepage=437,ioc harset=iso8859-1,shortname=mixed,errors=remount-ro
          nvme0n1p4 rw,relatime
          sda1 ro,noatime,fmask=0022,dmask=0022,codepage=437,ioch arset=iso8859-1,shortname=mixed,errors=remount-ro

          =================== nvme0n1p3/efi/ubuntu/grub.cfg (filtered) ===================

          search.fs_uuid 4e4c40ae-0244-4990-9e82-2e0d2da076dd root
          set prefix=($root)'/boot/grub'
          configfile $prefix/grub.cfg

          =================== nvme0n1p4/boot/grub/grub.cfg (filtered) ====================

          Ubuntu 4e4c40ae-0244-4990-9e82-2e0d2da076dd
          Ubuntu, with Linux 5.8.0-63-generic 4e4c40ae-0244-4990-9e82-2e0d2da076dd
          Windows Boot Manager (on nvme0n1p3) osprober-efi-C0DE-9B36
          ### END /etc/grub.d/30_os-prober ###
          UEFI Firmware Settings uefi-firmware
          ### END /etc/grub.d/30_uefi-firmware ###

          ======================== nvme0n1p4/etc/fstab (filtered) ========================

          # <file system> <mount point> <type> <options> <dump> <pass>
          # / was on /dev/sda2 during installation
          UUID=4e4c40ae-0244-4990-9e82-2e0d2da076dd / ext4 errors=remount-ro 0 1
          # /boot/efi was on /dev/sda1 during installation
          UUID=C0DE-9B36 /boot/efi vfat umask=0077 0 1
          /swapfile none swap sw 0 0

          ==================== nvme0n1p4/etc/default/grub (filtered) =====================

          GRUB_DEFAULT=0
          GRUB_TIMEOUT_STYLE=hidden
          GRUB_TIMEOUT=0
          GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
          GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
          GRUB_CMDLINE_LINUX=""
          GRUB_GFXMODE=1920x1080,auto
          GRUB_THEME="/boot/grub/themes/slaze/theme.txt"

          ================= nvme0n1p4: Location of files loaded by Grub ==================

          GiB - GB File Fragment(s)
          236.109939575 = 253.521117184 boot/grub/grub.cfg 1
          244.959320068 = 263.023067136 boot/vmlinuz 2
          244.959320068 = 263.023067136 boot/vmlinuz-5.8.0-63-generic 2
          274.987506866 = 295.265587200 boot/initrd.img 6
          274.987506866 = 295.265587200 boot/initrd.img-5.8.0-63-generic 6
          274.987506866 = 295.265587200 boot/initrd.img.old 6

          =================== nvme0n1p4: ls -l /etc/grub.d/ (filtered) ===================

          -rwxr-xr-x 1 root root 18683 Apr 15 2022 10_linux
          -rwxr-xr-x 1 root root 43031 Apr 15 2022 10_linux_zfs
          -rwxr-xr-x 1 root root 14180 Apr 15 2022 20_linux_xen
          -rwxr-xr-x 1 root root 13369 Apr 15 2022 30_os-prober
          -rwxr-xr-x 1 root root 1372 Apr 15 2022 30_uefi-firmware
          -rwxr-xr-x 1 root root 700 Feb 21 2022 35_fwupd
          -rwxr-xr-x 1 root root 214 Mar 4 2018 40_custom
          -rwxr-xr-x 1 root root 215 Apr 15 2022 41_custom

          ======================== nvme0n1p4/etc/grub.d/35_fwupd =========================

          #! /bin/sh
          # SPDX-License-Identifier: LGPL-2.1+
          set -e
          [ -d ${pkgdatadir:?} ]
          # shellcheck source=/dev/null
          . "$pkgdatadir/grub-mkconfig_lib"
          if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
          ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
          . /var/lib/fwupd/uefi_capsule.conf
          if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
          echo "Adding Linux Firmware Updater entry" >&2
          cat << EOF
          menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
          EOF
          ${grub_probe:?}
          prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
          cat << EOF
          chainloader ${EFI_PATH}
          }
          EOF
          fi
          fi

          ====================== sda1/boot/grub/grub.cfg (filtered) ======================

          Boot-Repair-Disk session
          Boot-Repair-Disk session (failsafe)

          ========================= sda1/syslinux.cfg (filtered) =========================

          default menu.c32
          prompt 0
          menu title UNetbootin
          timeout 100

          label unetbootindefault
          menu label Default
          kernel /ubnkern
          append initrd=/ubninit file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash ---

          label ubnentry0
          menu label ^Help
          kernel /ubnkern
          append initrd=/ubninit

          label ubnentry1
          menu label ^64bit session
          kernel /casper/vmlinuz
          append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash ---

          label ubnentry2
          menu label ^64bit session (failsafe)
          kernel /casper/vmlinuz
          append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal ---

          label ubnentry3
          menu label Boot-Repair-Disk session
          kernel /casper/vmlinuz
          append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper quiet splash --

          label ubnentry4
          menu label Boot-Repair-Disk session (failsafe)
          kernel /casper/vmlinuz
          append initrd=/casper/initrd file=/cdrom/preseed/lubuntu.seed boot=casper noapic noapm nodma nomce nolapic nomodeset nosmp vga=normal --


          ==================== sda1: Location of files loaded by Grub ====================

          GiB - GB File Fragment(s)
          ?? = ?? boot/grub/grub.cfg 1

          ================== sda1: Location of files loaded by Syslinux ==================

          GiB - GB File Fragment(s)
          ?? = ?? syslinux.cfg 1
          ?? = ?? ldlinux.sys 1
          ?? = ?? menu.c32 1

          =============== sda1: Version of COM32(R) files used by Syslinux ===============

          menu.c32 : COM32R module (v4.xx)


          ======================== Unknown MBRs/Boot Sectors/etc =========================


          /dev/nvme0n1p1: unknown GPT attributes
          8000000000000000

          =============================== StdErr Messages ================================

          File descriptor 63 (pipe:[32675]) leaked on lvs invocation. Parent PID 3943: /bin/bash

          Suggested repair: __________________________________________________ ____________

          The default repair of the Boot-Repair utility would purge (in order to sign-grub) and reinstall the grub-efi-amd64-signed of
          nvme0n1p4,
          using the following options: nvme0n1p3/boot/efi,
          Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix use-standard-efi-file

          Confirmation request before suggested repair: __________________________________

          Warning: continuing without internet would leave your system unbootable. Please connect internet.
          Are you sure you want to continue anyway?

          Final advice in case of suggested repair: ______________________________________


          Please do not forget to make your UEFI firmware boot on the Ubuntu 22.04.1 LTS entry (nvme0n1p3/efi/****/shim****.efi (**** will be updated in the final message) file) !
          If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.

          If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
          For example you can boot into Windows, then type the following command in an admin command prompt:
          bcdedit /set {bootmgr} path \EFI\****\shim****.efi (**** will be updated in the final message)​

          Comment

          Working...
          X