β
Repair Completed: 2026-04-01 20:50 CST | Hard drive safely ejected, ready to reinstall.
Problem Diagnosis
Initial Symptoms
| Symptom | Status |
|---|---|
| Power LED | β Solid on |
| Fan | β Spins for 5s then stops |
| Network | β οΈ DHCP got IP but no services |
| SSH Port 22 | β Closed |
| System Boot | β Failed |
Root Cause
initramfs generation failed - During debootstrap + qemu-user-static installation, qemu emulation of x86_64 architecture caused library mapping issues:
error while loading shared libraries: libcrypto.so.3: failed to map segment from shared object
This resulted in:
- β systemd services unable to start
- β SSH service not running
- β Network manager not initializing
- β System stuck in early boot stage
Repairs Performed
1. Regenerated initramfs β
# Generated on Pi5 host for K20 drive
update-initramfs -c -k 6.1.0-42-amd64 -b /mnt/k20/boot
# Result: 17MB initrd.img generated
ls -lh /mnt/k20/boot/initrd.img-6.1.0-42-amd64
# -rw-r--r-- 1 root root 17M ...
2. Fixed GRUB Boot Configuration β
set timeout=5
menuentry "Debian GNU/Linux" {
set root=(hd0,gpt2)
linux /boot/vmlinuz-6.1.0-42-amd64 root=UUID=f874e2b1-ea2f-4e0a-8cb2-8a1e8878a972 ro quiet
initrd /boot/initrd.img-6.1.0-42-amd64
}
3. Fixed EFI Boot Configuration β
# /boot/efi/EFI/BOOT/grub.cfg
set timeout=5
search.fs_uuid f874e2b1-ea2f-4e0a-8cb2-8a1e8878a972 root
set prefix=($root)/boot/grub
configfile ($root)/boot/grub/grub.cfg
4. Fixed fstab β
/dev/disk/by-uuid/f874e2b1-ea2f-4e0a-8cb2-8a1e8878a972 / ext4 errors=remount-ro 0 1
/dev/disk/by-uuid/E876-C8CD /boot/efi vfat umask=0077 0 1
5. Fixed SSH Configuration β
Port 22
PermitRootLogin yes
PasswordAuthentication yes
PubkeyAuthentication yes
6. Configured Services to Auto-start β
systemctl enable ssh
systemctl enable NetworkManager
7. Configured apt Sources (with firmware) β
deb http://mirrors.ustc.edu.cn/debian bookworm main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian bookworm-updates main contrib non-free non-free-firmware
deb http://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware
8. Created First-Boot Script β
# /etc/rc.local
# Auto-install WiFi firmware
apt install -y firmware-realtek firmware-misc-nonfree
# Regenerate initramfs
update-initramfs -u
Before vs After
| Item | Before | After |
|---|---|---|
| initramfs | β Failed to generate | β 17MB OK |
| GRUB config | β οΈ UUID mismatch possible | β Correct UUID |
| EFI boot | β Existed | β Config updated |
| SSH service | β Couldn't start | β Configured auto-start |
| Network service | β Couldn't start | β Configured auto-start |
| WiFi firmware | β Not installed | β οΈ Auto-install on first boot |
| System boot | β Fan stops after 5s | β Expected normal |
Expected Boot Sequence
- Press power button
- BIOS POST (~5s)
- GRUB load (~3s)
- Debian kernel boot (~10s)
- initramfs load (~5s)
- systemd init (~20s)
- Network manager start (~10s)
- SSH service start β
- First-boot script runs (firmware install, ~30s)
- System ready β
Total boot time: ~1.5-2 minutes (first boot may take 3 minutes)
Connection Info
Wired Network (Recommended for first use)
Connection: Ethernet cable to router
IP: DHCP auto
SSH Port: 22
Username: root
Password: k20root
WiFi (After first boot)
SSID: η§η¨δ»₯ε€ͺδΉε
_5G
Password: 65482908
Auto-connect: Yes
β
Repair Complete!
Hard drive safely ejected. Ready to reinstall in K20.
Expected: Normal boot on next startup π
Hard drive safely ejected. Ready to reinstall in K20.
Expected: Normal boot on next startup π