On a new RPi Zero 2W, new 128GB microSD, after installing RPiOS bookworm 64bit for Zero2W I didthen installed pihole, apache2, mariadb with some databases and phpmysadmin, with appropriate reboots, I did anotherAnd then got stuck here:shows The console showed this:I left this for an hour or so, and there was no progress.
Next, I downloaded a fresh install with Raspberry Pi Imager repeated the installations described earlier and had the same result. Then, based on https://serverfault.com/questions/10982 ... 92-generic
I ranIt reached this at 12:25:at 14:03, an hour and a half later, I tried ^C, but, no response, the Pi was hanging.
I powered off and on again and triedalso suggested on the above serverfault.com page
The response was(initram was in red)
I don't know what that tells me. Is it helpful in diagnosing the fault?
Then on https://askubuntu.com/questions/1299879 ... -initramfs
I saw the suggestion that a swap file might have been removed, so looked at /etc/fstab
That showed:Again, I can't interpret that. Again, is there anything unexpected here?
This page https://unix.stackexchange.com/question ... ric-with-1
pointed to insufficient free space available for the creation of the new initramfs image as a possible problem, but that user had an error message "Write error : cannot write compressed block" and I did not have that. Nevertheless, I checked the boot directory size and found:There is ample space overall:I've seen this:
viewtopic.php?t=320003
but I'm not running a RAID configuration.
Next I found this (from 2 days ago)
viewtopic.php?p=2263847&hilit=initramfs#p2263847
So as pfletch101 said it worked for him, I tried rebooting andbut it stuck at Again ^C did not kill it, so I powered off and shortly after powered on again.
Logged in, sudo apt update
and it's even more stuck. Apart from the cursor moving to the beginning of the next line, there was no reaction.
During these hangs, the LED flashes steadily on and off with no variability to indicate that anything is happening
Repeated this, and find that works, the web server works, showing the Apache 2 debian default page, phpMyAdmin works.
triedThis goes further than sudo apt, but hangs at 78%. ^C does release back to the prompt.
I should say that this is the second time I've gone through the steps of installing clean OS, installing apps I want and then got stuck at update-initramfs.
Is this a problem with the latest kernel?
Any suggestions for further diagnostic steps, or towards a solution?
Thanks for any help!
Code:
sudo apt updatesudo apt full-update
Code:
sudo apt updatesudo apt full-upgrade
Code:
update-initramfs: Generating /boot/initrd.img-6.6.51+rpt-rpi-v8 stuck at 80%
Code:
uname -a
Code:
Linux pi0-2W 6.6.51+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux
Code:
Hit:1 http://deb.debian.org/debian bookworm InReleaseHit:2 http://deb.debian.org/debian-security bookworm-security InReleaseHit:3 http://deb.debian.org/debian bookworm-updates InReleaseHit:4 http://archive.raspberrypi.com/debian bookworm InReleaseReading package lists... DoneBuilding dependency tree... DoneReading state information... Done1 package can be upgraded. Run 'apt list --upgradable' to see it.Reading package lists... DoneBuilding dependency tree... DoneReading state information... DoneCalculating upgrade... DoneThe following packages will be upgraded: raspberrypi-sys-mods1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.Need to get 21.4 kB of archives.After this operation, 1,024 B of additional disk space will be used.Get:1 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241030 [21.4 kB]Fetched 21.4 kB in 2s (14.3 kB/s)apt-listchanges: Reading changelogs...(Reading database ... 136698 files and directories currently installed.)Preparing to unpack .../raspberrypi-sys-mods_20241030_arm64.deb ...Unpacking raspberrypi-sys-mods (20241030) over (20240923) ...Setting up raspberrypi-sys-mods (20241030) ...Processing triggers for initramfs-tools (0.142+deb12u1) ...update-initramfs: Generating /boot/initrd.img-6.6.51+rpt-rpi-v8Progress: [ 80%] [###########################################...........]
Next, I downloaded a fresh install with Raspberry Pi Imager repeated the installations described earlier and had the same result. Then, based on https://serverfault.com/questions/10982 ... 92-generic
I ran
Code:
sudo update-initramfs -v -u
Code:
Building cpio /boot/initrd.img-6.6.51+rpt-rpi-v8.new initramfs
I powered off and on again and tried
Code:
ps f | grep initram
The response was
Code:
2050 pts/0 S+ 0:00 \_ grep --color=auto initram
I don't know what that tells me. Is it helpful in diagnosing the fault?
Then on https://askubuntu.com/questions/1299879 ... -initramfs
I saw the suggestion that a swap file might have been removed, so looked at /etc/fstab
That showed:
Code:
proc /proc proc defaults 0 0PARTUUID=676efe85-01 /boot/firmware vfat defaults 0 2PARTUUID=676efe85-02 / ext4 defaults,noatime 0 1# a swapfile is not a swap partition, no line here# use dphys-swapfile swap[on|off] for that
This page https://unix.stackexchange.com/question ... ric-with-1
pointed to insufficient free space available for the creation of the new initramfs image as a possible problem, but that user had an error message "Write error : cannot write compressed block" and I did not have that. Nevertheless, I checked the boot directory size and found:
Code:
Filesystem Size Used Avail Use% Mounted on/dev/mmcblk0p1 510M 76M 435M 15% /boot/firmware
Code:
Filesystem Size Used Avail Use% Mounted onudev 70M 0 70M 0% /devtmpfs 42M 1.2M 41M 3% /run/dev/mmcblk0p2 117G 5.5G 106G 5% /tmpfs 209M 876K 208M 1% /dev/shmtmpfs 5.0M 8.0K 5.0M 1% /run/lock/dev/mmcblk0p1 510M 76M 435M 15% /boot/firmwaretmpfs 42M 44K 42M 1% /run/user/1000
viewtopic.php?t=320003
but I'm not running a RAID configuration.
Next I found this (from 2 days ago)
viewtopic.php?p=2263847&hilit=initramfs#p2263847
So as pfletch101 said it worked for him, I tried rebooting and
Code:
sudo apt update
Code:
Reading package lists... 69%
Logged in, sudo apt update
and it's even more stuck. Apart from the cursor moving to the beginning of the next line, there was no reaction.
During these hangs, the LED flashes steadily on and off with no variability to indicate that anything is happening
Repeated this, and find that
Code:
ls -l
tried
Code:
sudo apt-get updateHit:1 http://deb.debian.org/debian bookworm InReleaseHit:2 http://deb.debian.org/debian-security bookworm-security InReleaseHit:3 http://deb.debian.org/debian bookworm-updates InReleaseHit:4 http://archive.raspberrypi.com/debian bookworm InReleaseReading package lists... 78%
I should say that this is the second time I've gone through the steps of installing clean OS, installing apps I want and then got stuck at update-initramfs.
Is this a problem with the latest kernel?
Any suggestions for further diagnostic steps, or towards a solution?
Thanks for any help!
Statistics: Posted by roygrubb — Thu Oct 31, 2024 8:03 am