#!/bin/sh # Packages required # dosfstools parted # Can be run on any Linux system # loop.max_part=15 must be in kernel cmdline (cmdline.txt for rpi) # then reboot echo "creating image to fit on 2Gb card" dd if=/dev/zero of=arch-rpi.img bs=1M count=1850 echo "Partitioning" fdisk arch-rpi.img <