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
Show parent comment
1
u/Csipotle 44m ago
device is fully backward compatible with armv7, armhf, I intentionally chose 32bit installation.
thanks for your suggestion. does erasing whole sd-card is really necessary in this case? my plan is to install Alpine in sys mode, as device has only 512MB RAM.
my original plan was after that to try the workaround guide that AI recommended me that doesn't wipe the original boot partition and preserving its contents.
AI has suggested to manually create secondary ext4 partition on sd card and after choosing no disk in setup-alpine and exiting script and to run setup-disk with these parameters:
.