r/AlpineLinux • u/Csipotle • 1d ago
Raspberry Zero 2W installation failed
Hi,
I flashed a 32bit Alpine image (ver. 3.25.0) with Raspberry imager to an sd card, but setup-alpine seems fails.
I prepared a headless installation method followed macmpi's guide: https://github.com/macmpi/alpine-linux-headless-bootstrap
I successfully booted it up with his headless.apkovl.tar.gz but it seems after that setup-alpine is failing at Disk,Install step and it doesn't recognize sd card as a disk, so it seems normal installation fails at this step and . I got this:
Disk & Install
----------------
No disks available. Try boot media /media/mmcblk0p1? (y/n) [n] y
* WARNING: you are stopping a sysinit service
* Unmounting /.modloop ... [ ok ]
rm: can't remove '/lib/modules': No such file or directory
No disks available. Try boot media /media/mmcblk0p1? (y/n) [n]
I tried to create the dir with command "mkdir -p /lib/modules" but that didn't help.
Tried to remount "/' with littlebit bigger size, but didn't help either.
Tried to give answer with no disk, where I can choose cache etc after that, but that didn't help at all in the installation process.
I had to force exit setup-alpine or it just ended by own while I tried different answers.
So I ran out of ideas now.
The initial mounts:
alpine-headless:~# df -h
Filesystem Size Used Available Use% Mounted on
devtmpfs 10.0M 0 10.0M 0% /dev
shm 212.6M 0 212.6M 0% /dev/shm
/dev/mmcblk0p1 128.8M 75.2M 53.6M 58% /media/mmcblk0p1
tmpfs 212.6M 11.4M 201.2M 5% /
tmpfs 85.0M 152.0K 84.9M 0% /run
/dev/loop0 37.1M 37.1M 0 100% /.modloop
View all comments
2
u/macmpi 2h ago edited 2h ago
PiZero2W is meant to be run with aarch64 as perwikisorry thought you tried armhf, must be armv7 then.Are you trying sysdisk install?
Can you try
setup-alpinewith no disk, and then:ERASE_DISKS=/dev/mmcblk0 setup-disk -m sys /dev/mmcblk0