Kernel panic when booting from live USB  [Solved]

Report Bugs, Issues and non- package Requests
Message
Author
Charlie Brown

Re: Kernel panic when booting from live USB

#21 Post by Charlie Brown »

What if you use a different usb stick?

It may be due to faulty hardware.


(You can also change splash to nosplash on the installed system to see if the same /similar is on the installed system (though it manages to boot)).


Also you can try (other than trying another stick): re-generate the initrd image(s) (on the installed system) then create the snapshot :

Code: Select all

sudo update-initramfs -uk all

User avatar
Adrian
Developer
Posts: 9183
Joined: Wed Jul 12, 2006 1:42 am

Re: Kernel panic when booting from live USB

#22 Post by Adrian »

Can you boot the ISO in a VM? Do you have anything set up on the computer, VirtualBox, VMWare, KVM? You could try the ISO in a VM that would eliminate the USB question.

User avatar
fehlix
Developer
Posts: 12879
Joined: Wed Apr 11, 2018 5:09 pm

Re: Kernel panic when booting from live USB

#23 Post by fehlix »

Or add a fromiso grub menu entry, in case you don't have a VM setup to boot iso attached to the VM.

A fromiso-Gub menu entry looks something like this:
with the snapshot iso "MX-snapshot.iso" copied into an /iso/ directory on an ext4 file system:
adjust boot options as desired:

Code: Select all

# custom.cfg
# save under /boot/grub/custom.cfg
#
menuentry "ISO-Boot MX-snapshot.iso" {
  isopath=/iso/MX-snapshot.iso
  bootoptions="kbd=de kbvar=nodeadkeys kbopt=caps:none lang=de tz=Europe/Amsterdam" 

  insmod ext2
  insmod part_gpt
  insmod part_msdos
  insmod probe
  insmod loopback
  # use this to search for the full isopath
  search --no-floppy --file --set=root $isopath
  probe -u $root --set=buuid
  loopback loop $isopath
  linux  (loop)/antiX/vmlinuz buuid=${buuid} fromiso=${isopath} quiet splasht nosplash ${bootoptions}
  initrd (loop)/antiX/initrd.gz
}


User avatar
shmu26
Posts: 265
Joined: Tue Sep 03, 2019 10:51 am

Re: Kernel panic when booting from live USB

#24 Post by shmu26 »

dolphin_oracle wrote: Wed Jan 24, 2024 3:40 pm how about your excludes file?
Not sure where to find that file. But when I made the snapshot, I did not exclude anything. I checked no boxes and I did not edit the text file.

User avatar
fehlix
Developer
Posts: 12879
Joined: Wed Apr 11, 2018 5:09 pm

Re: Kernel panic when booting from live USB  [Solved]

#25 Post by fehlix »

Maybe check the file
/etc/initrd_release
and fix the 2nd VERSION= line
by adding a mssing ["] double quote, if missing,
before making the snapshot.
As mentioned here:
viewtopic.php?p=763190#p763190

User avatar
shmu26
Posts: 265
Joined: Tue Sep 03, 2019 10:51 am

Re: Kernel panic when booting from live USB

#26 Post by shmu26 »

fehlix wrote: Thu Jan 25, 2024 11:13 am Maybe check the file
/etc/initrd_release
and fix the 2nd VERSION= line
by adding a mssing ["] double quote, if missing,
before making the snapshot.
As mentioned here:
viewtopic.php?p=763190#p763190
Thanks for the follow-up and I am happy to see that the issue was resolved.

Charlie Brown

Re: Kernel panic when booting from live USB

#27 Post by Charlie Brown »

Then as the starter of "this" thread you (only you) can mark it as solved :)

Post Reply

Return to “Bugs and Non-Package Requests Forum”