Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3474

[Solved] Kernel Panic 6.1.0-27

$
0
0
Hi

I have a newish install from an iso of Debian 12.7.0 on a VM on Proxmox. All was working well on kernel 6.1.0-26-amd64 until I ran an unattended apt-get upgrade. Kernel 6.1.0-27-amd64 was installed but on rebooting I get a kernel panic and an "unable to mount root fs" error. If I tell grub to load 6.1.0-26 the system boots ok. I can see an initrd entry in /boot/grub/grub.cfg for kernel "6.1.0-26-amd64" but not for 6.1.0-27-amd64

If I run apt-get update I receive a "cpio: write error: No space left on device" message:

Code:

root@Control:~# apt-get updateHit:1 http://deb.debian.org/debian bookworm InReleaseHit:2 http://deb.debian.org/debian bookworm-updates InRelease      Hit:3 http://security.debian.org/debian-security bookworm-security InReleaseHit:4 http://phoscon.de/apt/deconz generic InRelease               Reading package lists... Doneroot@HomeControl:~# apt-get upgradeReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneCalculating upgrade... Done0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.3 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Do you want to continue? [Y/n] ySetting up initramfs-tools (0.142+deb12u1) ...update-initramfs: deferring update (trigger activated)Setting up linux-image-6.1.0-27-amd64 (6.1.115-1) .../etc/kernel/postinst.d/initramfs-tools:update-initramfs: Generating /boot/initrd.img-6.1.0-27-amd64cpio: write error: No space left on deviceE: mkinitramfs failure cpio 2update-initramfs: failed for /boot/initrd.img-6.1.0-27-amd64 with 1.run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1dpkg: error processing package linux-image-6.1.0-27-amd64 (--configure): installed linux-image-6.1.0-27-amd64 package post-installation script subprocess returned error exit status 1dpkg: dependency problems prevent configuration of linux-image-amd64: linux-image-amd64 depends on linux-image-6.1.0-27-amd64 (= 6.1.115-1); however:  Package linux-image-6.1.0-27-amd64 is not configured yet.
if I run update-initramfs -c -k 6.1.0-27-amd64 I see this output:

Code:

update-initramfs: Generating /boot/initrd.img-6.1.0-27-amd64cpio: write error: No space left on deviceE: mkinitramfs failure cpio 2
if I run df I seem to have plenty of disk space:

Code:

Filesystem      Size  Used Avail Use% Mounted onudev            3.9G     0  3.9G   0% /devtmpfs           795M   11M  785M   2% /run/dev/sda1        32G  7.0G   23G  24% /tmpfs           3.9G     0  3.9G   0% /dev/shmtmpfs           5.0M     0  5.0M   0% /run/locktmpfs           200M   92K  200M   1% /var/logtmpfs           100M     0  100M   0% /var/mailtmpfs           200M  4.0K  200M   1% /var/tmptmpfs           100M     0  100M   0% /var/spooltmpfs           795M     0  795M   0% /run/user/0
My /boot doesn't contain much:

Code:

total 51M-rw-r--r-- 1 root root 254K Sep 30 20:08 config-6.1.0-26-amd64-rw-r--r-- 1 root root 254K Nov  1 04:23 config-6.1.0-27-amd64drwxr-xr-x 5 root root 4.0K Nov 21 18:28 grub-rw-r--r-- 1 root root  35M Nov  5 16:51 initrd.img-6.1.0-26-amd64-rw-r--r-- 1 root root   83 Sep 30 20:08 System.map-6.1.0-26-amd64-rw-r--r-- 1 root root   83 Nov  1 04:23 System.map-6.1.0-27-amd64-rw-r--r-- 1 root root 7.9M Sep 30 20:08 vmlinuz-6.1.0-26-amd64-rw-r--r-- 1 root root 7.9M Nov  1 04:23 vmlinuz-6.1.0-27-amd64

Running apt-get autoremove --purge doesn't help:

Code:

Reading package lists... DoneBuilding dependency tree... DoneReading state information... Done0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.3 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Setting up initramfs-tools (0.142+deb12u1) ...update-initramfs: deferring update (trigger activated)Setting up linux-image-6.1.0-27-amd64 (6.1.115-1) .../etc/kernel/postinst.d/initramfs-tools:update-initramfs: Generating /boot/initrd.img-6.1.0-27-amd64cpio: write error: No space left on deviceE: mkinitramfs failure cpio 2update-initramfs: failed for /boot/initrd.img-6.1.0-27-amd64 with 1.run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1dpkg: error processing package linux-image-6.1.0-27-amd64 (--configure): installed linux-image-6.1.0-27-amd64 package post-installation script subprocess returned error exit status 1dpkg: dependency problems prevent configuration of linux-image-amd64: linux-image-amd64 depends on linux-image-6.1.0-27-amd64 (= 6.1.115-1); however:  Package linux-image-6.1.0-27-amd64 is not configured yet.dpkg: error processing package linux-image-amd64 (--configure): dependency problems - leaving unconfiguredProcessing triggers for initramfs-tools (0.142+deb12u1) ...update-initramfs: Generating /boot/initrd.img-6.1.0-26-amd64cpio: write error: No space left on deviceE: mkinitramfs failure cpio 2update-initramfs: failed for /boot/initrd.img-6.1.0-26-amd64 with 1.dpkg: error processing package initramfs-tools (--configure): installed initramfs-tools package post-installation script subprocess returned error exit status 1Errors were encountered while processing: linux-image-6.1.0-27-amd64 linux-image-amd64 initramfs-toolsE: Sub-process /usr/bin/dpkg returned an error code (1)
Now, I think I've had the issue before, but I can't find the post where I found the solution that worked for me! The fix was something like Debian was trying to store temp files in /boot, but there wasn't enough room, so I had to tell Debian to store the temporary files on the main filesystem. This may, or may not be the issue this time, but I'd appreciate your help.

Thanks

Bert

Statistics: Posted by BertHappy — 2024-11-21 18:39 — Replies 2 — Views 96



Viewing all articles
Browse latest Browse all 3474

Trending Articles