Prerequisites
- Arch Linux, with the following packages
-
dosfstools wpa_supplicant
Micro SD card
USB stick with slot for Micro SD Card
Raspberry Pi Zero W
Create an Arch Linux ARM system
TODO : chroot binfmt qemu
Partition Micro SD Card
In Linux, list the available devices: :
sudo fdisk -l
If Linux is running inside VirtualBox, consult the list of devices in: Devices>USB
Insert the Micro SD card in the USB adapter, and insert the adapter in a USB port.
If Linux is running inside VirtualBox, look up & select the new device that appeared in Devices>USB
List the available devices again: :
sudo fdisk -l
The device that was added to the list is the Micro SD card.
Useful commands
Save existing partition layout: :
sudo sfdisk -d /dev/sdc > part_layout.txt
Partition a card according to a saved layout: :
sudo sfdisk /dev/sdc < part_layout.txt
Delete all partitions: :
sudo sfdisk --delete /dev/sdc