Einzeller Einzeiler ist das hier ja auch:
Code
(echo d; echo 3; echo d; echo 2; echo n; echo p; echo 2; echo ; echo; echo w) | fdisk /dev/mmcblk0
(Delete, 3. Partition, Delete, 2. Partition, New, Primary Partition, Number 2, Standard-Start-Sektor, Standard-End-Sektor, Write to disk)
Und dann nach reboot: