mtd: fixed creation and erase of a single partition