Alpine Linux
Contents
Create Bootable Device
The Alpine Linux wiki recommends use of fdisk. For more general advice regarding partitioning, see here.
Per the wiki:
Run fdisk on your device (sdX).
fdisk /dev/sdX
- Create new partition table with one FAT32 partition
d Delete all partitions (this may take a few steps)
n Create a new partition
p A primary partition
1 Partition number 1
- Use defaults for first and last cylinder (just press [Enter] twice).
t Change partition type
c Partition type (Win95 FAT32/LBA)
- Verify that the primary partition is bootable
p Print list of partitions
- If there is no '*' next to the first partition, follow the next steps:
a Make the partition bootable (set boot flag)
1 Partition number 1
w Write your changes to the device
- Format the new partition with:
mkfs.vfat /dev/sdX1
Note that mkfs.vfat and mkdosfs are the same.
Finally, dd the ISO onto the device.