Repartition and resize a block device