Alpine Linux
Alpine Linux is a minimal Linux-based operating system.
Contents
Installation
Insert the target device and ensure it is not mounted. (If it is, try umount /dev/sdXN.)
Upstream recommends use of fdisk(8). The partitioning process is as follows:
fdisk /dev/sdX
Ensure that the device is not using a GPT partition table. This would be listed under Disklabel type. (Press p to list the partitions.) The correct value is dos, not gpt.
- Create new partition table with one FAT32 partition
d Delete all partitions (and repeat as needed)
n Create a new partition
p A primary partition
1 Partition number 1
- Use defaults for first and last cylinder (press [Enter] twice).
t Change partition type
c Partition type (Win95 FAT32/LBA)
Ensure that the primary partition is bootable. This is marked by an asterisk (*). (Press p to list the partitions.) To make the partition bootable...
a Set the boot flag on a partition
1 Partition number 1
w Write your changes to the device
For more general advice regarding partitioning, see here.
Format the new partition with:
mkfs.vfat /dev/sdX1
Note that mkfs.vfat and mkdosfs are the same.
Finally, dd(1) the ISO onto the device. Or for a Raspberry Pi, copy the boot binaries onto the device.
Administration