Page 4 of 6
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 11:02 am
by fehlix
Maybe something related to the initrd_release file inserted into /etc/live_initrd with snapshot:
Code: Select all
NAME="MX"
VERSION="23.2_ahs (Libretto)
ID="mx"
VERSION_ID="23.2_"
PRETTY_NAME="MX 23.2_ahs (Libretto)"
ANSI_COLOR="0;34"
HOME_URL="https://mxlinux.org"
BUG_REPORT_URL="https://mxlinux.org"
BASE=MX
where the missing ["] double-quotes in the 2nd line
VERSION="23.2_ahs (Libretto)
breaks the live init.
The above is from the iso posted.
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 11:07 am
by fehlix
So for anybody does have the kernal panic issue:
Do check and fix the VERSION line in /etc/initrd_relase
and add missing double-quotes to the VERSION-line
before making the snapshot.
looks something like this, here for the MX-23.2 ahs installation:
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 11:13 am
by siamhie
Flashed my snapshot to another thumb drive with MX Live USB Maker and booted fine.
I do have two kernels on this system. linux-image-6.1.0-17-amd64 and linux-image-6.7.1-1-liquorix-amd64.
I see Ventoy has an update (1.0.97) and will upgrade to see if it fixes MY issue.
Code: Select all
=====================================================================
/usr/local/bin/live-usb-maker gui -N -C off --from=/home/siamhie/Downloads/fluxbox-6.7.1.iso -t /dev/sdb
program: live-usb-maker
started: Thu Jan 25 07:50:58 AM PST 2024
version: 2.41.19-2302 (Sat, 25 Feb 2023 12:45:10 -0500)
kernel: 6.7.1-1-liquorix-amd64
OS: MX 23.2_fluxbox (Libretto)
found lib: /usr/local/lib/cli-shell-utils/cli-shell-utils.bash
lib version: 2.41.05-2302 (Sat, 25 Feb 2023 12:45:10 -0500)
---------------------------------------------------------------------
Found man page: live-usb-maker.1
Will use target device /dev/sdb (57.3G USB SanDisk 3.2Gen1)
Will use source file /home/siamhie/Downloads/fluxbox-6.7.1.iso
Found grub config 2.0
Estimated extfs overhead for 58629M is 44M
Total Used Extra
entire drive 57.3 GiB 57.3 GiB 1 MiB
main partition 57.3 GiB 2.91 GiB 54.3 GiB
uefi partition 50 MiB 32 MiB 18 MiB
Ready to make live-usb on device sdb
... by copying file /home/siamhie/Downloads/fluxbox-6.7.1.iso
>> partition-clear
Total bytes: 61530439680
Total blocks: 120176640
> dd status=none if=/dev/zero of=/dev/sdb bs=512 count=34
> dd status=none if=/dev/zero of=/dev/sdb bs=512 count=34 seek=64
> dd status=none conv=notrunc if=/dev/zero of=/dev/sdb bs=512 count=34 seek=120176606
> partprobe /dev/sdb
>> partition-make
Using msdos partitioning
> parted --script --align optimal /dev/sdb unit MiB mklabel msdos
> dd status=none if=/dev/zero of=/dev/sdb seek=1024 bs=1K count=128
> parted --script --align optimal /dev/sdb unit MiB mkpart primary 1 58629
> parted --script --align optimal /dev/sdb unit MiB set 1 boot on
> dd status=none if=/dev/zero of=/dev/sdb seek=60036096 bs=1K count=128
> parted --script --align optimal /dev/sdb unit MiB mkpart primary 58629 58678
> parted --script --align optimal /dev/sdb unit MiB set 2 esp on
> partprobe /dev/sdb
> wait_for_file /dev/sdb1
>> makefs-bios
> mkfs.ext4 -O ^64bit -m0 -i16384 -J size=32 /dev/sdb1
mke2fs 1.47.0 (5-Feb-2023)
64-bit filesystem support is not enabled. The larger fields afforded by this feature enable full-strength checksumming. Pass -O 64bit to rectify.
Creating filesystem with 15008768 4k blocks and 3752784 inodes
Filesystem UUID: 22bddf2a-5252-4c49-94eb-6b6e229daef5
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Allocating group tables: 0/459 done
Writing inode tables: 0/459 done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: 0/459 done
> tune2fs -L Live-usb /dev/sdb1
tune2fs 1.47.0 (5-Feb-2023)
> wait_for_file /dev/sdb2
>> makefs-uefi
> mkfs.vfat -F 32 -n LIVE-UEFI /dev/sdb2
mkfs.fat 4.2 (2021-01-31)
> partprobe /dev/sdb
> wait_for_file /dev/sdb1
> mkdir -p /run/live-usb-maker/main
> mount -t ext4 /dev/sdb1 /run/live-usb-maker/main
> wait_for_file /dev/sdb2
> mkdir -p /run/live-usb-maker/uefi
> mount -t vfat /dev/sdb2 /run/live-usb-maker/uefi
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1 ext4 57G 24K 57G 1% /run/live-usb-maker/main
/dev/sdb2 vfat 49M 512 49M 1% /run/live-usb-maker/uefi
>> copy-uefi
copy from iso to uefi partition
files [Ee][Ff][Ii] version
> cp --no-dereference --preserve=mode,links --recursive /run/live-usb-maker/iso/EFI /run/live-usb-maker/uefi/.
Fix Dell uefi memtest bug
> cp /run/live-usb-maker/uefi/EFI/BOOT/grubx64.efi /run/live-usb-maker/uefi/EFI/BOOT/fallback.efi
>> copy-main
> rm -rf /run/live-usb-maker/main/boot.orig
copy from iso to main partition
vm.dirty_bytes = 20000000
copy /antiX/vmlinuz
> cpio -pdm --quiet /run/live-usb-maker/main/
> e4defrag -v ./antiX/vmlinuz
e4defrag 1.47.0 (5-Feb-2023)
ext4 defragmentation for ./antiX/vmlinuz
[1/1][1/1]./antiX/vmlinuz: 0%[1/1]./antiX/vmlinuz: 100% extents: 2 -> 1 [ OK ]
Success: [1/1]
copy /antiX/initrd.gz
> cpio -pdm --quiet /run/live-usb-maker/main/
> e4defrag -v ./antiX/initrd.gz
e4defrag 1.47.0 (5-Feb-2023)
ext4 defragmentation for ./antiX/initrd.gz
[1/1][1/1]./antiX/initrd.gz: 100% extents: 1 -> 1 [ OK ]
Success: [1/1]
copy remaining files ...
> cpio -pdm --quiet /run/live-usb-maker/main/
copy pids: 48231 48234
vm.dirty_bytes = 20000000
vm.dirty_ratio = 0
> write_file /run/live-usb-maker/main/made-by-live-usb-maker created: Thu Jan 25 07:53:38 AM PST 2024
program: live-usb-maker
version: 2.41.19-2302 (Sat, 25 Feb 2023 12:45:10 -0500)
> dd status=none if=/dev/urandom of=/run/live-usb-maker/main/antiX/random-seed bs=512 count=1
> chmod 600 /run/live-usb-maker/main/antiX/random-seed
> rm -rf /run/live-usb-maker/main/.disk
>> check-usb-md5
check md5 for initrd.gz
> md5sum -c initrd.gz.md5
initrd.gz: OK
check md5 for linuxfs
> md5sum -c linuxfs.md5
linuxfs: OK
check md5 for vmlinuz
> md5sum -c vmlinuz.md5
vmlinuz: OK
>> uuids
Using antiX/MX grub config 2.0
> mkdir -p /run/live-usb-maker/uefi/boot/grub
> cp /run/live-usb-maker/main/boot/grub/config/efi-grub.cfg /run/live-usb-maker/uefi/boot/grub/grub.cfg
> touch /run/live-usb-maker/main/boot/grub/config/did-efi-grub
> sed -i /^\s*#/! s/%UUID%/22bddf2a-5252-4c49-94eb-6b6e229daef5/ /run/live-usb-maker/uefi/boot/grub/grub.cfg
> rm -f /run/live-usb-maker/main/boot/grub/config/*.id
> touch /run/live-usb-maker/main/boot/grub/config/bfc58996fad2fcb89f49ab59eb772259.id
> sed -i /^\s*#/! s|%ID_FILE%|/boot/grub/config/bfc58996fad2fcb89f49ab59eb772259.id| /run/live-usb-maker/uefi/boot/grub/grub.cfg
>> install
extlinux version 6.04
> dd status=none bs=440 conv=notrunc count=1 if=/usr/lib/syslinux/mbr/mbr.bin of=/dev/sdb
> rm -f /run/live-usb-maker/main/boot/syslinux/chain.c32
> rm -f /run/live-usb-maker/main/boot/syslinux/gfxboot.c32
> rm -f /run/live-usb-maker/main/boot/syslinux/ldlinux.c32
> rm -f /run/live-usb-maker/main/boot/syslinux/libcom32.c32
> rm -f /run/live-usb-maker/main/boot/syslinux/libmenu.c32
> rm -f /run/live-usb-maker/main/boot/syslinux/libutil.c32
> rm -f /run/live-usb-maker/main/boot/syslinux/menu.c32
> rm -f /run/live-usb-maker/main/boot/syslinux/syslinux.bin
> rm -f /run/live-usb-maker/main/boot/syslinux/version
> cp /usr/lib/syslinux/modules/bios/chain.c32 /run/live-usb-maker/main/boot/syslinux/
> cp /usr/lib/syslinux/modules/bios/gfxboot.c32 /run/live-usb-maker/main/boot/syslinux/
> cp /usr/lib/syslinux/modules/bios/vesamenu.c32 /run/live-usb-maker/main/boot/syslinux/
> cp /usr/lib/syslinux/modules/bios/ldlinux.c32 /run/live-usb-maker/main/boot/syslinux/
> cp /usr/lib/syslinux/modules/bios/libcom32.c32 /run/live-usb-maker/main/boot/syslinux/
> cp /usr/lib/syslinux/modules/bios/libmenu.c32 /run/live-usb-maker/main/boot/syslinux/
> cp /usr/lib/syslinux/modules/bios/libutil.c32 /run/live-usb-maker/main/boot/syslinux/
> cp /usr/lib/syslinux/modules/bios/linux.c32 /run/live-usb-maker/main/boot/syslinux/
> cp /usr/lib/syslinux/modules/bios/menu.c32 /run/live-usb-maker/main/boot/syslinux/
> write_file /run/live-usb-maker/main/boot/syslinux/version 6.04
> extlinux -i /run/live-usb-maker/main/boot/syslinux
/run/live-usb-maker/main/boot/syslinux is device /dev/sdb1
Filesystem Type Size Used Avail Use% Mounted on
/dev/sdb1 ext4 57G 2.9G 54G 6% /run/live-usb-maker/main
/dev/sdb2 vfat 49M 13M 36M 26% /run/live-usb-maker/uefi
>> done
live-usb-maker took 2 minutes and 49 seconds.
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 11:14 am
by dolphin_oracle
fehlix wrote: Thu Jan 25, 2024 11:02 am
Maybe something related to the initrd_release file inserted into /etc/live_initrd with snapshot:
Code: Select all
NAME="MX"
VERSION="23.2_ahs (Libretto)
ID="mx"
VERSION_ID="23.2_"
PRETTY_NAME="MX 23.2_ahs (Libretto)"
ANSI_COLOR="0;34"
HOME_URL="https://mxlinux.org"
BUG_REPORT_URL="https://mxlinux.org"
BASE=MX
where the missing ["] double-quotes in the 2nd line
VERSION="23.2_ahs (Libretto)
breaks the live init.
The above is from the iso posted.
ah very good
@fehlix
my working snapshots have a single quote.
the non-working ones have a weird double quote instead of a missing one in the VERSION line.
Code: Select all
NAME="MX"
VERSION="23.2_KDE (Libretto)""
ID="mx"
VERSION_ID="23.2_"
PRETTY_NAME="MX 23.2_KDE (Libretto)"
ANSI_COLOR="0;34"
HOME_URL="https://mxlinux.org"
BUG_REPORT_URL="https://mxlinux.org"
BASE=MX
same for the /etc/initrd_release file in the main file system.
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 11:17 am
by fehlix
dolphin_oracle wrote: Thu Jan 25, 2024 11:14 am
Code: Select all
NAME="MX"
VERSION="23.2_KDE (Libretto)""
ID="mx"
VERSION_ID="23.2_"
PRETTY_NAME="MX 23.2_KDE (Libretto)"
ANSI_COLOR="0;34"
HOME_URL="https://mxlinux.org"
BUG_REPORT_URL="https://mxlinux.org"
BASE=MX
Maybe someone unknown with to fast fingers, maybe?
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 11:18 am
by Charlie Brown
That may be the culprit cause till now (including the other thread by shmu26) all complaints were with KDE and AHS .
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 11:19 am
by dolphin_oracle
fehlix wrote: Thu Jan 25, 2024 11:17 am
dolphin_oracle wrote: Thu Jan 25, 2024 11:14 am
Code: Select all
NAME="MX"
VERSION="23.2_KDE (Libretto)""
ID="mx"
VERSION_ID="23.2_"
PRETTY_NAME="MX 23.2_KDE (Libretto)"
ANSI_COLOR="0;34"
HOME_URL="https://mxlinux.org"
BUG_REPORT_URL="https://mxlinux.org"
BASE=MX
Maybe someone unknown with to fast fingers, maybe?
not that I'm one to not make a typo (

), but I don't think this time.
its in the generation of the file during the snapshot somewhere I think. the /etc/initrd_release on the system being snapshotted is correct.
host
/etc/initrd_release
Code: Select all
NAME="MX"
VERSION="23.2_KDE (Libretto)"
ID="mx"
VERSION_ID="23.2_"
PRETTY_NAME="MX 23.2_KDE (Libretto)"
ANSI_COLOR="0;34"
HOME_URL="https://mxlinux.org"
BUG_REPORT_URL="https://mxlinux.org"
BASE=MX
host
/etc/lsb-release
Code: Select all
PRETTY_NAME="MX 23.2 Libretto"
DISTRIB_ID=MX
DISTRIB_RELEASE=23.2
DISTRIB_CODENAME="Libretto"
DISTRIB_DESCRIPTION="MX 23.2 Libretto"
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 12:33 pm
by fehlix
dolphin_oracle wrote: Thu Jan 25, 2024 11:19 am
fehlix wrote: Thu Jan 25, 2024 11:17 am
dolphin_oracle wrote: Thu Jan 25, 2024 11:14 am
Code: Select all
NAME="MX"
VERSION="23.2_KDE (Libretto)""
ID="mx"
VERSION_ID="23.2_"
PRETTY_NAME="MX 23.2_KDE (Libretto)"
ANSI_COLOR="0;34"
HOME_URL="https://mxlinux.org"
BUG_REPORT_URL="https://mxlinux.org"
BASE=MX
Maybe someone unknown with to fast fingers, maybe?
not that I'm one to not make a typo (

), but I don't think this time.
its in the generation of the file during the snapshot somewhere I think. the /etc/initrd_release on the system being snapshotted is correct.
Can't reproduce. It's here always a copy of /etc/inird_release within the live initrd.
That's, what snapshot is doing, just a copy.
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 12:53 pm
by fehlix
Not fast fingers, but fast and fat fingers:
Code: Select all
sed -i s/'VERSION="23_ahs (Libretto)"'/'VERSION="23.1_ahs (Libretto)'/ /etc/initrd_release
sed -i s/'VERSION="23_KDE (Libretto)'/'VERSION="23.1_KDE (Libretto)"'/ /etc/initrd_release
sed -i s/'VERSION="23.1_ahs (Libretto)"'/'VERSION="23.2_ahs (Libretto)'/ /etc/initrd_release
sed -i s/'VERSION="23.1_KDE (Libretto)'/'VERSION="23.2_KDE (Libretto)"'/ /etc/initrd_release
in postinst of mx-system-24.01.01mx23
( 4 typos not one)
Re: Kernel Panic Live USB
Posted: Thu Jan 25, 2024 1:24 pm
by dolphin_oracle
fehlix wrote: Thu Jan 25, 2024 12:53 pm
Not fast fingers, but fast and fat fingers:
Code: Select all
sed -i s/'VERSION="23_ahs (Libretto)"'/'VERSION="23.1_ahs (Libretto)'/ /etc/initrd_release
sed -i s/'VERSION="23_KDE (Libretto)'/'VERSION="23.1_KDE (Libretto)"'/ /etc/initrd_release
sed -i s/'VERSION="23.1_ahs (Libretto)"'/'VERSION="23.2_ahs (Libretto)'/ /etc/initrd_release
sed -i s/'VERSION="23.1_KDE (Libretto)'/'VERSION="23.2_KDE (Libretto)"'/ /etc/initrd_release
in postinst of mx-system-24.01.01mx23
( 4 typos not one)
yeah just found it myself.
