I am using these commands on command line:
sudo fdisk /dev/mmcblk1 p d w sudo fdisk /dev/mmcblk1 n (using all defaults) w
Please is there any option how to automatize this task? Or how to use one liner for this (even for every fdisk command one liner, so two one liners in total)? Or maybe with python?